[Rpm-maint] [rpm-software-management/rpm] Merge buildprocess.md contents into rpmbuild man pages (PR #4047)

Panu Matilainen notifications at github.com
Fri Nov 21 11:57:52 UTC 2025


@pmatilai commented on this pull request.



> +the respective identifier (see also *OPERATIONS*).
+
+Some steps are implemented as standalone scripts whose contents is dumped in the
+*rpmbuild* output for diagnostic purposes. Their names are shown in parentheses
+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*.

Perhaps this should go into a BUGS section to make it easier to discover? It's a common gotcha for packagers and something we wont be able to cure.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4047#pullrequestreview-3492442241
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4047/review/3492442241 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251121/703767ad/attachment.htm>


More information about the Rpm-maint mailing list