<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15031</bug_id>
          
          <creation_ts>2023-02-09 07:03:32 +0000</creation_ts>
          <short_desc>Upgrade to boost-build 1.8.0 breaks patchability of target jam files</short_desc>
          <delta_ts>2025-06-05 15:15:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jens Georg">jens.georg</reporter>
          <assigned_to name="Jens Georg">jens.georg</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94907</commentid>
    <comment_count>0</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2023-02-09 07:03:32 +0000</bug_when>
    <thetext>0c82598d22b69d8787faa1f9fe7c2e9bc62c4cfa upgraded the boost-build-native recipe to switch to 1.8x as this is required by the newer versions of boost.

However this causes something curious to happen:

When building boost for the target system, the b2 from boost-build-native takes the .jam files it installed to $sysroot-native/usr/share/b2 INSTEAD of the ones from the unpacked boost source

I have cross-checked that as follows:

 - Backporting boost-build of least 1.79 to kirkstone. This breaks my patches for the python jam file similarly to master. 1.78 does not break it and the main difference is the install location of the jam files from boost-build-native
 -  Moving /usr/share/b2 to /usr/share/boost-build (default before before 1.79) restores the old behavior.

I am happy to provide a fix, but I have no idea what the expected behavior here is.

Mine would be that patching the build files of the target should have an effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94909</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-02-09 15:38:50 +0000</bug_when>
    <thetext>Hi Jens,

No one in the Yocto triage call has any experience with that so could you post a patch to the list?

Welcome to Yocto from a former physics geek (LBL, JLab!) -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94913</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-02-09 15:56:53 +0000</bug_when>
    <thetext>Naively poking around a bit, seems this might be related?

https://github.com/boostorg/build/blob/develop/doc/src/history.adoc#version-490

Warning
This release removes the use of boost-build.jam and the boost-build rule for initialization. The boost-build.jam is still searched for and loaded to not break existing operations. But is considered deprecated and will be removed in a future release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94916</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-02-09 16:11:22 +0000</bug_when>
    <thetext>Apparently upstream is transitioning to https://github.com/bfgroup/b2

This commit is slightly concerning:
https://github.com/bfgroup/b2/commit/e746a952c7a350acf4884454022e0d9bac8c4dd5

Remove Python port.
The Python port and support extensions in B2 engine were unmaintained.
This fully removes the bindings between Jam and Python. And removes the
incomplete build system port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94919</commentid>
    <comment_count>4</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2023-02-10 08:54:57 +0000</bug_when>
    <thetext>
(In reply to comment #3)
&gt; Apparently upstream is transitioning to https://github.com/bfgroup/b2

The boost build systems utterly confuse me. I though boost-build was the externalized version of what is bootstrapped inside boost

(In reply to comment #3)
&gt; Remove Python port.
&gt; The Python port and support extensions in B2 engine were unmaintained.
&gt; This fully removes the bindings between Jam and Python. And removes the
&gt; incomplete build system port.

I think the python port only references the port of the build system to python?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94920</commentid>
    <comment_count>5</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2023-02-10 08:55:41 +0000</bug_when>
    <thetext>Sow e agree that modifying boosts build files in a recipe should be possible? If so, I will dig into this and try to come up with a solution</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95418</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-21 18:45:43 +0000</bug_when>
    <thetext>Moved en masse from 4.2 to 4.3 by Randy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97902</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-18 16:17:53 +0000</bug_when>
    <thetext>Do you still plan to look into this Jens?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97924</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-01-19 12:03:31 +0000</bug_when>
    <thetext>Sort of related: in case anyone is interested, I&apos;ve started on a b2 5.0 recipe in poky-contrib:ross/b2.

I don&apos;t know if that will solve this problem...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97925</commentid>
    <comment_count>9</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2024-01-19 12:08:54 +0000</bug_when>
    <thetext>Hi, sorry,

this toppled down in priority on our side, the current plan was to get back onto Yocto topics in two weeks and start looking into this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98518</commentid>
    <comment_count>10</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2024-03-18 11:04:03 +0000</bug_when>
    <thetext>The b2 5.0 package from Ross shows the same behavior, unfortunately</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98520</commentid>
    <comment_count>11</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2024-03-18 11:40:28 +0000</bug_when>
    <thetext>Furthermore, while it is possible to use b2 5.0 to compile boost, it is not possible to use the b2 core inside boost then, because its too old.

I am now somewhat leaning forward that one needs to be aware that patches have to go to the build tool not boost, however unfortunate and backwards-seeming that is, because python.jam is actually part of the build tool, not boost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100090</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-31 15:09:23 +0000</bug_when>
    <thetext>Bulk move of 5.1 bugs to 5.2. -- YP bug review (Randy)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101768</commentid>
    <comment_count>13</comment_count>
    <who name="Jens Georg">jens.georg</who>
    <bug_when>2025-04-29 06:36:42 +0000</bug_when>
    <thetext>In my opinion this is obsolete. Misunderstanding caused by a bug in the boost recipies that was actually fixed with 0c82598d22b69d8787faa1f9fe7c2e9bc62c4cfa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102163</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-06-05 15:15:54 +0000</bug_when>
    <thetext>https://bugzilla.yoctoproject.org/show_bug.cgi?id=15031#c13</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>