On Wed, Nov 15, 2006, Douglas Cook wrote:

> Would it be possible to add the ability to specify a configure option
> without having to hack the .spec file?
>
> For example - I've found with AIX builds of sudo that using
> --authenticate (which forces the use of AIX's authentication methods)
> works better than the default or using --with_pam (not thrilled with
> IBM's PAM implementation).
>
> I'm thinking something like --define="--config your_option". Obviously I
> wouldn't expect this option to verify that it will work and should be an
> at-your-own-risk setting.

Well, technically this is possible with some macro magic. We already
thought about such a thing a few times in the past. But for just a
few packages it isn't worth the special cases it produces. If we do
such things it should be done in a more generic way. For instance
there are some platforms out there which require changes to _many_
packages in parallel. If we would provide a generic hooking mechanism
we would benefit a lot more.

Simply saying it could be just that after unpacking and before running
the .spec a optional filter script is executed which can perform
arbitrary regex-based substitutions. Your single case of adding an
option to sudo then could be something like adding the following to
local config file: "sudo.spec: s/(configure)/$1 --authenticate/s".
As since recently we have at leat miniperl on board of the boostrap
package, this wouldn't be very hard to accomplish as long as RPM gives
us the possibility to hook into the processing of the source RPM files
at the right time.

I'll look at this once I got more time...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to