[pkg-boost-commits] r14267 - boost/trunk/debian

smr at alioth.debian.org smr at alioth.debian.org
Sat Aug 9 19:32:44 UTC 2008


Author: smr
Date: 2008-08-09 19:32:43 +0000 (Sat, 09 Aug 2008)
New Revision: 14267

Modified:
   boost/trunk/debian/rules
Log:
Some tidying-up

Modified: boost/trunk/debian/rules
===================================================================
--- boost/trunk/debian/rules	2008-08-09 15:48:24 UTC (rev 14266)
+++ boost/trunk/debian/rules	2008-08-09 19:32:43 UTC (rev 14267)
@@ -138,6 +138,7 @@
 else ifeq ($(DEB_BUILD_ARCH), armel)
 TOOLSET_CONFIG="using gcc : : : <compileflags>-D_REENTRANT <compileflags>-DBOOST_SP_USE_PTHREADS ;"
 endif
+
 PYTHON_CONFIG1 = "using python : 2.4 : /usr ;"
 PYTHON_CONFIG2 = "using python : 2.5 : /usr ;"
 
@@ -146,20 +147,24 @@
 pyste_prefix = $(CURDIR)/debian/libboost-python$(PKGVERSION)-dev/usr
 bjam = $(CURDIR)/tools/jam/src/bjam
 
+# FIXME: find a flag to disable reading /etc/site-config.jam
 JAM = $(bjam) $(JOBS) -d2 --user-config=$(CURDIR)/user-config.jam -sHAVE_ICU=1
 jam_variants = variant=release,debug threading=single,multi link=shared,static
 
 $(bjam):
-	cd tools/jam/src && CFLAGS='-Wall -Werror -fno-strict-aliasing' sh build.sh cc && mv bin.*/bjam .
+	cd tools/jam/src && \
+	CFLAGS='-Wall -Werror -fno-strict-aliasing' sh build.sh cc && \
+	mv bin.*/bjam .
 
+user-config.jam:
+	echo $(TOOLSET_CONFIG) > $@
+	echo $(PYTHON_CONFIG1) >> $@
+	echo $(PYTHON_CONFIG2) >> $@
+
 build: build-stamp
-build-stamp: $(QUILT_STAMPFN) $(bjam)
+build-stamp: $(QUILT_STAMPFN) $(bjam) user-config.jam
 	dh_testdir
 
-	echo $(TOOLSET_CONFIG) > user-config.jam
-	echo $(PYTHON_CONFIG1) >> user-config.jam
-	echo $(PYTHON_CONFIG2) >> user-config.jam
-
 	$(JAM) --without-python                        $(jam_variants)
 	$(JAM) --with-python --buildid=py24 python=2.4 $(jam_variants)
 	$(JAM) --with-python --buildid=py25 python=2.5 $(jam_variants)
@@ -232,6 +237,8 @@
 	dh_install -plibboost$(PKGVERSION)-dbg
 	dh_install -plibboost$(PKGVERSION)-dbg --autodest \
 	   debian/tmp/usr/share/python/runtime.d/libboost$(PKGVERSION)-dbg.rtupdate
+	# These links create a "nonthreaded" version of Boost.Thread;
+	# do we need such links?
 	dh_link -plibboost$(PKGVERSION)-dbg \
 	   usr/lib/libboost_thread-mt-d.a usr/lib/libboost_thread-d.a \
 	   usr/lib/libboost_thread-mt-d.so usr/lib/libboost_thread-d.so




More information about the pkg-boost-commits mailing list