From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Cc: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
Subject: [PATCH v2 2/2] boost: upgrade 1.91.0 -> 1.92.0
Date: Mon, 17 Aug 2026 15:03:00 +0200 [thread overview]
Message-ID: <20260817130300.47761-3-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20260817130300.47761-1-jaipaul.cheernam@est.tech>
ChangeLog: 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.
Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
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%)
diff --git a/meta/recipes-support/boost/boost-1.91.0.inc b/meta/recipes-support/boost/boost-1.92.0.inc
similarity index 90%
rename from meta/recipes-support/boost/boost-1.91.0.inc
rename to meta/recipes-support/boost/boost-1.92.0.inc
index dc68d7a336..98c2ec5aa2 100644
--- a/meta/recipes-support/boost/boost-1.91.0.inc
+++ b/meta/recipes-support/boost/boost-1.92.0.inc
@@ -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/"
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index 7a343e54f6..6cff7c0f8e 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -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
diff --git a/meta/recipes-support/boost/boost/0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch b/meta/recipes-support/boost/boost/0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
index 92bb6e55b3..672a41cf45 100644
--- a/meta/recipes-support/boost/boost/0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
+++ b/meta/recipes-support/boost/boost/0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
@@ -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 <alex.kanavin@gmail.com>
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 <alex.kanavin@gmail.com>
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 + :
diff --git a/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch b/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch
index 229e5ab8ea..271220e589 100644
--- a/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch
+++ b/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch
@@ -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 <anuj.mittal@intel.com>
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 <anuj.mittal@intel.com>
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 ( * )
diff --git a/meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch b/meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch
new file mode 100644
index 0000000000..ee3324f95b
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0001-histogram-move-b2-project-requirements-out-of-build.patch
@@ -0,0 +1,85 @@
+From 6f9d9d2c7c9736a8932460ee6c03244d55d24539 Mon Sep 17 00:00:00 2001
+From: Henry Schreiner <henryfs@princeton.edu>
+Date: Thu, 23 Jul 2026 10:12:17 -0400
+Subject: [PATCH] fix: move b2 project requirements out of build.jam
+
+<local-visibility>hidden as a global project requirement leaks into the
+install targets that boost-library generates and breaks alternative
+selection when building the Boost superproject. The warning flags,
+/bigobj, and hidden visibility only matter when compiling tests and
+examples, so move them into test/Jamfile and examples/Jamfile.
+
+Fixes #425
+
+Assisted-by: ClaudeCode:claude-fable-5
+
+Upstream-Status: Backport [https://github.com/boostorg/histogram/commit/6f9d9d2c7c9736a8932460ee6c03244d55d24539]
+
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ libs/histogram/build.jam | 11 +----------
+ libs/histogram/examples/Jamfile | 7 +++++++
+ libs/histogram/test/Jamfile | 7 +++++++
+ 3 files changed, 15 insertions(+), 10 deletions(-)
+
+diff --git a/libs/histogram/build.jam b/libs/histogram/build.jam
+index 3adb8997..4aa62f46 100644
+--- a/libs/histogram/build.jam
++++ b/libs/histogram/build.jam
+@@ -19,16 +19,7 @@ constant boost_dependencies :
+ /boost/throw_exception//boost_throw_exception
+ /boost/variant2//boost_variant2 ;
+
+-project /boost/histogram
+- : requirements
+- <toolset>clang:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion"
+- <toolset>gcc:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wfloat-conversion"
+- <toolset>msvc:<cxxflags>"/bigobj"
+- <toolset>intel-win:<cxxflags>"/bigobj"
+- <local-visibility>hidden
+- : default-build
+- <warnings>extra
+- ;
++project /boost/histogram ;
+
+ explicit
+ [ alias boost_histogram : : :
+diff --git a/libs/histogram/examples/Jamfile b/libs/histogram/examples/Jamfile
+index 655c0228..33b98d0f 100644
+--- a/libs/histogram/examples/Jamfile
++++ b/libs/histogram/examples/Jamfile
+@@ -20,6 +20,13 @@ project
+ # list could go on...
+ ]
+ <library>/boost/format//boost_format
++ <toolset>clang:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion"
++ <toolset>gcc:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wfloat-conversion"
++ <toolset>msvc:<cxxflags>"/bigobj"
++ <toolset>intel-win:<cxxflags>"/bigobj"
++ <local-visibility>hidden
++ : default-build
++ <warnings>extra
+ ;
+
+ alias cxx14 :
+diff --git a/libs/histogram/test/Jamfile b/libs/histogram/test/Jamfile
+index f69299dc..c156e124 100644
+--- a/libs/histogram/test/Jamfile
++++ b/libs/histogram/test/Jamfile
+@@ -30,6 +30,13 @@ project
+ cxx14_constexpr cxx14_decltype_auto cxx14_generic_lambdas cxx14_return_type_deduction cxx11_user_defined_literals
+ # list could go on...
+ ]
++ <toolset>clang:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion"
++ <toolset>gcc:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wfloat-conversion"
++ <toolset>msvc:<cxxflags>"/bigobj"
++ <toolset>intel-win:<cxxflags>"/bigobj"
++ <local-visibility>hidden
++ : default-build
++ <warnings>extra
+ ;
+
+ # Check consistency of build systems
+--
+2.34.1
+
diff --git a/meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch b/meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch
index 178c1dd416..eb6781f3b7 100644
--- a/meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch
+++ b/meta/recipes-support/boost/boost/boost-math-disable-pch-for-gcc.patch
@@ -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 <jackie.huang@windriver.com>
Date: Fri, 23 Sep 2016 01:04:50 -0700
Subject: [PATCH] boost-math: disable pch for gcc
diff --git a/meta/recipes-support/boost/boost_1.91.0.bb b/meta/recipes-support/boost/boost_1.92.0.bb
similarity index 76%
rename from meta/recipes-support/boost/boost_1.91.0.bb
rename to meta/recipes-support/boost/boost_1.92.0.bb
index 4b580d078b..01fc6bea66 100644
--- a/meta/recipes-support/boost/boost_1.91.0.bb
+++ b/meta/recipes-support/boost/boost_1.92.0.bb
@@ -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 \
"
prev parent reply other threads:[~2026-08-17 13:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-16 16:26 [PATCH 0/2] boost: upgrade 1.91.0 -> 1.92.0 Jaipaul Cheernam
2026-08-16 16:26 ` [PATCH 1/2] boost-build-native: " Jaipaul Cheernam
2026-08-16 16:26 ` [PATCH 2/2] boost: " Jaipaul Cheernam
2026-08-17 11:09 ` [OE-core] " Alexander Kanavin
2026-08-17 11:22 ` Jaipaul Cheernam
2026-08-17 13:02 ` [PATCH v2 0/2] " Jaipaul Cheernam
2026-08-17 13:02 ` [PATCH v2 1/2] boost-build-native: " Jaipaul Cheernam
2026-08-17 13:03 ` Jaipaul Cheernam [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260817130300.47761-3-jaipaul.cheernam@est.tech \
--to=jaipaul.cheernam@est.tech \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.