The package rpms/sgabios.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/sgabios.git/commit/?id=9894a692c4....
Change:
+ExclusiveArch: %{ix86} x86_64
Thanks.
Full change:
============
commit 9894a692c4a0333ded2966bbfdcb451326deb4e5
Author: Paolo Bonzini <pbonzini(a)redhat.com>
Date: Wed Nov 22 15:02:43 2017 +0100
Allow disabling cross-compilation
diff --git a/sgabios.spec b/sgabios.spec
index dfa2c68..94195dd 100644
--- a/sgabios.spec
+++ b/sgabios.spec
@@ -1,9 +1,13 @@
+%if 0%{?fedora}
+%define cross 1
+%endif
+
%global tardir %{name}-0
Name: sgabios
Epoch: 1
Version: 0.20110622svn
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Open-source serial graphics BIOS option rom
Group: Applications/Emulators
@@ -15,10 +19,14 @@ URL:
http://code.google.com/p/sgabios/
Source0: sgabios-0-svnr8.tar.gz
Patch0: sgabios-hostcc.patch
+%if 0%{?cross}
BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu
+Buildarch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64
+%endif
Requires: %{name}-bin = %{epoch}:%{version}-%{release}
-Buildarch: noarch
# Sgabios is noarch, but required on architectures which cannot build it.
# Disable debuginfo because it is of no use to us.
@@ -48,11 +56,13 @@ characters for later collection after an operating system boots.
unset MAKEFLAGS
make \
HOSTCC=gcc \
+%if 0%{?cross}
CC=x86_64-linux-gnu-gcc \
AS=x86_64-linux-gnu-as \
LD=x86_64-linux-gnu-ld \
OBJCOPY=x86_64-linux-gnu-objcopy \
OBJDUMP=x86_64-linux-gnu-objdump
+%endif
%install
@@ -69,6 +79,9 @@ install -m 0644 sgabios.bin $RPM_BUILD_ROOT%{_datadir}/sgabios
%changelog
+* Wed Nov 22 2017 Paolo Bonzini <pbonzini(a)redhat.com> - 1:0.20110622svn-12
+- Allow disabling cross-compilation
+
* Thu Jul 27 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
1:0.20110622svn-11
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild