Bug 834651 - Replace ppc64 with %{power64} macro in binutils spec
Summary: Replace ppc64 with %{power64} macro in binutils spec
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 17
Hardware: ppc64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: f18-ppc64p7
TreeView+ depends on / blocked
 
Reported: 2012-06-22 16:42 UTC by Brent Baude
Modified: 2012-06-26 11:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-26 11:15:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Brent Baude 2012-06-22 16:42:21 UTC
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)/' \

Comment 1 Nick Clifton 2012-06-26 11:15:36 UTC
I have applied the patch to: binutils-2.22.52.0.1-11.fc17


Note You need to log in before you can comment on or make changes to this bug.