[Rpm-maint] [rpm-software-management/rpm] Expose build time to package build scriptlets via $RPM_BUILD_TIME (PR #2933)
Panu Matilainen
notifications at github.com
Tue Feb 27 13:42:59 UTC 2024
@pmatilai commented on this pull request.
> @@ -476,6 +476,25 @@ If the main section exists, it must come first to avoid ambiguity.
Otherwise, append and prepend can be used in any order and multiple
times, even if the corresponding main section does not exist.
+During the execution of build scriptlets, (at least) the following
+rpm-specific environment variables are set:
+
+Variable | Description
+---------------------------------------------------
+RPM_ARCH | Architecture of the package
+RPM_BUILD_DIR | The build directory of the package
+RPM_BUILD_NCPUS | The number of CPUs available for the build
+RPM_BUILD_ROOT | The buildroot directory of the package
+RPM_BUILD_TIME | The build time of the package
Good point, thanks. Fixed in the latest push.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2933#discussion_r1504256038
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2933/review/1903546028 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240227/04103cdd/attachment.html>
More information about the Rpm-maint
mailing list