summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-08-19 13:32:07 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-31 17:18:55 +0100
commitadfd0e04343ad7770642eadf07a7f9185be6e25d (patch)
tree51888646c08a50095710f000ff83102a0f305b81
parentd1f7c3f9cc59477ef926c35eb980833d5a0246de (diff)
downloadpoky-adfd0e04343ad7770642eadf07a7f9185be6e25d.tar.gz
boost: upgrade to 1.44.0
from version 1.36.0 which won't compile with gcc 4.5.0 also moved to meta form meta-moblin changes: - .so files should go to -dev instead of sub packages - create libboostX-mt.{so,a} symlinks for compatibility - meta package 'boost' should set ALLOW_EMPTY - fix a bug that caused boost-dev being automatically renamed to libboost_prg_exec_monitor-dev, packages boost, boost-dev and boost-test now work as intended - rebased patch arm-intrinsic Signed-off-by: Qing He <qing.he@intel.com>
-rw-r--r--meta-moblin/packages/boost/boost_1.36.0.bb12
-rw-r--r--meta/packages/boost/boost-36.inc (renamed from meta-moblin/packages/boost/boost-36.inc)11
-rw-r--r--meta/packages/boost/boost-jam-native.inc (renamed from meta-moblin/packages/boost/boost-jam-native.inc)0
-rw-r--r--meta/packages/boost/boost-jam-native_3.1.18.bb (renamed from meta-moblin/packages/boost/boost-jam-native_3.1.16.bb)0
-rw-r--r--meta/packages/boost/boost_1.44.0.bb27
-rw-r--r--meta/packages/boost/files/1.34.1-gcc43.patch (renamed from meta-moblin/packages/boost/files/1.34.1-gcc43.patch)0
-rw-r--r--meta/packages/boost/files/arm-intrinsics.patch (renamed from meta-moblin/packages/boost/files/arm-intrinsics.patch)16
-rw-r--r--meta/packages/boost/files/atomic_count_gcc_atomicity.patch (renamed from meta-moblin/packages/boost/files/atomic_count_gcc_atomicity.patch)0
-rw-r--r--meta/packages/boost/files/gcc41.patch (renamed from meta-moblin/packages/boost/files/gcc41.patch)0
-rw-r--r--meta/packages/boost/files/gcc43.patch (renamed from meta-moblin/packages/boost/files/gcc43.patch)0
-rw-r--r--meta/packages/boost/files/linux-uclibc.patch (renamed from meta-moblin/packages/boost/files/linux-uclibc.patch)0
-rw-r--r--meta/packages/boost/files/unit_test_log10f.patch (renamed from meta-moblin/packages/boost/files/unit_test_log10f.patch)0
12 files changed, 42 insertions, 24 deletions
diff --git a/meta-moblin/packages/boost/boost_1.36.0.bb b/meta-moblin/packages/boost/boost_1.36.0.bb
deleted file mode 100644
index 140ab290ba..0000000000
--- a/meta-moblin/packages/boost/boost_1.36.0.bb
+++ /dev/null
@@ -1,12 +0,0 @@
1include boost-36.inc
2
3PR = "r6"
4
5SRC_URI = "${SOURCEFORGE_MIRROR}/boost/${BOOST_P}.tar.bz2 \
6 file://arm-intrinsics.patch;patch=1 \
7 "
8
9BJAM_OPTS = '${BJAM_TOOLS} \
10 --builddir=${S}/${TARGET_SYS} \
11 ${BJAM_EXTRA}'
12
diff --git a/meta-moblin/packages/boost/boost-36.inc b/meta/packages/boost/boost-36.inc
index d297dfb1af..5d2d1280be 100644
--- a/meta-moblin/packages/boost/boost-36.inc
+++ b/meta/packages/boost/boost-36.inc
@@ -52,16 +52,16 @@ python __anonymous () {
52 extras.append("--with-%s" % lib) 52 extras.append("--with-%s" % lib)
53 packages.append(pkg) 53 packages.append(pkg)
54 if not bb.data.getVar("FILES_%s" % pkg, d, 1): 54 if not bb.data.getVar("FILES_%s" % pkg, d, 1):
55 bb.data.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so*" % lib, d) 55 bb.data.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so.*" % lib, d)
56 bb.data.setVar("BOOST_PACKAGES", " ".join(packages), d) 56 bb.data.setVar("BOOST_PACKAGES", " ".join(packages), d)
57 bb.data.setVar("BJAM_EXTRA", " ".join(extras), d) 57 bb.data.setVar("BJAM_EXTRA", " ".join(extras), d)
58} 58}
59 59
60# Override the contents of specific packages 60# Override the contents of specific packages
61FILES_boost-serialization = "${libdir}/libboost_serialization*.so* \ 61FILES_boost-serialization = "${libdir}/libboost_serialization*.so.* \
62 ${libdir}/libboost_wserialization*.so*" 62 ${libdir}/libboost_wserialization*.so.*"
63FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so \ 63FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
64 ${libdir}/libboost_unit_test_framework*.so*" 64 ${libdir}/libboost_unit_test_framework*.so.*"
65 65
66# -dev last to pick up the remaining stuff 66# -dev last to pick up the remaining stuff
67PACKAGES += "${PN}-dev" 67PACKAGES += "${PN}-dev"
@@ -70,6 +70,7 @@ FILES_${PN}-dev = "${includedir} ${libdir}/libboost_*.so ${libdir}/libboost_*.a"
70# "boost" is a metapackage which pulls in all boost librabries 70# "boost" is a metapackage which pulls in all boost librabries
71PACKAGES += "${PN}" 71PACKAGES += "${PN}"
72RRECOMMENDS_${PN} += "${BOOST_PACKAGES}" 72RRECOMMENDS_${PN} += "${BOOST_PACKAGES}"
73ALLOW_EMPTY_${PN} = "1"
73 74
74# to avoid GNU_HASH QA errors added LDFLAGS to ARCH; a little bit dirty but at least it works 75# to avoid GNU_HASH QA errors added LDFLAGS to ARCH; a little bit dirty but at least it works
75TARGET_CC_ARCH += " ${LDFLAGS}" 76TARGET_CC_ARCH += " ${LDFLAGS}"
diff --git a/meta-moblin/packages/boost/boost-jam-native.inc b/meta/packages/boost/boost-jam-native.inc
index fe181ad00f..fe181ad00f 100644
--- a/meta-moblin/packages/boost/boost-jam-native.inc
+++ b/meta/packages/boost/boost-jam-native.inc
diff --git a/meta-moblin/packages/boost/boost-jam-native_3.1.16.bb b/meta/packages/boost/boost-jam-native_3.1.18.bb
index 2e92146a83..2e92146a83 100644
--- a/meta-moblin/packages/boost/boost-jam-native_3.1.16.bb
+++ b/meta/packages/boost/boost-jam-native_3.1.18.bb
diff --git a/meta/packages/boost/boost_1.44.0.bb b/meta/packages/boost/boost_1.44.0.bb
new file mode 100644
index 0000000000..81a2e53ba3
--- /dev/null
+++ b/meta/packages/boost/boost_1.44.0.bb
@@ -0,0 +1,27 @@
1include boost-36.inc
2
3LICENSE = "boost"
4LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
5
6PR = "r0"
7
8SRC_URI = "${SOURCEFORGE_MIRROR}/boost/${BOOST_P}.tar.bz2 \
9 file://arm-intrinsics.patch \
10 "
11
12BJAM_OPTS = '${BJAM_TOOLS} \
13 --builddir=${S}/${TARGET_SYS} \
14 ${BJAM_EXTRA}'
15
16# build only mt libraries and install symlinks for compatibility
17BJAM_EXTRA += "threading=multi"
18do_install_append() {
19 for lib in ${BOOST_LIBS}; do
20 if [ -e ${D}${libdir}/libboost_${lib}.a ]; then
21 ln -s libboost_${lib}.a ${D}${libdir}/libboost_${lib}-mt.a
22 fi
23 if [ -e ${D}${libdir}/libboost_${lib}.so ]; then
24 ln -s libboost_${lib}.so ${D}${libdir}/libboost_${lib}-mt.so
25 fi
26 done
27}
diff --git a/meta-moblin/packages/boost/files/1.34.1-gcc43.patch b/meta/packages/boost/files/1.34.1-gcc43.patch
index 4670ac4295..4670ac4295 100644
--- a/meta-moblin/packages/boost/files/1.34.1-gcc43.patch
+++ b/meta/packages/boost/files/1.34.1-gcc43.patch
diff --git a/meta-moblin/packages/boost/files/arm-intrinsics.patch b/meta/packages/boost/files/arm-intrinsics.patch
index 860b6df67c..3f9c620ebe 100644
--- a/meta-moblin/packages/boost/files/arm-intrinsics.patch
+++ b/meta/packages/boost/files/arm-intrinsics.patch
@@ -1,9 +1,12 @@
1diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm/boost/detail/atomic_count_sync.hpp 18/17/2010 - rebased to 1.44 by Qing He <qing.he@intel.com>
2--- boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp 2007-11-23 12:03:14.000000000 -0500 2
3+++ boost_1_36_0.arm/boost/detail/atomic_count_sync.hpp 2008-09-09 13:15:21.000000000 -0400 3diff --git a/boost/smart_ptr/detail/atomic_count_sync.hpp b/boost/smart_ptr/detail/atomic_count_sync.hpp
4@@ -29,17 +29,46 @@ 4index b6359b5..78b1cc2 100644
5--- a/boost/smart_ptr/detail/atomic_count_sync.hpp
6+++ b/boost/smart_ptr/detail/atomic_count_sync.hpp
7@@ -33,17 +33,46 @@ public:
5 8
6 void operator++() 9 long operator++()
7 { 10 {
8+#ifdef __ARM_ARCH_7A__ 11+#ifdef __ARM_ARCH_7A__
9+ int v1, tmp; 12+ int v1, tmp;
@@ -16,7 +19,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm
16+ : "=&r" (v1), "+Q"(value_), "=&r"(tmp) 19+ : "=&r" (v1), "+Q"(value_), "=&r"(tmp)
17+ ); 20+ );
18+#else 21+#else
19 __sync_add_and_fetch( &value_, 1 ); 22 return __sync_add_and_fetch( &value_, 1 );
20+#endif 23+#endif
21 } 24 }
22 25
@@ -48,4 +51,3 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm
48 } 51 }
49 52
50 private: 53 private:
51Binary files boost_1_36_0.orig/boost/detail/.atomic_count_sync.hpp.swp and boost_1_36_0.arm/boost/detail/.atomic_count_sync.hpp.swp differ
diff --git a/meta-moblin/packages/boost/files/atomic_count_gcc_atomicity.patch b/meta/packages/boost/files/atomic_count_gcc_atomicity.patch
index 7d08e73550..7d08e73550 100644
--- a/meta-moblin/packages/boost/files/atomic_count_gcc_atomicity.patch
+++ b/meta/packages/boost/files/atomic_count_gcc_atomicity.patch
diff --git a/meta-moblin/packages/boost/files/gcc41.patch b/meta/packages/boost/files/gcc41.patch
index f91d1adf2b..f91d1adf2b 100644
--- a/meta-moblin/packages/boost/files/gcc41.patch
+++ b/meta/packages/boost/files/gcc41.patch
diff --git a/meta-moblin/packages/boost/files/gcc43.patch b/meta/packages/boost/files/gcc43.patch
index aefe0800c3..aefe0800c3 100644
--- a/meta-moblin/packages/boost/files/gcc43.patch
+++ b/meta/packages/boost/files/gcc43.patch
diff --git a/meta-moblin/packages/boost/files/linux-uclibc.patch b/meta/packages/boost/files/linux-uclibc.patch
index 79f14dea88..79f14dea88 100644
--- a/meta-moblin/packages/boost/files/linux-uclibc.patch
+++ b/meta/packages/boost/files/linux-uclibc.patch
diff --git a/meta-moblin/packages/boost/files/unit_test_log10f.patch b/meta/packages/boost/files/unit_test_log10f.patch
index b235e12446..b235e12446 100644
--- a/meta-moblin/packages/boost/files/unit_test_log10f.patch
+++ b/meta/packages/boost/files/unit_test_log10f.patch