File dpkg_to_report_ppc64el_archi.patch of Package dpkg.3567

From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: dpkg to report ppc64el archi
Date: Wed, 12 Aug 2015 19:17:42 +0200

dpkg to report ppc64el archi and not ppc64le
This is required for project "openSUSE:42:SLE12-Picks"
that is still based on dpkg_1.16.10.tar.xz

This is required at least to avoid pbuilder failure
on ppc64le architecture.

Note that tumbleweed already have this change
as based on dpkg_1.18.1.tar.xz


Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
 cputable                      |    2 +-
 scripts/Dpkg/Vendor/Ubuntu.pm |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: dpkg-1.16.10/cputable
===================================================================
--- dpkg-1.16.10.orig/cputable
+++ dpkg-1.16.10/cputable
@@ -31,6 +31,7 @@ mips		mips		mips(eb)?		32	big
 mipsel		mipsel		mipsel			32	little
 powerpc		powerpc		(powerpc|ppc)		32	big
 ppc64		powerpc64	(powerpc|ppc)64		64	big
+ppc64el		powerpc64le	(powerpc|ppc)64le	64	little
 s390		s390		s390			32	big
 s390x		s390x		s390x			64	big
 sh3		sh3		sh3			32	little
Index: dpkg-1.16.10/scripts/Dpkg/Vendor/Ubuntu.pm
===================================================================
--- dpkg-1.16.10.orig/scripts/Dpkg/Vendor/Ubuntu.pm
+++ dpkg-1.16.10/scripts/Dpkg/Vendor/Ubuntu.pm
@@ -96,7 +96,7 @@ sub run_hook {
     } elsif ($hook eq "update-buildflags") {
 	my $flags = shift @params;
 
-	if (debarch_eq(get_host_arch(), 'ppc64')) {
+	if (debarch_eq(get_host_arch(), 'ppc64el')) {
 	    for my $flag (qw(CFLAGS CXXFLAGS FFLAGS)) {
 		$flags->set($flag, '-g -O3', 'vendor');
 	    }
openSUSE Build Service is sponsored by