Le ven. 14 déc. 2018 à 20:34, Igor Gnatenko
<ignatenkobrain(a)fedoraproject.org> a écrit :
Hello folks,
for long time we have problem if you have some arch-specific
BuildRequires, you still get one src.rpm from one of arches (not sure
how koji chooses that one) which might not work for your architecture.
For example if you have following in spec:
%ifarch %{ldc_arches}
BuildRequires: ldc
%endif
And the src.rpm is taken by koji from x86_64 (included in
%{ldc_arches}), then you won't be able to run `dnf builddep foo`,
because it will complain that ldc package is missing.
PROPOSAL:
1. make fedora-release archful
2. add Provides: system-architecture($arch) to fedora-release, where
$arch is architecture name
3. use Requires: (foo if (system-architecture(x86_64) or
There is already the filesystem(x86_64) arched provide from the
filesystem package
(no need to turn a legitimate noarch package into an arched one for this).
I think the general idea is good.
--
-
Nicolas (kwizart)