overriding rpmrc options inside mock

Michael E Brown Michael_E_Brown at dell.com
Thu Mar 27 16:57:35 UTC 2008


On Thu, Mar 27, 2008 at 12:50:38PM -0400, Todd Zullinger wrote:
> Michael E Brown wrote:
> > As seth mentioned, the 'macros' config option was created for this, and
> > would most likely be more appropriate, although using 'files' is
> > creative. :)
> > 
> > config_opts['macros']['Add_your_macro_name_here'] = "add macro value 
> > here"
> 
> The point though is that overridding optflags was said to require
> editing .rpmrc, not .rpmmacros[1].  If that's not the case, then sure,
> using the simpler config_opts['macros'] would be better.
> 
> [1] https://www.redhat.com/archives/fedora-devel-list/2008-March/msg01773.html

Thanks for the reference. In this case your method is indeed better.
--
Michael




More information about the fedora-devel-list mailing list