From: Frédéric Bonnard Date: Tue, 10 Dec 2019 13:54:34 +0000 (+0100) Subject: Fix missing bits for ppc64el X-Git-Tag: debian/1.8.6_pre1-1~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b36216bf796b6f3e686cc8ba5fedccd5170525ec;p=packages%2Fo%2Fopenafs.git Fix missing bits for ppc64el d/sysname : typo fix [kaduk@mit.edu: just take the typo fix from https://salsa.debian.org/debian/openafs/-/merge_requests/2; for the actual patch we'll use the version present in upstream] Change-Id: I68c057fdb4a1c76fdaa7726ae9528bb487d6a050 --- diff --git a/debian/patches/0004-Add-compilation-defaults-for-ppc64el.patch b/debian/patches/0004-Add-compilation-defaults-for-ppc64el.patch new file mode 100644 index 000000000..b4a4debe3 --- /dev/null +++ b/debian/patches/0004-Add-compilation-defaults-for-ppc64el.patch @@ -0,0 +1,34 @@ +From 8ac8c505fc54df9b3e3f737f8b6b1eba0bbe77e1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bonnard?= +Date: Tue, 10 Dec 2019 13:52:57 +0100 +Subject: [PATCH] Add compilation defaults for ppc64el + +--- + src/cf/osconf.m4 | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/src/cf/osconf.m4 b/src/cf/osconf.m4 +index 4f30ed2b4..4440796e9 100644 +--- a/src/cf/osconf.m4 ++++ b/src/cf/osconf.m4 +@@ -242,6 +242,17 @@ case $AFS_SYSNAME in + ASFLAGS="-a64" + ;; + ++ ppc64le_linux*) ++ CCOBJ="\$(CC) -fPIC" ++ KERN_OPTMZ=-O2 ++ MT_CFLAGS='-pthread -D_REENTRANT' ++ PAM_OPTMZ=-O2 ++ PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" ++ SHLIB_CFLAGS="-fPIC" ++ SHLIB_LDFLAGS="-shared -Xlinker -x" ++ SHLIB_LINKER="${CC} -shared" ++ ;; ++ + i386_linux*) + KERN_OPTMZ=-O2 + MT_CFLAGS='-pthread -D_REENTRANT' +-- +2.20.1 + diff --git a/debian/sysname b/debian/sysname index dbe8ba04a..c8f69ef83 100755 --- a/debian/sysname +++ b/debian/sysname @@ -30,7 +30,7 @@ powerpc|powerpcspe) ppc64) echo ppc64_linux26 ;; -ppc64le) +ppc64el) echo ppc64le_linux26 ;; s390)