dpkg to report ppc64el archi
authorMichel Normand <normand@linux.vnet.ibm.com>
Wed, 12 Aug 2015 17:17:42 +0000 (19:17 +0200)
committerSoonKyu Park <sk7.park@samsung.com>
Tue, 22 Jan 2019 01:51:06 +0000 (10:51 +0900)
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
scripts/Dpkg/Vendor/Ubuntu.pm

index a2bc909..cda94c8 100644 (file)
--- a/cputable
+++ b/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 7e60fcf..460bf44 100644 (file)
@@ -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');
            }