Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion. mock/mock/py/mockbuild/backend.py Line 695 in cab1275 or did I miss something? |
Beta Was this translation helpful? Give feedback.
-
The macros specified in |
Beta Was this translation helpful? Give feedback.
-
Short description of the problem
It is not possible to create RPM source package with additional macros. 'buildsrpm' command does not include 'rpmbuild_opts'. The source packages which are built by
rpmbuild
andmock
are different.With
rebuild
command this is possibleOutput of
rpm -q mock
mock-3.5-1.el8.noarch
Steps to reproduce issue
rpmbuild
`rpmbuild -D '_buildhost docker' -D 'source_date_epoch_from_changelog 1' -D '_topdir /root/rpmbuild' -bs file.spec
mock
`mock -v --resultdir /root/rpmbuild/SRPMS --rpmbuild-opts="-D '_buildhost docker' -D 'source_date_epoch_from_changelog 1' -D '_topdir /root/rpmbuild'" --buildsrpm --spec /root/rpmbuild/SPECS/openvpn3.spec --sources /root/rpmbuild/SOURCES
diffoscope
is the best for this in my opinion) - they are different, additional macros are not applied.Small diff from
diffoscope
outputDo not forget to mention full commandline with the mock command you executed.
Any additional notes
Output of `mock --debug-config`
PUT THE OUTPUT HERE
Beta Was this translation helpful? Give feedback.
All reactions