Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-27 Thread Jason L Tibbitts III
> "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>

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-27 Thread Mark Wielaard
Hi, On Fri, 2018-04-27 at 11:34 +0300, Panu Matilainen wrote: > On 04/27/2018 06:47 AM, Jason L Tibbitts III wrote: > > Here's a paste from the macros that Fedora uses > > (/usr/lib/rpm/redhat/macros): > > > > %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ > > %%install\ >

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-27 Thread Jeff Johnson
> On Apr 27, 2018, at 6:35 AM, Neal Gompa wrote: ... > > That said, it's required to make debuginfo packages get generated, as I > found out when working on OpenMandriva's rpm-openmandriva-setup: >

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-27 Thread Neal Gompa
On Fri, Apr 27, 2018 at 5:57 AM Jeff Johnson wrote: > > On Apr 27, 2018, at 4:34 AM, Panu Matilainen wrote: > > > > On 04/27/2018 06:47 AM, Jason L Tibbitts III wrote > >> > >> Seems... similar. > >> JJ> Talk to whomever decided that there was a need to

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-27 Thread Panu Matilainen
On 04/27/2018 06:47 AM, Jason L Tibbitts III wrote: "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

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jeff Johnson
On Apr 26, 2018, at 11:47 PM, Jason L Tibbitts III wrote: >> "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

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jason L Tibbitts III
> "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

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jeff Johnson
> On Apr 26, 2018, at 9:53 PM, Jason L Tibbitts III wrote: > > 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

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jeff Johnson
> On Apr 26, 2018, at 8:45 PM, Jason L Tibbitts III wrote: > > 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

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jeff Johnson
On Apr 26, 2018, at 7:27 PM, Jason L Tibbitts III wrote: >> "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 >

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jason L Tibbitts III
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<

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jason L Tibbitts III
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,

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jason L Tibbitts III
> "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>

Re: [Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jeff Johnson
> On Apr 26, 2018, at 2:48 PM, Jason L Tibbitts III wrote: > > 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

[Rpm-ecosystem] Trying to understand %buildsubdir and debuginfo generation

2018-04-26 Thread Jason L Tibbitts III
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