Bug 1206816 - rpm headers vary from parallelism
Summary: rpm headers vary from parallelism
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1081754
  Show dependency treegraph
 
Reported: 2023-01-04 04:05 UTC by Bernhard Wiedemann
Modified: 2023-04-14 20:27 UTC (History)
1 user (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2023-01-04 04:05:58 UTC
While working on reproducible builds for openSUSE, I found that
since the introduction of rpm-4.18 3 weeks ago,
many Factory packages now vary from parallelism in their .src.rpm headers.
e.g. building with osc build -j3 and -j4 gives 

openSUSE:Factory/abcm2ps # filterdiff 'strings' RPMS*/*src.rpm

--- strings RPMS.2/abcm2ps-8.14.14-0.0.src.rpm
+++ strings RPMS/abcm2ps-8.14.14-0.0.src.rpm
@@ -1,6 +1,7 @@
 abcm2ps-8.14.14-0.0
- 7f401a1d6b1de68d118627417c967c5a3d3bcdb8
-e2020445b31966aa351b789c86275831a3121502e6fcf5b550a1caa835313886
+ c4291b1c9ffe3ecbfad5785cfd63e7574158e1fa
+12af42be780406c7ed6eaef3cec3f885fa5d3b7bb36269cdbb2fb34e888c8a4c
+p|oK
 abcm2ps
 8.14.14
 A program to typeset abc tunes into Postscript
@@ -334,7 +335,7 @@
        --sharedstatedir=/var/lib \
        --mandir=/usr/share/man \
        --infodir=/usr/share/info
-make -j3
+make -j4
 %install
 make install DESTDIR="/home/abuild/rpmbuild/BUILDROOT/abcm2ps-8.14.14-0.0.x86_64"


It seems to capture the expanded .spec file in rpm headers. Especially
  make %{?_smp_mflags}

Binary rpms vary as well, because these contain a .src.rpm hash.

This is different from earlier bug 1197780.
Comment 1 Stephan Kulow 2023-01-05 14:14:38 UTC
https://github.com/rpm-software-management/rpm/pull/2047 fixing https://github.com/rpm-software-management/rpm/issues/1241 show it's a feature not a bug for upstream. 

It's still very annoying that host specific macros are expanded into the src rpm
Comment 2 Bernhard Wiedemann 2023-04-14 20:27:17 UTC
https://github.com/rpm-software-management/rpm/issues/2343 collects a few more issues from this.

https://build.opensuse.org/request/show/1062399 fixed one of these issues.