Bug 15385

Summary: deb package feed: all packages upgraded!
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Michael Opdenacker <michael.opdenacker>
Component: coreAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, meta.mr.watcher, meta.watcher, michael.opdenacker, randy.macleod, tim.orling
Version: 4.3.1   
Target Milestone: 6.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Opdenacker 2024-02-07 10:33:50 UTC
Greetings,

I built a package feed based on Poky Nanbield (tip of the branch) using these settings:

MACHINE = "qemux86-64"
EXTRA_IMAGE_FEATURES += "package-management"
DISTRO = "poky-altcfg"
PACKAGE_CLASSES = "package_deb"
PRSERV_HOST = "localhost:0"
INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"

Then I built an image on another based on Poky Nanbield 4.3.1 using these settings:

MACHINE = "qemux86-64"
EXTRA_IMAGE_FEATURES += "package-management"
DISTRO = "poky-altcfg"
PACKAGE_CLASSES = "package_deb"
PACKAGE_FEED_URIS = "http://192.168.1.20:8000"
PRSERV_HOST = "localhost:0"
INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"

Then, if I start this image through QEMU and run:

root@qemux86-64:~# apt update
root@qemux86-64:~# apt list --upgradable 
Listing... Done
acl/unknown 2.3.1-r0.0 amd64 [upgradable from: 2.3.1-r0.0]
apt/unknown 2.6.1-r0.0 amd64 [upgradable from: 2.6.1-r0.0]
...

It wants to upgrade all packages though the package version and revision are exactly the same!

I ran the same experiment with "package_ipk" and "package_rpm", and in both cases, only the packages with a higher version need upgrading (apparently the same number in both cases, about 12 of them).

I'm lacking time to investigate this right now, and it's not exactly within the binary distro project deliverables, but I'll be happy to make quick tests if someone has ideas or patches, or to investigate this further once the binary distro project deliverables are available.
Comment 1 Randy MacLeod 2024-10-24 15:03:57 UTC
Bulk move of 5.1 M4 to 5.2 M2 as approved by AlexB.
Comment 2 Antonin Godard 2025-06-06 07:42:30 UTC
Bulk move of bugs I am assigned to from Milestone 5.2M4 to 5.3M1.
Comment 3 Randy MacLeod 2026-05-28 13:17:57 UTC
Bulk move of unassigned 6.0-M* bugs to 6.1-M2.