Description of problem: RPM (as of 4.9.1.3-6.fc17) now honors a %{power64} macro that leads to additional subarchitectures coming in F18. For Fedora 17, please update the sendmail spec to facilitate testing of the package. A patch will be provided. Please consider the following patch. The --- binutils.spec.orig 2012-06-22 11:57:39.470011735 -0400 +++ binutils.spec 2012-06-22 11:59:51.390011390 -0400 @@ -179,6 +179,10 @@ done touch */configure +%ifarch %{power64} +%define _target_platform %{_arch}-%{_vendor}-%{_host_os} +%endif + %build echo target is %{binutils_target} export CFLAGS="$RPM_OPT_FLAGS" @@ -292,7 +296,7 @@ # Sanity check --enable-64-bit-bfd really works. grep '^#define BFD_ARCH_SIZE 64$' %{buildroot}%{_prefix}/include/bfd.h # Fix multilib conflicts of generated values by __WORDSIZE-based expressions. -%ifarch %{ix86} x86_64 ppc ppc64 s390 s390x sh3 sh4 sparc sparc64 arm +%ifarch %{ix86} x86_64 ppc %{power64} s390 s390x sh3 sh4 sparc sparc64 arm sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include <bits/wordsize.h>~;}' \ -e 's/^#define BFD_DEFAULT_TARGET_SIZE \(32\|64\) *$/#define BFD_DEFAULT_TARGET_SIZE __WORDSIZE/' \ -e 's/^#define BFD_HOST_64BIT_LONG [01] *$/#define BFD_HOST_64BIT_LONG (__WORDSIZE == 64)/' \
I have applied the patch to: binutils-2.22.52.0.1-11.fc17