All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libnss: fix build with old PPC ABI
@ 2020-06-17 20:02 Joseph Kogut
  2020-06-17 20:26 ` Thomas Petazzoni
  2020-07-15 19:45 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Joseph Kogut @ 2020-06-17 20:02 UTC (permalink / raw)
  To: buildroot

Fixes:
http://autobuild.buildroot.net/results/bdbd33c7a764931b2066dd8b527dde2f5dc298b4
http://autobuild.buildroot.net/results/61bf50f73bb79e85c22e663f5fc22f4b9ccc0d3b
http://autobuild.buildroot.net/results/4437942a528ab8f782d3b97595e76bb690d3a409
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
---
 package/libnss/0001-fix-old-abi-ppc.patch | 43 +++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/libnss/0001-fix-old-abi-ppc.patch

diff --git a/package/libnss/0001-fix-old-abi-ppc.patch b/package/libnss/0001-fix-old-abi-ppc.patch
new file mode 100644
index 0000000000..68fedd8f21
--- /dev/null
+++ b/package/libnss/0001-fix-old-abi-ppc.patch
@@ -0,0 +1,43 @@
+From a7a862bab5e4aae4615ddae3cbe230345f92ed0d Mon Sep 17 00:00:00 2001
+From: Lauri Kasanen <cand@gmx.com>
+Date: Mon, 1 Jun 2020 12:11:45 +0300
+Subject: [PATCH v3] Bug 1642174 /usr/bin/ld: OBJS/Linux_SINGLE_SHLIB/sha512-p8.o:
+ ABI version 2 is not compatible with ABI version 1 output
+
+Don't try to build the SHA-2 accelerated asm on old-ABI ppc.
+
+Currently make only, I don't have enough gyp-fu to do that side.
+However, the reporters of 1642174 and 1635625 both used make, not gyp.
+
+Signed-off-by: Lauri Kasanen <cand@gmx.com>
+
+Fetch-from: https://bugzilla.mozilla.org/show_bug.cgi?id=1642174
+
+Manually modified paths to apply to nss subdirectory in release tarball.
+
+Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
+---
+ lib/freebl/Makefile | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile
+index 5f7384429..e0461c7d3 100644
+--- a/nss/lib/freebl/Makefile
++++ b/nss/lib/freebl/Makefile
+@@ -267,9 +267,12 @@ ifeq ($(CPU_ARCH),arm)
+ endif
+ ifeq ($(CPU_ARCH),ppc)
+     EXTRA_SRCS += gcm-ppc.c
+-    ASFILES += sha512-p8.s
+ ifdef USE_64
+     DEFINES += -DNSS_NO_INIT_SUPPORT
++    PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | awk '$$2 == "_CALL_ELF" {print $$3}')
++    ifeq ($(PPC_ABI),2)
++        ASFILES += sha512-p8.s
++    endif
+ endif # USE_64
+ endif # ppc
+ endif # Linux
+--
+2.19.1
+
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/libnss: fix build with old PPC ABI
  2020-06-17 20:02 [Buildroot] [PATCH 1/1] package/libnss: fix build with old PPC ABI Joseph Kogut
@ 2020-06-17 20:26 ` Thomas Petazzoni
  2020-07-15 19:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-06-17 20:26 UTC (permalink / raw)
  To: buildroot

On Wed, 17 Jun 2020 13:02:51 -0700
Joseph Kogut <joseph.kogut@gmail.com> wrote:

> Fixes:
> http://autobuild.buildroot.net/results/bdbd33c7a764931b2066dd8b527dde2f5dc298b4
> http://autobuild.buildroot.net/results/61bf50f73bb79e85c22e663f5fc22f4b9ccc0d3b
> http://autobuild.buildroot.net/results/4437942a528ab8f782d3b97595e76bb690d3a409
> Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
> ---
>  package/libnss/0001-fix-old-abi-ppc.patch | 43 +++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 package/libnss/0001-fix-old-abi-ppc.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/libnss: fix build with old PPC ABI
  2020-06-17 20:02 [Buildroot] [PATCH 1/1] package/libnss: fix build with old PPC ABI Joseph Kogut
  2020-06-17 20:26 ` Thomas Petazzoni
@ 2020-07-15 19:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-07-15 19:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Joseph" == Joseph Kogut <joseph.kogut@gmail.com> writes:

 > Fixes:
 > http://autobuild.buildroot.net/results/bdbd33c7a764931b2066dd8b527dde2f5dc298b4
 > http://autobuild.buildroot.net/results/61bf50f73bb79e85c22e663f5fc22f4b9ccc0d3b
 > http://autobuild.buildroot.net/results/4437942a528ab8f782d3b97595e76bb690d3a409
 > Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>

Committed to 2020.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-15 19:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 20:02 [Buildroot] [PATCH 1/1] package/libnss: fix build with old PPC ABI Joseph Kogut
2020-06-17 20:26 ` Thomas Petazzoni
2020-07-15 19:45 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.