summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-September/008366.html
blob: ea78938d41518bad7c9e034a5355581d169265c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] [110263] (boost build change)
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5B110263%5D%20%28boost%20build%20change%29&In-Reply-To=%3C4E7E5390.1000302%40iki.fi%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="008374.html">
   <LINK REL="Next"  HREF="008375.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] [110263] (boost build change)</H1>
    <B>Anssi Hannula</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5B110263%5D%20%28boost%20build%20change%29&In-Reply-To=%3C4E7E5390.1000302%40iki.fi%3E"
       TITLE="[Mageia-dev] [110263] (boost build change)">anssi.hannula at iki.fi
       </A><BR>
    <I>Sun Sep 25 00:02:56 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="008374.html">[Mageia-dev] removing all horde-xxxxx packages
</A></li>
        <LI>Next message: <A HREF="008375.html">[Mageia-dev] [110263] (boost build change)
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8366">[ date ]</a>
              <a href="thread.html#8366">[ thread ]</a>
              <a href="subject.html#8366">[ subject ]</a>
              <a href="author.html#8366">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 20.06.2011 06:37, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A> wrote:
&gt;<i> Revision
</I>&gt;<i>     110263
</I>&gt;<i> Author
</I>&gt;<i>     fwang
</I>&gt;<i> Date
</I>&gt;<i>     2011-06-20 05:37:46 +0200 (Mon, 20 Jun 2011)
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i>       Log Message
</I>&gt;<i> 
</I>&gt;<i> - New version 1.46.1
</I>&gt;<i> - synch with fedora (cmake flavour)
</I>
Is there any actual advantage big enough to justify switching the build
to use cmake instead of upstream bjam, relying on fedora-provided
non-upstream big patch that changes the entire build system?
(in the past I've run into issues when there was no cmake 'version'
available yet when packaging an update)

In addition, the change modifies SONAMEs to a non-upstream configuration
(it adds '-mt' to them), plus changes the devel symlink names to have an
'-mt' in them (which is easily workaroundable with compatibility
symlinks which I'm adding now, though).
This makes some sense on Fedora as they package both single-threaded and
multi-threaded versions of all the libraries, while we (and e.g. Debian)
have only the multi-threaded versions (without '-mt' as per upstream).


(BTW, while it doesn't affect us, the Fedora convention seems quite
scary, since software could expect the non-'-mt' variant to be
multithreaded as per upstream and other distros...)


&gt;<i>       Modified Paths
</I>&gt;<i> 
</I>&gt;<i>   * cauldron/boost/current/SPECS/boost.spec
</I>&gt;<i>     &lt;#cauldronboostcurrentSPECSboostspec&gt;
</I>&gt;<i> 
</I>&gt;<i> Modified: cauldron/boost/current/SPECS/boost.spec
</I>&gt;<i> ===================================================================
</I>&gt;<i> --- cauldron/boost/current/SPECS/boost.spec	2011-06-20 02:17:11 UTC (rev 110262)
</I>&gt;<i> +++ cauldron/boost/current/SPECS/boost.spec	2011-06-20 03:37:46 UTC (rev 110263)
</I>&gt;<i> @@ -1,41 +1,26 @@
</I>&gt;<i> -%define cmake_build 0
</I>&gt;<i> -
</I>&gt;<i> -%if %cmake_build
</I>&gt;<i> -%define cmake_pl 0
</I>&gt;<i> -%else
</I>&gt;<i>  %define packver %(echo &quot;%{version}&quot; | sed -e &quot;s/\\\./_/g&quot;)
</I>&gt;<i> -%endif
</I>&gt;<i> -
</I>&gt;<i> -# From the version 13 of Fedora, the Boost libraries are delivered
</I>&gt;<i> -# with sonames equal to the Boost version (e.g., 1.41.0). 
</I>&gt;<i>  %define	libname %mklibname boost %{version}
</I>&gt;<i>  %define	libnamedevel %mklibname boost -d
</I>&gt;<i>  %define	libnamestaticdevel %mklibname boost -d -s
</I>&gt;<i>  
</I>&gt;<i>  Summary:	Portable C++ libraries
</I>&gt;<i>  Name:		boost
</I>&gt;<i> -Version:	1.44.0
</I>&gt;<i> -Release:	%mkrel 6
</I>&gt;<i> +Version:	1.46.1
</I>&gt;<i> +Release:	%mkrel 1
</I>&gt;<i>  License:	Boost
</I>&gt;<i>  Group:		Development/C++
</I>&gt;<i>  URL:		<A HREF="http://boost.org/">http://boost.org/</A>
</I>&gt;<i> -%if %cmake_build
</I>&gt;<i> -Source0:	<A HREF="http://sodium.resophonic.com/boost-cmake/%{version">http://sodium.resophonic.com/boost-cmake/%{version</A>}.cmake%{cmake_pl}/boost-%{version}.cmake%{cmake_pl}.tar.gz
</I>&gt;<i> -BuildRequires:	cmake
</I>&gt;<i> -%else
</I>&gt;<i>  Source0:	<A HREF="http://umn.dl.sourceforge.net/sourceforge/boost/boost_%{packver">http://umn.dl.sourceforge.net/sourceforge/boost/boost_%{packver</A>}.tar.bz2
</I>&gt;<i> -BuildRequires:	boost-jam
</I>&gt;<i> -%endif
</I>&gt;<i> -# (anssi) in bjam mode, use CXXFLAGS when optimization=speed
</I>&gt;<i> -Patch0:		boost-use-cxxflags.patch
</I>&gt;<i> -Patch1:		boost-serialize_nvp.patch
</I>&gt;<i> +Patch0: boost-1.46.1-cmakeify-full.patch
</I>&gt;<i> +Patch3: boost-1.46.1-signals-erase.patch
</I>&gt;<i> +Patch5: boost-1.46.1-spirit.patch
</I>&gt;<i>  BuildRequires:	bzip2-devel
</I>&gt;<i>  BuildRequires:	python-devel
</I>&gt;<i>  BuildRequires:	zlib-devel
</I>&gt;<i>  BuildRequires:	icu-devel
</I>&gt;<i> -#BuildRequires:	openmpi-devel
</I>&gt;<i>  BuildRequires:	expat-devel
</I>&gt;<i>  BuildRequires:	doxygen xsltproc
</I>&gt;<i> +BuildRequires:	cmake
</I>&gt;<i>  BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
</I>&gt;<i>  
</I>&gt;<i>  %description
</I>&gt;<i> @@ -44,11 +29,7 @@
</I>&gt;<i>  Standard Library. This package contains only the shared libraries
</I>&gt;<i>  needed for running programs using Boost.
</I>&gt;<i>  
</I>&gt;<i> -%ifarch %arm %mips
</I>&gt;<i> -%define boostlibs date_time filesystem graph iostreams math_c99 math_c99f math_tr1 math_tr1f prg_exec_monitor program_options python regex serialization signals system thread unit_test_framework wave wserialization random
</I>&gt;<i> -%else
</I>&gt;<i> -%define boostlibs date_time filesystem graph iostreams math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l prg_exec_monitor program_options python regex serialization signals system thread unit_test_framework wave wserialization random
</I>&gt;<i> -%endif
</I>&gt;<i> +%define boostlibs date_time filesystem graph iostreams prg_exec_monitor program_options python random regex serialization signals system thread unit_test_framework wave wserialization
</I>&gt;<i>  
</I>&gt;<i>  # (Anssi 01/2010) dashes are converted to underscores for macros ($lib2);
</I>&gt;<i>  # The sed script adds _ when library name ends in number.
</I>&gt;<i> @@ -75,7 +56,7 @@
</I>&gt;<i>  %%files -n %%{libname$lib2}
</I>&gt;<i>  %%defattr(-,root,root)
</I>&gt;<i>  %%doc LICENSE_1_0.txt
</I>&gt;<i> -%{_libdir}/libboost_$lib.so.%{version}
</I>&gt;<i> +%{_libdir}/libboost_$lib-mt.so.%{version}
</I>&gt;<i>  EOF
</I>&gt;<i>  done)}
</I>&gt;<i>  
</I>&gt;<i> @@ -132,12 +113,10 @@
</I>&gt;<i>  same place as the documentation.
</I>&gt;<i>  
</I>&gt;<i>  %prep
</I>&gt;<i> -%if %cmake_build
</I>&gt;<i> -%setup -q -n boost-%{version}.cmake%{cmake_pl}
</I>&gt;<i> -%else
</I>&gt;<i>  %setup -q -n boost_%{packver}
</I>&gt;<i> -%endif
</I>&gt;<i> -%apply_patches
</I>&gt;<i> +%patch0 -p1
</I>&gt;<i> +%patch3 -p1
</I>&gt;<i> +%patch5 -p0
</I>&gt;<i>  
</I>&gt;<i>  # Preparing the docs
</I>&gt;<i>  mkdir packagedoc
</I>&gt;<i> @@ -150,43 +129,16 @@
</I>&gt;<i>  find libs -type f \( -name &quot;*.?pp&quot; ! -path &quot;*test*&quot; ! -path &quot;*src*&quot; ! -path &quot;*tools*&quot; -o -path &quot;*example*&quot; \) -exec cp --parents {} examples/ \;
</I>&gt;<i>  
</I>&gt;<i>  %build
</I>&gt;<i> -%if %cmake_build
</I>&gt;<i> -%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_SINGLE_THREADED=NO \
</I>&gt;<i> +%cmake -DENABLE_SINGLE_THREADED=NO -DENABLE_DEBUG=OFF \
</I>&gt;<i>  	-DINSTALL_VERSIONED=OFF -DWITH_MPI=OFF
</I>&gt;<i>  %make
</I>&gt;<i>  
</I>&gt;<i> -%else
</I>&gt;<i> -
</I>&gt;<i> -%define boost_jam_common_flags %{_smp_mflags} -d2 --layout=system --toolset=gcc variant=release threading=multi optimization=speed linkflags=&quot;%{ldflags} -lpython%{py_ver}&quot; debug-symbols=on -sHAVE_ICU=1 -sEXPAT_INCLUDE=%{_includedir} -sEXPAT_LIBPATH=%{_libdir} -sCXXFLAGS=&quot;%{optflags} -O3&quot;
</I>&gt;<i> -%ifnarch %arm %mips
</I>&gt;<i> -%define boost_bjam bjam %{boost_jam_common_flags}
</I>&gt;<i> -%else
</I>&gt;<i> -%define boost_bjam bjam %{boost_jam_common_flags} --disable-long-double
</I>&gt;<i> -%endif
</I>&gt;<i> -
</I>&gt;<i> -%{boost_bjam} --prefix=%{_prefix} --libdir=%{_libdir}
</I>&gt;<i> -%endif
</I>&gt;<i> -
</I>&gt;<i>  %install
</I>&gt;<i>  rm -rf %{buildroot}
</I>&gt;<i> -%if %cmake_build
</I>&gt;<i>  %makeinstall_std -C build
</I>&gt;<i> -%else
</I>&gt;<i> -%{boost_bjam} --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir} install
</I>&gt;<i> -%endif
</I>&gt;<i>  
</I>&gt;<i> -# (Anssi 01/2010) add compatibility symlinks:
</I>&gt;<i> -for file in %{buildroot}%{_libdir}/*.so; do
</I>&gt;<i> -	cp -a $file ${file%.so}-mt.so
</I>&gt;<i> -done
</I>&gt;<i> -for file in %{buildroot}%{_libdir}/*.a; do
</I>&gt;<i> -	ln -s $(basename $file) ${file%.a}-mt.a
</I>&gt;<i> -done
</I>&gt;<i> -
</I>&gt;<i> -# Kill any debug library versions that may show up un-invited.
</I>&gt;<i> -rm -f %{buildroot}%{_libdir}/*-d.*
</I>&gt;<i>  # Remove cmake configuration files used to build the Boost libraries
</I>&gt;<i> -rm -f %{buildroot}%{_libdir}/Boost*.cmake 
</I>&gt;<i> +rm -f %{buildroot}%{_libdir}/Boost*.cmake
</I>&gt;<i>  
</I>&gt;<i>  %clean
</I>&gt;<i>  rm -rf %{buildroot}
</I>&gt;<i> @@ -195,9 +147,8 @@
</I>&gt;<i>  %defattr(644, root,root, 755)
</I>&gt;<i>  %{_libdir}/libboost_*.so
</I>&gt;<i>  %{_includedir}/boost
</I>&gt;<i> -%if %cmake_build
</I>&gt;<i> +%{_datadir}/cmake/boost/*.cmake
</I>&gt;<i>  %{_datadir}/%{name}-%{version}/cmake/*.cmake
</I>&gt;<i> -%endif
</I>&gt;<i>  
</I>&gt;<i>  %files -n %{libnamedevel}-doc
</I>&gt;<i>  %defattr(-,root,root)
</I>&gt;<i> @@ -210,8 +161,3 @@
</I>&gt;<i>  %files -n %{name}-examples
</I>&gt;<i>  %defattr(-,root,root)
</I>&gt;<i>  %doc examples/*
</I>&gt;<i> -
</I>&gt;<i> -
</I>&gt;<i> -
</I>&gt;<i> -
</I>&gt;<i> -
</I>&gt;<i> 
</I>&gt;<i> 
</I>

-- 
Anssi Hannula
</PRE>






















































<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="008374.html">[Mageia-dev] removing all horde-xxxxx packages
</A></li>
	<LI>Next message: <A HREF="008375.html">[Mageia-dev] [110263] (boost build change)
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8366">[ date ]</a>
              <a href="thread.html#8366">[ thread ]</a>
              <a href="subject.html#8366">[ subject ]</a>
              <a href="author.html#8366">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>