Bug 8047 - Building a packagegroup with rpm5 then rpm4 does not rebuild the package
Summary: Building a packagegroup with rpm5 then rpm4 does not rebuild the package
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Low normal
Target Milestone: 2.1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-07-24 14:05 UTC by Paul Eggleton
Modified: 2016-03-30 20:25 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
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 Paul Eggleton 2015-07-24 14:05:14 UTC
If I build an image with ssh-server-openssh in EXTRA_IMAGE_FEATURES, this causes packagegroup-core-ssh-openssh to be built and included in the image. If I build the image with RPM5 and then switch to RPM4, seemingly all of the other packages get rebuilt with rpm 4.x except for this one. Using bitbake-dumpsig I can see that the signature for packagegroup-core-ssh-openssh's do_package_write_rpm task does not include rpm-native.do_populate_sysroot, which accounts for this behaviour. Looking at other do_package_write_rpm signatures it seems that it's just allarch packagegroups that suffer from this - ${MACHINE_ARCH} packagegroups don't, nor do non-packagegroup allarch recipes.
Comment 1 Michael Halstead 2015-08-12 16:01:56 UTC
Clearing 2.0 milestone
Comment 2 Richard Purdie 2016-03-28 17:07:45 UTC
Whilst rpm4 is gone, it would still be good to understand why the rpm-native dependency goes missing...
Comment 3 Richard Purdie 2016-03-28 17:16:51 UTC
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 4f115e9..5828a9d 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -40,7 +40,7 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
     # Only target packages beyond here
 
     # allarch packagegroups are assumed to have well behaved names which don't change between architecures/tunes
-    if isPackageGroup(fn) and isAllArch(fn):
+    if isPackageGroup(fn) and isAllArch(fn) and not isNative(depname):
         return False  
 
     # Exclude well defined machine specific configurations which don't change ABI

would appear to fix this...