<?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>15491</bug_id>
          
          <creation_ts>2024-05-23 14:23:50 +0000</creation_ts>
          <short_desc>libz-src is not reproducible</short_desc>
          <delta_ts>2024-10-29 23:00:39 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>JPEWhacker</cc>
    
    <cc>mathieu.dubois-briand</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>steve</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99054</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-05-23 14:23:50 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4835/steps/12/logs/stdio

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240523-gce7682v/packages/diff-html/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99057</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-05-23 14:44:04 +0000</bug_when>
    <thetext>Likely a cache invalidation problem according to RP.
Not clear what to do about it.

Only seen in Alex&apos;s personal branches which don&apos;t have any libz  changes.
Zlib is not autoconf-based.

This may be to changes from gcc13 to gcc14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99058</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2024-05-23 14:45:23 +0000</bug_when>
    <thetext>libz has it&apos;s own (non-autotools) configure script. You can see here where it changes the line in zconf.h: https://github.com/madler/zlib/blob/0f51fb4933fc9ce18199cb2554dacea8033e7fd3/configure#L580

I&apos;m not sure why this simple compile test passes sometimes and doesn&apos;t other times</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99059</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-05-23 14:55:11 +0000</bug_when>
    <thetext>FWIW, with my current master my zconf.h has:

#ifdef HAVE_UNISTD_H    /* may be set to #if 1 by ./configure */
#  define Z_HAVE_UNISTD_H
#endif

#ifdef HAVE_STDARG_H    /* may be set to #if 1 by ./configure */
#  define Z_HAVE_STDARG_H
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99110</commentid>
    <comment_count>4</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2024-05-31 18:38:28 +0000</bug_when>
    <thetext>Showing up in scarthgap too:

https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4874/steps/12/logs/stdio

https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4878/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99369</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-11 15:05:30 +0000</bug_when>
    <thetext>We may have changed something to fix this but no one on the YP bug review call could recall what the change may have been! ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99420</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-22 21:02:55 +0000</bug_when>
    <thetext>Not seen for two months and people suspect that the issue may have been fixed.
Re-open if seen again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99877</commentid>
    <comment_count>7</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-16 08:56:24 +0000</bug_when>
    <thetext>Several failures on the reproducible autobuilder. Seems to happen quite often, but not on each build. Probably related to the switch to valkyrie.

AssertionError: The following rpm packages are different and not in exclusion list:
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./core2_64/libz-src-1.3.1-r0.core2_64.rpm

https://valkyrie.yoctoproject.org/#/builders/37/builds/265
https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20241014-68a7dqot/packages/

https://valkyrie.yoctoproject.org/#/builders/37/builds/266
https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20241015-rnbypced/packages/

https://valkyrie.yoctoproject.org/#/builders/37/builds/274/steps/12/logs/stdio
https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20241016-gbk4py46/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99893</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-16 15:45:19 +0000</bug_when>
    <thetext>reproducible opensuse156-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/265/steps/13/logs/stdio

reproducible ubuntu2204-vk-2
https://valkyrie.yoctoproject.org/#/builders/37/builds/266/steps/12/logs/stdio

reproducible debian12-vk-6
https://valkyrie.yoctoproject.org/#/builders/37/builds/269/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99900</commentid>
    <comment_count>9</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-17 14:23:31 +0000</bug_when>
    <thetext>reproducible fedora39-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/281/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99908</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-10-17 14:55:51 +0000</bug_when>
    <thetext>So this is fun.

The change is zlib-src/usr/src/debug/zlib/zconf.h, which changes between the file in ${S} and the file in ${B}.  The problem is that do_package&apos;s sstate creation does a blanket utime() on the contents, but the source files are hardlinked from $S and $B.

This is bad, because we&apos;re stamping on timestamps in the source and build trees, which can cause problems with rebuilds.

The solution is to not utime() the files but ask tar to do the same when the archive is generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99943</commentid>
    <comment_count>11</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-18 10:20:36 +0000</bug_when>
    <thetext>reproducible fedora40-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/280/steps/12/logs/stdio

reproducible rocky8-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/284/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99954</commentid>
    <comment_count>12</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-21 07:52:13 +0000</bug_when>
    <thetext>reproducible alma8-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/272/steps/13/logs/stdio

reproducible fedora40-vk-2
https://valkyrie.yoctoproject.org/#/builders/37/builds/276/steps/12/logs/stdio

reproducible debian12-vk-9
https://valkyrie.yoctoproject.org/#/builders/37/builds/279/steps/12/logs/stdio

reproducible debian12-vk-3
https://valkyrie.yoctoproject.org/#/builders/37/builds/283/steps/12/logs/stdio

reproducible fedora41-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/290/steps/12/logs/stdio

reproducible debian11-vk-3
https://valkyrie.yoctoproject.org/#/builders/37/builds/291/steps/12/logs/stdio

reproducible ubuntu2404-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/292/steps/12/logs/stdio

reproducible rocky9-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/293/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99971</commentid>
    <comment_count>13</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-23 08:45:00 +0000</bug_when>
    <thetext>reproducible rocky8-vk-1
https://valkyrie.yoctoproject.org/#/builders/37/builds/304/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100063</commentid>
    <comment_count>14</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-10-29 23:00:39 +0000</bug_when>
    <thetext>Ross posted a good explanation of this here:

https://lists.openembedded.org/g/openembedded-core/message/206301

We ended up fixing this with:

https://git.yoctoproject.org/poky/commit/?id=a147293ed6d9c1387610f6cf9542ffa3aff50b61</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>