mock 0.8.9

Todd Zullinger tmz at pobox.com
Sun Dec 9 05:13:33 UTC 2007


Paulo Cavalcanti wrote:
> The --without option is not working.
> 
> I think that
> 
>   options.rpmmacros.append("_with_%s 0" % option)
> 
> should be replaced for
> 
>   options.rpmmacros.append("_without_%s 1" % option)

What does the specfile look like?  I may have done something wrong
with the options.  I read the macros and rpmpopt-4.4.2.2 files in
/usr/lib/rpm to determine what they set when with or without was used
and it seemed to me that when --without foo was passed, rpm defined
_with_foo 0.  Is that not how it works?  (Mock's not actually passing
the --with/--without options to rpmbuild.  It is writing the _with_foo
in ~/.rpmmacros of the chroot, in case that matters.)

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's not denial. I'm just very selective about what I accept as
reality.
    -- Calvin ("Calvin and Hobbes")

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20071209/5dd05872/attachment.sig>


More information about the fedora-devel-list mailing list