+ /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '<rpm-build>' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m 'python-oslo-log-5.3.0 base' + /usr/bin/git checkout --track -b rpm-build ...
If the package records the git hash in build, it'll be different every time.
https://github.com/rpm-software-management/rpm/pull/2930
The pull request was merged so this fix should be available in rpm 4.20.
From cache/build/ffmpeg-6.1.1-15.fc41/rebuild/build.log:
cache/build/ffmpeg-6.1.1-15.fc41/rebuild/build.log
+ cd ffmpeg-6.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '<rpm-build>' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + GIT_COMMITTER_DATE=@1718236800 + GIT_AUTHOR_DATE=@1718236800 + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m 'ffmpeg-6.1.1 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/ffmpeg-codec-choice.patch + GIT_COMMITTER_DATE=@1718236800 + /usr/bin/git am --reject -q .git/rebase-apply/patch:30: trailing whitespace. .p.video_codec = Checking patch libavformat/matroskaenc.c... Hunk #1 succeeded at 3538 (offset 217 lines). Hunk #2 succeeded at 3624 (offset 227 lines). Applied patch libavformat/matroskaenc.c cleanly. warning: 1 line adds whitespace errors. ...
And the binary rpms are reproducible.
Metadata Update from @zbyszek: - Issue status updated to: Closed (was: Open)
(This is with rpm-libs-4.19.91-13.fc41.x86_64, i.e. rpm-4.20 except that cmake does not allow the version to be specified properly.)