From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A59691382C5 for ; Sun, 28 Jun 2020 19:05:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8096E097E; Sun, 28 Jun 2020 19:05:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8622BE097E for ; Sun, 28 Jun 2020 19:05:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0831D34ECC4 for ; Sun, 28 Jun 2020 19:05:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 360582B3 for ; Sun, 28 Jun 2020 19:05:26 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1593371119.893f2d565c0bc752426907f28a641bec6828574c.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/nss/, dev-libs/nss/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/nss/files/nss-3.53-fix-building-on-ppc.patch dev-libs/nss/nss-3.52.1-r1.ebuild dev-libs/nss/nss-3.53.1.ebuild X-VCS-Directories: dev-libs/nss/files/ dev-libs/nss/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 893f2d565c0bc752426907f28a641bec6828574c X-VCS-Branch: master Date: Sun, 28 Jun 2020 19:05:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 076a1c4a-090e-446c-bd90-0beedab3fe72 X-Archives-Hash: e9714cbfc084207495aa07e0ed35886d commit: 893f2d565c0bc752426907f28a641bec6828574c Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Jun 28 19:05:08 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Jun 28 19:05:19 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893f2d56 dev-libs/nss: fix building on PPC Closes: https://bugs.gentoo.org/722110 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann gentoo.org> .../nss/files/nss-3.53-fix-building-on-ppc.patch | 39 ++++++++++++++++++++++ dev-libs/nss/nss-3.52.1-r1.ebuild | 1 + dev-libs/nss/nss-3.53.1.ebuild | 1 + 3 files changed, 41 insertions(+) diff --git a/dev-libs/nss/files/nss-3.53-fix-building-on-ppc.patch b/dev-libs/nss/files/nss-3.53-fix-building-on-ppc.patch new file mode 100644 index 00000000000..be2d4802c4c --- /dev/null +++ b/dev-libs/nss/files/nss-3.53-fix-building-on-ppc.patch @@ -0,0 +1,39 @@ +https://bugzilla.mozilla.org/show_bug.cgi?id=1642174 + +From 9e4f30b3168a95243df0c0891e3e432bc95382ad Mon Sep 17 00:00:00 2001 +From: Lauri Kasanen +Date: Mon, 1 Jun 2020 12:11:45 +0300 +Subject: [PATCH v2] 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 +--- + lib/freebl/Makefile | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/lib/freebl/Makefile b/lib/freebl/Makefile +index 5f7384429..d01587c7a 100644 +--- a/lib/freebl/Makefile ++++ b/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 ++ PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | grep _CALL_ELF | awk '{ print $3 }') + ifdef USE_64 + DEFINES += -DNSS_NO_INIT_SUPPORT ++ ifeq ($(PPC_ABI),2) ++ ASFILES += sha512-p8.s ++ endif + endif # USE_64 + endif # ppc + endif # Linux +-- +2.19.1 + diff --git a/dev-libs/nss/nss-3.52.1-r1.ebuild b/dev-libs/nss/nss-3.52.1-r1.ebuild index fcd9c6e73a8..56359ce5955 100644 --- a/dev-libs/nss/nss-3.52.1-r1.ebuild +++ b/dev-libs/nss/nss-3.52.1-r1.ebuild @@ -39,6 +39,7 @@ PATCHES=( "${FILESDIR}/${PN}-3.47-gentoo-fixups.patch" "${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch" "${FILESDIR}/${PN}-3.23-hppa-byte_order.patch" + "${FILESDIR}/${PN}-3.53-fix-building-on-ppc.patch" ) src_prepare() { diff --git a/dev-libs/nss/nss-3.53.1.ebuild b/dev-libs/nss/nss-3.53.1.ebuild index df2971ed709..d94d193dbe9 100644 --- a/dev-libs/nss/nss-3.53.1.ebuild +++ b/dev-libs/nss/nss-3.53.1.ebuild @@ -39,6 +39,7 @@ PATCHES=( "${FILESDIR}/${PN}-3.53-gentoo-fixups.patch" "${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch" "${FILESDIR}/${PN}-3.23-hppa-byte_order.patch" + "${FILESDIR}/${PN}-3.53-fix-building-on-ppc.patch" ) src_prepare() {