[Rpm-maint] [rpm-software-management/rpm] Merge buildprocess.md contents into rpmbuild man pages (PR #4047)
Panu Matilainen
notifications at github.com
Tue Nov 25 08:21:35 UTC 2025
@pmatilai commented on this pull request.
> +after the stage identifier (if any), prefixed with *%* if they correspond to a
+spec section or directive.
+
+Binary packages are produced separately for one or more platforms, called _build
+targets_. By default, the current platform is the only build target. This can be
+overridden with *--target* or by declaring a *BuildArch* in the spec. Currently,
+using a *--target* and *BuildArch* that disagree with each other will result in
+undefined behavior.
+
+Note that *BuildArch* causes the spec parsing to recurse from the start, causing
+any macros before that line to be expanded twice. This can yield unexpected
+results, in particular with *%global*.
+
+. Unpack source package or tar archive if either is given
+. Determine build targets and repeat following steps for each in turn
+. Load *rpm* configuration for next build target and set *%\_target_cpu*
Technically, it should include rpmbuild-config(7) too, various build configuration parts can vary between different targets.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4047#discussion_r2558958551
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4047/review/3503765578 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251125/3657809a/attachment-0001.htm>
More information about the Rpm-maint
mailing list