rpms/libxml/devel libxml-1.8.17-ppc64-config.patch, NONE, 1.1 libxml.spec, 1.9, 1.10

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Wed May 21 10:50:04 UTC 2008


Author: pghmcfc

Update of /cvs/pkgs/rpms/libxml/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20220

Modified Files:
	libxml.spec 
Added Files:
	libxml-1.8.17-ppc64-config.patch 
Log Message:
fix config.guess and config.sub to support build on ppc64

libxml-1.8.17-ppc64-config.patch:

--- NEW FILE libxml-1.8.17-ppc64-config.patch ---
--- libxml-1.8.17/config.guess	2002-01-23 22:49:14.000000000 +0000
+++ libxml-1.8.17/config.guess	2008-05-21 10:53:14.000000000 +0100
@@ -811,6 +811,9 @@
 	rm -f $dummy.c $dummy
 	echo powerpc-unknown-linux-gnu${LIBC}
 	exit 0 ;;
+    ppc64:Linux:*:*)
+	echo powerpc64-unknown-linux-gnu
+	exit ;;
     alpha:Linux:*:*)
 	cat <<EOF >$dummy.s
 	  .data
--- libxml-1.8.17/config.sub	2002-01-23 22:49:14.000000000 +0000
+++ libxml-1.8.17/config.sub	2008-05-21 11:25:57.000000000 +0100
@@ -721,6 +721,10 @@
 	        ;;
 	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 		;;
+	ppc64)  basic_machine=powerpc64-unknown
+		;;
+	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+		;;
 	ppcle | powerpclittle | ppc-le | powerpc-little)
 		basic_machine=powerpcle-unknown
 	        ;;


Index: libxml.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libxml/devel/libxml.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- libxml.spec	20 May 2008 15:52:02 -0000	1.9
+++ libxml.spec	21 May 2008 10:49:17 -0000	1.10
@@ -10,6 +10,7 @@
 Patch0:		libxml-1.8.17-open-mode.patch
 Patch1:		libxml-1.8.17-multiarch.patch
 Patch2:		libxml-1.8.17-declarations.patch
+Patch3:		libxml-1.8.17-ppc64-config.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
@@ -28,6 +29,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1 -b .decl
+%patch3 -p1
 /usr/bin/iconv -f iso-8859-1 -t utf-8 < ChangeLog > ChangeLog.utf-8
 %{__mv} -f ChangeLog.utf-8 ChangeLog
 
@@ -69,9 +71,10 @@
 %exclude %{_libdir}/libxml.la
 
 %changelog
-* Tue May 20 2008 Paul Howarth <paul at city-fan.org> 1:1.8.17-20
+* Wed May 21 2008 Paul Howarth <paul at city-fan.org> 1:1.8.17-20
 - fixes for building with -Werror-implicit-function-declaration and some of the
   compiler warnings
+- fix config.guess and config.sub to support build on ppc64
 
 * Wed Feb 13 2008 Paul Howarth <paul at city-fan.org> 1:1.8.17-19
 - rebuild with gcc 4.3.0 for Fedora 9




More information about the fedora-extras-commits mailing list