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

Re: Mock issue with ifarch BuildRequires





On Jul 16, 2009, at 5:16, Karsten Hopp <karsten redhat com> wrote:

Am 14.07.2009 01:50, schrieb Gianluca Sforna:
Sorry for the cross-posting, I'm trying to get a clue...


---------- Forwarded message ----------
From: Gianluca Sforna<giallu gmail com>
Date: Mon, Jul 13, 2009 at 1:38 AM
Subject: Mock issue with ifarch BuildRequires
To: Discussion of Fedora build system<fedora-buildsys- list redhat com>


I am trying to run the tests included in the BuildBot package during
the RPM build, and one of the tests requires darcs, which is built in
Fedora ExclusiveArch %{ix86} x86_64 ppc alpha.
Now, I'm adding to buildbot's spec[1] file an ifarch like:

%ifarch %{ix86} x86_64 ppc alpha
# darcs ExclusiveArchs
BuildRequires:  darcs
%endif

but it seems darcs is never installed in the buildroot [2]

am I just doing something stupid or there's a bug somewhere?

[1] http://cvs.fedoraproject.org/viewvc/rpms/buildbot/devel/buildbot.spec?view=log
[2] http://koji.fedoraproject.org/koji/getfile?taskID=1470380&name=root.log




%ifarch and %ifnarch unfortunately don't work in noarch packages. I think that's a bug, the arch information is there as p.e. ExcludeArch works, and just those two don't get evaluated.

CC: our rpm maintainers for comments


ExcludeArch only works due to some hacks in our compose tools that looks at the srpm info to see if the srpm has that info. The info itself does not make it to the noarch rpm file.

--
Jes
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]