Re: fedpkg local redefines %fedora macro

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

 



That would certainly explain all the problems I've been having getting
python3 packages built with "fedpkg local".  All of my "%if
0%{?fedora} > 12" lines would blow up.

On Mon, Aug 9, 2010 at 6:54 AM, Petr Pisar <ppisar@xxxxxxxxxx> 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
>
>
>
> --
> devel mailing list
> devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/devel
>



-- 
kylev@xxxxxxxxx
  Some people have a way with words, while others... erm... thingy.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux