I'm not really sure this is on topic for this list. I would suggest
that the epel-devel list might be closer to the mark. Or even the
Fedora packaging list, though this isn't really about Fedora either.
In any case
> "h" == h4rvey writes:
h> Hi, i'm trying to build a rpm package for
> "MS" == Miroslav Suchý writes:
MS> Is anywhere documented %autopatch?
I think the only real documentation is the source:
# Automatically apply all patches
%autopatch(vp:)\
%{lua:\
local options = rpm.expand("%{!-v:-q} %{-p:-p%{-p*}} ")\
for i, p in ipairs(patches) do\
> "NG" == Neal Gompa writes:
NG> That said, it's required to make debuginfo packages get generated,
NG> as I found out when working on OpenMandriva's
NG> rpm-openmandriva-setup:
NG>
> "JJ" == Jeff Johnson writes:
JJ> Note that the macro definitions you are trying to understand are not
JJ> from rpm itself (so you perhaps should be consulting with other
JJ> SME's than me).
Well, I was consulting a mailing list.
Here's a paste from the macros.debug file in
And to continue the spam, I see that in 2016 rpm gained support for
section end markers ("%end") which also conveniently solves the problem.
I know I had asked about that years ago but I had no idea that it had
been implemented. As far as I can tell, though, you need rpm 4.14.
- J<
To sort of answer my own question...
It isn't %build that's important. There simply must be some other
section between %prep and %install.
What I think happens is this:
The parser is running through %prep, doing whatever it does (expanding
macros and building the script that will be executed,
> "JJ" == Jeff Johnson writes:
JJ> You are unlikely to achieve any joy trying to set or change its
JJ> value.
I'm trying to comprehend how you came to the conclusion that I wanted to
change its value.
JJ> I know of no reason why a -debuginfo package needs a %build
JJ>
A question came up in the Fedora Packaging Committee: Why is a %build
section required for debuginfo packages to be generated.
We were looking into the R packaging guidelines. R modules are built
and installed in one step which cannot be split, so in Fedora everything
is just done in the