[Rpm-maint] [rpm-software-management/rpm] RFE: export build environment information (Issue #3147)
Panu Matilainen
notifications at github.com
Fri Jun 7 06:41:31 UTC 2024
In the meanwhile, here's a trick how you can fish out this information from existing rpmbuild, old and new, without even unpacking sources:
> rpmbuild -bc --noprep --define '__spec_build_pre echo builddir=%{_builddir}; exit 0' rpm.spec |awk /^builddir/
This gives you the toplevel directory where setup will unpack the sources, ie what the existing test systems are build around, ie:
- in rpm < 4.19 it's ~/rpmbuild/BUILD/
- in rpm >= 4.20 it's *currently* something like (please do not hardcode this!) ~/rpmbuild/BUILD/<name>-<version>-build
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3147#issuecomment-2154192419
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3147/2154192419 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240606/67bf56af/attachment-0001.html>
More information about the Rpm-maint
mailing list