Re: passing macros into mock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-05-04 at 19:41 -0500, Rex Dieter wrote:
> Tim Jackson wrote:
> > Is there any way (not in the live buildsys, but locally for testing
> > purposes) to pass a macro that isn't normally defined into a mock build
> > environment? I was hoping to do something like:
> > 
> > mock --define "something 123" blah.src.rpm
> > 
> > I had a search around but couldn't find any obvious answers. Any easy
> > way short of rebuilding the SRPM outside the mock environment with the
> > necessary macro defined?
> 
> Put
> %define something 123
> at the top of the specfile?

Or you could use mach, which is the "father" of mock, and available from
FE.  It has the above feature and much more (in fact so much more that
if I understand correctly, it was one of the reasons why mock was
created...).  But it works well for me.

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux