RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Missing essential build requirement information in binary RPM

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Fri 28 Dec 2007 - 12:31:44 CET
Message-ID: <20071228113144.GA15316@engelschall.com>
On Wed, Dec 26, 2007, Ralf S. Engelschall wrote:

> [...]
>    The "BuildRequire" tag is not passed-through
>    to the binary RPM and the RPM database at all!
> [...]

Ok, with the help of arbitrary tag support and the new macro stack
expansion feature, I was finally able to implement also this
functionality via plain "rpmmacros" hacking:

| [...]
| %_arbitrary_tags [...]:BuildDependency:[...]
|
| [...]
| #   hook into %description
| %description\
| [...]
| %{?__hook_description_3}\
| [...]
| %%description
|
| [...]
| #   auto-generate arbitrary tag "BuildDependency" from the standard tag(s) "BuildPreReq"
| #   in order to forward-carry this build-time information to the binary RPM and to the RPMDB.
| %__hook_description_3 %{?__autogen_builddependency:BuildDependency: %{@buildprereq:, }}\
| %{nil}

The result:

| $ openpkg rpm -bb make.spec
| $ openpkg rpm -qp --qf '%{BuildDependency}\n' make-*.*.rpm
| OpenPKG, openpkg >= 20050726

Perfect! Thank you very much for all the help...

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Fri Dec 28 12:32:32 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.