fedpkg local redefines %fedora macro

Jesse Keating jkeating at j2solutions.net
Wed Aug 18 18:56:04 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/9/10 6:54 AM, Petr Pisar wrote:
> Hello,
> 
> while working on `nas' package I found `fedpkg local' redefines
> `fedora' macro to value `1'. Dist-cvs `make local' does not do that.
> Original source for %fedora is /etc/rpm/macros.dist. See the strace:
> 
> $ strace -fqv -eexecve fedpkg local
> [...]
> execve("/bin/rpm", ["rpm", "--define", "_sourcedir
> /home/petr/fedora/nas", "--define", "_specdir /home/petr/fedora/nas",
> "--define", "_builddir /home/petr/fedora/nas", "--define", "_srcrpmdir
> /home/petr/fedora/nas", "--define", "_rpmdir /home/petr/fedora/nas",
> "--define", "dist .fc15", "--define", "fedora 15", "--define", "fedora
> 1", "-q", "--qf", "%{VERSION} ", "--specfile",
> "/home/petr/fedora/nas/nas.spec"],...)
> 
> You can check it with this simple spec file:
> 
> %if 0%{?fedora} > 8
>     echo TRUE %{?fedora}
> %else
>     echo FALSE %{?fedora}
> %endif
> 
> -- Petr
> 
> 
> 

This was fixed in the latest build of fedpkg.

- -- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsLMQACgkQ4v2HLvE71NUdlQCeJfpgXI0uhN9h5AllEFRAaGHa
tmEAn0n9Ul4e1ZfEH+LtJsa9dDfJmjQj
=6/ip
-----END PGP SIGNATURE-----


More information about the devel mailing list