<?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>14137</bug_id>
          
          <creation_ts>2020-11-30 12:16:12 +0000</creation_ts>
          <short_desc>Add selftest to verify images with different package managers are identical</short_desc>
          <delta_ts>2026-04-23 15:31:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          <dependson>14139</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>tim.orling</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>88687</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-11-30 12:16:12 +0000</bug_when>
    <thetext>We should verify that an images build with opkg/rpm/dpkg are all identical.

The package-manager image feature will need to be disabled so that the package manager itself and the the database doesn&apos;t cause changes.

Do the diff with diffoscope so that we get nice reports showing the changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88697</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-12-01 12:05:07 +0000</bug_when>
    <thetext>Comparing core-image-minimal built with opkg vs rpm there are a few differences:

/etc/shadow and /etc/gshadow differ around the systemd users (bug 14139)

/var/cache/ldconfig/aux-config can&apos;t be reproducible, as apparently the keys include inodes. If true we shouldn&apos;t generate the file at build time anyway. Diffoscope can be told to ignore this file with --exclude=./var/cache/ldconfig/aux-cache

opkg leaves some empty directories /var/(lib|cache)/opkg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88699</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-12-01 12:27:42 +0000</bug_when>
    <thetext>Regarding the aux-cache, confirmed that it isn&apos;t suitable to be generated on the host as the hash keys include inodes:

https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/cache.c;h=c241c17ef9061a7c5ef41fd49dbb9dd624466c76;hb=HEAD line 545.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89209</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-02-11 13:48:40 +0000</bug_when>
    <thetext>aux-cache is deleted from images in 67c1ceb193130fcb30853c2cd1a6ef33a814886e.

opkg package management is deleted from images in 2209cef2cbe5fbdd5562f13f84ae2a3935f4fb61.

Just bug 14139 left and then a selftest can be integrated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95426</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-21 18:45:44 +0000</bug_when>
    <thetext>Moved en masse from 4.2 to 4.3 by Randy.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>