Source: nss
Version: 2:3.73.1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: powerpc ppc64
X-Debbugs-Cc: [email protected]
Hello!
On powerpc and ppc64, nss is still being built with -mcrypto and -mvsx which
generates code with Crypto and VSX instructions not supported on powerpc and
ppc64.
Normally, the build system should automatically detect the host platform and
set NSS_DISABLE_CRYPTO_VSX=1 for powerpc and ppc64, but that doesn't seem to
work at the moment.
Thus, the following patch will explicitly set NSS_DISABLE_CRYPTO_VSX=1 in
debian/rules, forcing Crypto and VSX instructions to be disabled on powerpc
and ppc64.
--- debian/rules.orig 2021-11-02 02:34:06.000000000 +0100
+++ debian/rules 2022-02-08 10:18:14.805090667 +0100
@@ -71,6 +71,7 @@
OBJDIR_NAME=OBJS \
$(and $(filter 64,$(shell dpkg-architecture
-qDEB_HOST_ARCH_BITS)),USE_64=1) \
$(and $(filter x32,$(shell dpkg-architecture
-qDEB_HOST_ARCH)),USE_X32=1) \
+ $(and $(filter powerpc ppc64,$(shell dpkg-architecture
-qDEB_HOST_ARCH)),NSS_DISABLE_CRYPTO_VSX=1) \
$(NULL)
NSS_TOOLS := \
Could you apply the change for the next upload?
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - [email protected]
`. `' Freie Universitaet Berlin - [email protected]
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
--- debian/rules.orig 2021-11-02 02:34:06.000000000 +0100
+++ debian/rules 2022-02-08 10:18:14.805090667 +0100
@@ -71,6 +71,7 @@
OBJDIR_NAME=OBJS \
$(and $(filter 64,$(shell dpkg-architecture
-qDEB_HOST_ARCH_BITS)),USE_64=1) \
$(and $(filter x32,$(shell dpkg-architecture
-qDEB_HOST_ARCH)),USE_X32=1) \
+ $(and $(filter powerpc ppc64,$(shell dpkg-architecture
-qDEB_HOST_ARCH)),NSS_DISABLE_CRYPTO_VSX=1) \
$(NULL)
NSS_TOOLS := \