Bug 14137 - Add selftest to verify images with different package managers are identical
Summary: Add selftest to verify images with different package managers are identical
Status: NEW
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: 3.3
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 5.99
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on: 14139
Blocks:
  Show dependency tree
 
Reported: 2020-11-30 12:16 UTC by Ross Burton
Modified: 2026-04-23 15:31 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.