boost: upgrade 1.91.0 -> 1.92.0
cover boost: upgrade 1.91.0 -> 1.92.0
Upgrade boost and boost-build-native to 1.92.0.
Includes a backport for boost.histogram build failure and a fix for boost.predef installing unneeded b2 tooling.
Jaipaul Cheernam (2):
boost-build-native: upgrade 1.91.0 -> 1.92.0
boost: upgrade 1.91.0 -> 1.92.0
.../{boost-1.91.0.inc => boost-1.92.0.inc} | 2 +-
...1.91.0.bb => boost-build-native_1.92.0.bb} | 2 +-
meta/recipes-support/boost/boost.inc | 4 +
...h-instruction-set-flags-we-do-that-o.patch | 4 +-
...01-dont-setup-compiler-flags-m32-m64.patch | 4 +-
...b2-project-requirements-out-of-build.patch | 85 +++++++++++++++++++
.../boost-math-disable-pch-for-gcc.patch | 2 +-
.../{boost_1.91.0.bb => boost_1.92.0.bb} | 1 +
8 files changed, 97 insertions(+), 7 deletions(-)
rename meta/recipes-support/boost/{boost-1.91.0.inc => boost-1.92.0.inc} (90%)
rename meta/recipes-support/boost/{boost-build-native_1.91.0.bb => boost-build-native_1.92.0.bb} (92%)
create mode 100644 meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch
rename meta/recipes-support/boost/{boost_1.91.0.bb => boost_1.92.0.bb} (76%)PATCH 1/2 boost-build-native: upgrade 1.91.0 -> 1.92.0
CompareLog: https://github.com/boostorg/build/compare/boost-1.91.0...boost-1.92.0
---
...oost-build-native_1.91.0.bb => boost-build-native_1.92.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-support/boost/{boost-build-native_1.91.0.bb => boost-build-native_1.92.0.bb} (92%)meta/recipes-support/boost/boost-build-native_1.92.0.bb renamed from meta/recipes-support/boost/boost-build-native_1.91.0.bb +1 -1
@@ -7,7 +7,7 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c" SRC_URI = "git://github.com/boostorg/build;protocol=https;branch=master;tag=boost-${PV}" -SRCREV = "85252c9d6a3817daca23ddae94ce16c7be4d2c12" +SRCREV = "05b6b638b54e1f013fb8b281f5020e337be31363" PE = "1" UPSTREAM_CHECK_GITTAGREGEX = "boost-(?P<pver>(\d+(\.\d+)+))"
PATCH 2/2 boost: upgrade 1.91.0 -> 1.92.0
In reply to Jaipaul CheernamChangeLog: https://www.boost.org/users/history/version_1_92_0.html
CompareLog: https://github.com/boostorg/boost/compare/boost-1.91.0...boost-1.92.0
Backport fix from upstream for boost.histogram build failure caused by <local-visibility>hidden leaking into install targets (boostorg/histogram#425).
B2 1.92.0 now triggers boost.predef's install-data target during install, which was not invoked in previous versions. Add --prefix to do_install to prevent permission errors and remove the installed b2 check tooling as it is not needed for runtime or cross-compilation.
---
.../{boost-1.91.0.inc => boost-1.92.0.inc} | 2 +-
meta/recipes-support/boost/boost.inc | 4 +
...h-instruction-set-flags-we-do-that-o.patch | 4 +-
...01-dont-setup-compiler-flags-m32-m64.patch | 4 +-
...b2-project-requirements-out-of-build.patch | 85 +++++++++++++++++++
.../boost-math-disable-pch-for-gcc.patch | 2 +-
.../{boost_1.91.0.bb => boost_1.92.0.bb} | 1 +
7 files changed, 96 insertions(+), 6 deletions(-)
rename meta/recipes-support/boost/{boost-1.91.0.inc => boost-1.92.0.inc} (90%)
create mode 100644 meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch
rename meta/recipes-support/boost/{boost_1.91.0.bb => boost_1.92.0.bb} (76%)meta/recipes-support/boost/boost-1.92.0.inc renamed from meta/recipes-support/boost/boost-1.91.0.inc +1 -1
@@ -12,7 +12,7 @@ BOOST_MAJ = "${@"_".join(d.getVar("PV").split(".")[0:2])}" BOOST_P = "boost_${BOOST_VER}" SRC_URI = "https://archives.boost.io/release/${PV}/source/${BOOST_P}.tar.bz2" -SRC_URI[sha256sum] = "de5e6b0e4913395c6bdfa90537febd9028ea4c0735d2cdb0cd9b45d5f51264f5" +SRC_URI[sha256sum] = "5c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c" UPSTREAM_CHECK_URI = "http://www.boost.org/users/download/" UPSTREAM_CHECK_REGEX = "release/(?P<pver>.*)/source/"
meta/recipes-support/boost/boost.inc +4 -0
@@ -200,6 +200,7 @@ do_compile() { do_install() { cd ${S} b2 ${BJAM_OPTS} \ + --prefix=${D}${prefix} \ --libdir=${D}${libdir} \ --includedir=${D}${includedir} \ install
@@ -217,6 +218,9 @@ do_install() { grep 'cmake$' | \ xargs -n 1 sed -e 's,${D}${libdir}/cmake,${libdir}/cmake,' -i + # Remove boost_predef b2 check tooling - not needed for runtime or + # cross-compilation, and was never installed in previous versions + rm -rf ${D}${datadir} } BBCLASSEXTEND = "native nativesdk"
meta/recipes-support/boost/boost/0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch +2 -2
@@ -1,4 +1,4 @@ -From 98fff479c074472833dcacb815115f247e9023c7 Mon Sep 17 00:00:00 2001 +From d43269dab039cefe841c7fe9804d0cb6b5bbc393 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Tue, 18 Dec 2018 15:42:57 +0100 Subject: [PATCH] Don't set up arch/instruction-set flags, we do that
@@ -13,7 +13,7 @@ Signed-off-by: Alexander Kanavin <[email protected]> 1 file changed, 153 deletions(-) diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam -index acf02ce26..becd0ad05 100644 +index 5359b018d..ac313ce0d 100644 --- a/tools/build/src/tools/gcc.jam +++ b/tools/build/src/tools/gcc.jam @@ -1150,156 +1150,3 @@ local rule cpu-flags ( toolset variable : architecture : instruction-set + :
meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch +2 -2
@@ -1,4 +1,4 @@ -From 03ec6a66ad60d224d56c0b85eae843b469b572e0 Mon Sep 17 00:00:00 2001 +From c10c18b6d48304efd7e9d07fc46ab6db932f9694 Mon Sep 17 00:00:00 2001 From: Anuj Mittal <[email protected]> Date: Thu, 14 Nov 2019 10:13:53 +0800 Subject: [PATCH] dont setup compiler flags -m32/-m64
@@ -13,7 +13,7 @@ Signed-off-by: Anuj Mittal <[email protected]> 1 file changed, 16 deletions(-) diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam -index becd0ad05..e39bf8454 100644 +index ac313ce0d..9221f8615 100644 --- a/tools/build/src/tools/gcc.jam +++ b/tools/build/src/tools/gcc.jam @@ -375,22 +375,6 @@ local rule compile-link-flags ( * )
meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch new file +85 -0
85 lines not on this page · raw message
meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch +1 -1
@@ -1,4 +1,4 @@ -From 2dd80802e0b9747ed32f45a886c7ad21b7fa61be Mon Sep 17 00:00:00 2001 +From 698ccf919d6facfbacdeeeceb7aeff1431d12316 Mon Sep 17 00:00:00 2001 From: Jackie Huang <[email protected]> Date: Fri, 23 Sep 2016 01:04:50 -0700 Subject: [PATCH] boost-math: disable pch for gcc
meta/recipes-support/boost/boost_1.92.0.bb renamed from meta/recipes-support/boost/boost_1.91.0.bb +1 -0
@@ -4,4 +4,5 @@ require boost.inc SRC_URI += "file://boost-math-disable-pch-for-gcc.patch \ file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \ file://0001-dont-setup-compiler-flags-m32-m64.patch \ + file://0001-histogram-move-b2-project-requirements-out-of-build.patch \ "
meta/recipes-support/boost/boost.inc do_install() { · line 223
Quoted 3 lines
meta/recipes-support/boost/boost.inc +3
-0+ # Remove boost_predef b2 check tooling - not needed for runtime or + # cross-compilation, and was never installed in previous versions + rm -rf ${D}${datadir}
Removing all of datadir is excessive. There might still be useful pieces in there, if not now, then in future versions.
Also, why remove something that upstream has started to install? Say something is 'not needed' or gives 'permission errors' is too vague, and not a sufficient reason,
If they deem something useful, then we should not go against it; if it's not useful in the package it currently goes into, then we should find a better package, or make a separate new package for it.
Alex
Quoted 6 lines · Alexander Kanavin
meta/recipes-support/boost/boost.inc do_install() { · line 223
Quoted 3 lines
meta/recipes-support/boost/boost.inc +3
-0+ # Remove boost_predef b2 check tooling - not needed for runtime or + # cross-compilation, and was never installed in previous versions + rm -rf ${D}${datadir}Removing all of datadir is excessive. There might still be useful pieces in there, if not now, then in future versions.
Quoted 7 lines
Also, why remove something that upstream has started to install? Say something is 'not needed' or gives 'permission errors' is too vague, and not a sufficient reason,
If they deem something useful, then we should not go against it; if it's not useful in the package it currently goes into, then we should find a better package, or make a separate new package for it.
Thanks Alex, I initially had it in boost-dev but switched to removing it after finding it was never installed in 1.91.0.
v2 ships it in boost-dev alongside the cmake files — both are build-time tooling, and a separate package for a handful of files would be unnecessary overhead.
The --prefix addition remains needed because B2 1.92.0 now invokes predef's install-data target (not triggered in previous versions), and without it the path resolves to /usr/local.
Regards,
Jaipaul
v2 cover boost: upgrade 1.91.0 -> 1.92.0
In reply to Jaipaul CheernamUpgrade boost and boost-build-native to 1.92.0.
Includes a backport for boost.histogram build failure and a fix for boost.predef's newly triggered install-data target.
Changes since v1:
- Drop rm -rf ${datadir}; ship predef b2 check tooling in boost-dev instead of removing it
Jaipaul Cheernam (2):
boost-build-native: upgrade 1.91.0 -> 1.92.0
boost: upgrade 1.91.0 -> 1.92.0
.../{boost-1.91.0.inc => boost-1.92.0.inc} | 2 +-
...1.91.0.bb => boost-build-native_1.92.0.bb} | 2 +-
meta/recipes-support/boost/boost.inc | 3 +-
...h-instruction-set-flags-we-do-that-o.patch | 4 +-
...01-dont-setup-compiler-flags-m32-m64.patch | 4 +-
...b2-project-requirements-out-of-build.patch | 85 +++++++++++++++++++
.../boost-math-disable-pch-for-gcc.patch | 2 +-
.../{boost_1.91.0.bb => boost_1.92.0.bb} | 1 +
8 files changed, 95 insertions(+), 8 deletions(-)
rename meta/recipes-support/boost/{boost-1.91.0.inc => boost-1.92.0.inc} (90%)
rename meta/recipes-support/boost/{boost-build-native_1.91.0.bb => boost-build-native_1.92.0.bb} (92%)
create mode 100644 meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch
rename meta/recipes-support/boost/{boost_1.91.0.bb => boost_1.92.0.bb} (76%)PATCH v2 1/2 boost-build-native: upgrade 1.91.0 -> 1.92.0
CompareLog: https://github.com/boostorg/build/compare/boost-1.91.0...boost-1.92.0
---
...oost-build-native_1.91.0.bb => boost-build-native_1.92.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-support/boost/{boost-build-native_1.91.0.bb => boost-build-native_1.92.0.bb} (92%)meta/recipes-support/boost/boost-build-native_1.92.0.bb renamed from meta/recipes-support/boost/boost-build-native_1.91.0.bb +1 -1
@@ -7,7 +7,7 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c" SRC_URI = "git://github.com/boostorg/build;protocol=https;branch=master;tag=boost-${PV}" -SRCREV = "85252c9d6a3817daca23ddae94ce16c7be4d2c12" +SRCREV = "05b6b638b54e1f013fb8b281f5020e337be31363" PE = "1" UPSTREAM_CHECK_GITTAGREGEX = "boost-(?P<pver>(\d+(\.\d+)+))"
PATCH v2 2/2 boost: upgrade 1.91.0 -> 1.92.0
In reply to Jaipaul CheernamChangeLog: https://www.boost.org/users/history/version_1_92_0.html
CompareLog: https://github.com/boostorg/boost/compare/boost-1.91.0...boost-1.92.0
Backport fix from upstream for boost.histogram build failure caused by <local-visibility>hidden leaking into install targets (boostorg/histogram#425).
B2 1.92.0 now triggers boost.predef's install-data target during install, which was not invoked in previous versions. Add --prefix to do_install so the files install into the image directory correctly. Ship the predef b2 check tooling in boost-dev alongside other build-time files.
---
Changes since v1:
- Drop rm -rf ${datadir}; ship predef b2 check tooling in boost-dev
.../{boost-1.91.0.inc => boost-1.92.0.inc} | 2 +-
meta/recipes-support/boost/boost.inc | 3 +-
...h-instruction-set-flags-we-do-that-o.patch | 4 +-
...01-dont-setup-compiler-flags-m32-m64.patch | 4 +-
...b2-project-requirements-out-of-build.patch | 85 +++++++++++++++++++
.../boost-math-disable-pch-for-gcc.patch | 2 +-
.../{boost_1.91.0.bb => boost_1.92.0.bb} | 1 +
7 files changed, 94 insertions(+), 7 deletions(-)
rename meta/recipes-support/boost/{boost-1.91.0.inc => boost-1.92.0.inc} (90%)
create mode 100644 meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch
rename meta/recipes-support/boost/{boost_1.91.0.bb => boost_1.92.0.bb} (76%)meta/recipes-support/boost/boost-1.92.0.inc renamed from meta/recipes-support/boost/boost-1.91.0.inc +1 -1
@@ -12,7 +12,7 @@ BOOST_MAJ = "${@"_".join(d.getVar("PV").split(".")[0:2])}" BOOST_P = "boost_${BOOST_VER}" SRC_URI = "https://archives.boost.io/release/${PV}/source/${BOOST_P}.tar.bz2" -SRC_URI[sha256sum] = "de5e6b0e4913395c6bdfa90537febd9028ea4c0735d2cdb0cd9b45d5f51264f5" +SRC_URI[sha256sum] = "5c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c" UPSTREAM_CHECK_URI = "http://www.boost.org/users/download/" UPSTREAM_CHECK_REGEX = "release/(?P<pver>.*)/source/"
meta/recipes-support/boost/boost.inc +2 -1
@@ -89,7 +89,7 @@ FILES:${PN}-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ # -dev last to pick up the remaining stuff PACKAGES += "${PN}-dev ${PN}-staticdev" -FILES:${PN}-dev = "${includedir} ${libdir}/libboost_*.so ${libdir}/cmake" +FILES:${PN}-dev = "${includedir} ${libdir}/libboost_*.so ${libdir}/cmake ${datadir}" FILES:${PN}-staticdev = "${libdir}/libboost_*.a" # "boost" is a metapackage which pulls in all boost librabries
@@ -200,6 +200,7 @@ do_compile() { do_install() { cd ${S} b2 ${BJAM_OPTS} \ + --prefix=${D}${prefix} \ --libdir=${D}${libdir} \ --includedir=${D}${includedir} \ install
meta/recipes-support/boost/boost/0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch +2 -2
@@ -1,4 +1,4 @@ -From 98fff479c074472833dcacb815115f247e9023c7 Mon Sep 17 00:00:00 2001 +From d43269dab039cefe841c7fe9804d0cb6b5bbc393 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Tue, 18 Dec 2018 15:42:57 +0100 Subject: [PATCH] Don't set up arch/instruction-set flags, we do that
@@ -13,7 +13,7 @@ Signed-off-by: Alexander Kanavin <[email protected]> 1 file changed, 153 deletions(-) diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam -index acf02ce26..becd0ad05 100644 +index 5359b018d..ac313ce0d 100644 --- a/tools/build/src/tools/gcc.jam +++ b/tools/build/src/tools/gcc.jam @@ -1150,156 +1150,3 @@ local rule cpu-flags ( toolset variable : architecture : instruction-set + :
meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch +2 -2
@@ -1,4 +1,4 @@ -From 03ec6a66ad60d224d56c0b85eae843b469b572e0 Mon Sep 17 00:00:00 2001 +From c10c18b6d48304efd7e9d07fc46ab6db932f9694 Mon Sep 17 00:00:00 2001 From: Anuj Mittal <[email protected]> Date: Thu, 14 Nov 2019 10:13:53 +0800 Subject: [PATCH] dont setup compiler flags -m32/-m64
@@ -13,7 +13,7 @@ Signed-off-by: Anuj Mittal <[email protected]> 1 file changed, 16 deletions(-) diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam -index becd0ad05..e39bf8454 100644 +index ac313ce0d..9221f8615 100644 --- a/tools/build/src/tools/gcc.jam +++ b/tools/build/src/tools/gcc.jam @@ -375,22 +375,6 @@ local rule compile-link-flags ( * )
meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch new file +85 -0
85 lines not on this page · raw message
meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch +1 -1
@@ -1,4 +1,4 @@ -From 2dd80802e0b9747ed32f45a886c7ad21b7fa61be Mon Sep 17 00:00:00 2001 +From 698ccf919d6facfbacdeeeceb7aeff1431d12316 Mon Sep 17 00:00:00 2001 From: Jackie Huang <[email protected]> Date: Fri, 23 Sep 2016 01:04:50 -0700 Subject: [PATCH] boost-math: disable pch for gcc
meta/recipes-support/boost/boost_1.92.0.bb renamed from meta/recipes-support/boost/boost_1.91.0.bb +1 -0
@@ -4,4 +4,5 @@ require boost.inc SRC_URI += "file://boost-math-disable-pch-for-gcc.patch \ file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \ file://0001-dont-setup-compiler-flags-m32-m64.patch \ + file://0001-histogram-move-b2-project-requirements-out-of-build.patch \ "