Bug 14137

Summary: Add selftest to verify images with different package managers are identical
Product: [QA/Testing] Functional (self) Testing Reporter: Ross Burton <ross.burton>
Component: oe-selftestAssignee: Ross Burton <ross.burton>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: randy.macleod, tim.orling
Version: 3.3   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 14139    
Bug Blocks:    

Description Ross Burton 2020-11-30 12:16:12 UTC
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't cause changes.

Do the diff with diffoscope so that we get nice reports showing the changes.
Comment 1 Ross Burton 2020-12-01 12:05:07 UTC
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't be reproducible, as apparently the keys include inodes. If true we shouldn'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.
Comment 2 Ross Burton 2020-12-01 12:27:42 UTC
Regarding the aux-cache, confirmed that it isn'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.
Comment 3 Ross Burton 2021-02-11 13:48:40 UTC
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.
Comment 4 Randy MacLeod 2023-04-21 18:45:44 UTC
Moved en masse from 4.2 to 4.3 by Randy.