All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] boost: upgrade 1.91.0 -> 1.92.0
@ 2026-08-16 16:26 Jaipaul Cheernam
  2026-08-16 16:26 ` [PATCH 1/2] boost-build-native: " Jaipaul Cheernam
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-16 16:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jaipaul Cheernam

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%)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] boost-build-native: upgrade 1.91.0 -> 1.92.0
  2026-08-16 16:26 [PATCH 0/2] boost: upgrade 1.91.0 -> 1.92.0 Jaipaul Cheernam
@ 2026-08-16 16:26 ` Jaipaul Cheernam
  2026-08-16 16:26 ` [PATCH 2/2] boost: " Jaipaul Cheernam
  2026-08-17 13:02 ` [PATCH v2 0/2] " Jaipaul Cheernam
  2 siblings, 0 replies; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-16 16:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jaipaul Cheernam

CompareLog: https://github.com/boostorg/build/compare/boost-1.91.0...boost-1.92.0

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 ...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%)

diff --git a/meta/recipes-support/boost/boost-build-native_1.91.0.bb b/meta/recipes-support/boost/boost-build-native_1.92.0.bb
similarity index 92%
rename from meta/recipes-support/boost/boost-build-native_1.91.0.bb
rename to meta/recipes-support/boost/boost-build-native_1.92.0.bb
index c276cf436d..008bdacf5e 100644
--- a/meta/recipes-support/boost/boost-build-native_1.91.0.bb
+++ b/meta/recipes-support/boost/boost-build-native_1.92.0.bb
@@ -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+)+))"


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] boost: upgrade 1.91.0 -> 1.92.0
  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 ` Jaipaul Cheernam
  2026-08-17 11:09   ` [OE-core] " Alexander Kanavin
  2026-08-17 13:02 ` [PATCH v2 0/2] " Jaipaul Cheernam
  2 siblings, 1 reply; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-16 16:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jaipaul Cheernam

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 to
prevent permission errors and remove the installed b2 check tooling as it
is not needed for runtime or cross-compilation.

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 .../{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%)

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..6e9b1dc89c 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -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"
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 \
            "


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH 2/2] boost: upgrade 1.91.0 -> 1.92.0
  2026-08-16 16:26 ` [PATCH 2/2] boost: " Jaipaul Cheernam
@ 2026-08-17 11:09   ` Alexander Kanavin
  2026-08-17 11:22     ` Jaipaul Cheernam
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Kanavin @ 2026-08-17 11:09 UTC (permalink / raw)
  To: jaipaul.cheernam; +Cc: openembedded-core

> +        # 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH 2/2] boost: upgrade 1.91.0 -> 1.92.0
  2026-08-17 11:09   ` [OE-core] " Alexander Kanavin
@ 2026-08-17 11:22     ` Jaipaul Cheernam
  0 siblings, 0 replies; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-17 11:22 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]


On 2026-08-17 13:09, Alexander Kanavin wrote:
>> +        # 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.

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


[-- Attachment #2: Type: text/html, Size: 2142 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2 0/2] boost: upgrade 1.91.0 -> 1.92.0
  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 13:02 ` Jaipaul Cheernam
  2026-08-17 13:02   ` [PATCH v2 1/2] boost-build-native: " Jaipaul Cheernam
  2026-08-17 13:03   ` [PATCH v2 2/2] boost: " Jaipaul Cheernam
  2 siblings, 2 replies; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-17 13:02 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jaipaul Cheernam

Upgrade 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%)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2 1/2] boost-build-native: upgrade 1.91.0 -> 1.92.0
  2026-08-17 13:02 ` [PATCH v2 0/2] " Jaipaul Cheernam
@ 2026-08-17 13:02   ` Jaipaul Cheernam
  2026-08-17 13:03   ` [PATCH v2 2/2] boost: " Jaipaul Cheernam
  1 sibling, 0 replies; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-17 13:02 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jaipaul Cheernam

CompareLog: https://github.com/boostorg/build/compare/boost-1.91.0...boost-1.92.0

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 ...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%)

diff --git a/meta/recipes-support/boost/boost-build-native_1.91.0.bb b/meta/recipes-support/boost/boost-build-native_1.92.0.bb
similarity index 92%
rename from meta/recipes-support/boost/boost-build-native_1.91.0.bb
rename to meta/recipes-support/boost/boost-build-native_1.92.0.bb
index c276cf436d..008bdacf5e 100644
--- a/meta/recipes-support/boost/boost-build-native_1.91.0.bb
+++ b/meta/recipes-support/boost/boost-build-native_1.92.0.bb
@@ -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+)+))"


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 2/2] boost: upgrade 1.91.0 -> 1.92.0
  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
  1 sibling, 0 replies; 8+ messages in thread
From: Jaipaul Cheernam @ 2026-08-17 13:03 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jaipaul Cheernam

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 \
            "


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-08-17 13:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [PATCH v2 2/2] boost: " Jaipaul Cheernam

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.