From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1436756-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 070EC158094 for <garchives@archives.gentoo.org>; Fri, 16 Sep 2022 16:16:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04C60E0869; Fri, 16 Sep 2022 16:16:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E01EEE0869 for <gentoo-commits@lists.gentoo.org>; Fri, 16 Sep 2022 16:16:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E9E64340B37 for <gentoo-commits@lists.gentoo.org>; Fri, 16 Sep 2022 16:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45973D4 for <gentoo-commits@lists.gentoo.org>; Fri, 16 Sep 2022 16:16:19 +0000 (UTC) From: "William Hubbs" <williamh@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org> Message-ID: <1663344916.7dc748f875d8f1a7bda9d0b8c00d45ad4be2d58d.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/files/, net-libs/nodejs/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/nodejs/files/nodejs-18.9.0-clang-fix-libatomic.patch net-libs/nodejs/nodejs-18.9.0.ebuild X-VCS-Directories: net-libs/nodejs/ net-libs/nodejs/files/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 7dc748f875d8f1a7bda9d0b8c00d45ad4be2d58d X-VCS-Branch: master Date: Fri, 16 Sep 2022 16:16:19 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57e16220-f2ff-479f-81ca-90d4142a8183 X-Archives-Hash: 75f12ddb0a44e9a0032a61acc7db6966 commit: 7dc748f875d8f1a7bda9d0b8c00d45ad4be2d58d Author: matoro <matoro <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Thu Sep 15 18:46:37 2022 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Fri Sep 16 16:15:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dc748f8 net-libs/nodejs: delete libatomic patch + force libgcc as support lib Upstream behavior is correct wrt libatomic (unconditionally adding it) due to their use of atomic_is_lock_free which is yet to be added to compiler-rt (stuck in review hell at https://reviews.llvm.org/D85044). This necessitates forcing libgcc as support lib. Linking to libatomic from gcc is dynamic, so sys-devel/gcc has to go in RDEPEND. Clang can be forced to use libgcc with --rtlib=libgcc, even with USE=default-compiler-rt (which is the original cuase of the bug in question). Closes: https://bugs.gentoo.org/869992 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> .../nodejs/files/nodejs-18.9.0-clang-fix-libatomic.patch | 16 ---------------- net-libs/nodejs/nodejs-18.9.0.ebuild | 10 +++++++--- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/net-libs/nodejs/files/nodejs-18.9.0-clang-fix-libatomic.patch b/net-libs/nodejs/files/nodejs-18.9.0-clang-fix-libatomic.patch deleted file mode 100644 index 5296ed1318b0..000000000000 --- a/net-libs/nodejs/files/nodejs-18.9.0-clang-fix-libatomic.patch +++ /dev/null @@ -1,16 +0,0 @@ -https://bugs.gentoo.org/869992 - -diff --git a/node.gyp b/node.gyp -index 347d82d2e1..8c4ffea256 100644 ---- a/node.gyp -+++ b/node.gyp -@@ -117,9 +117,6 @@ - '-Wl,-bnoerrmsg', - ], - }], -- ['OS == "linux" and llvm_version != "0.0"', { -- 'libraries': ['-latomic'], -- }], - ], - }, - diff --git a/net-libs/nodejs/nodejs-18.9.0.ebuild b/net-libs/nodejs/nodejs-18.9.0.ebuild index 03af59cf2a80..6c803a2495ee 100644 --- a/net-libs/nodejs/nodejs-18.9.0.ebuild +++ b/net-libs/nodejs/nodejs-18.9.0.ebuild @@ -38,7 +38,8 @@ RDEPEND=">=app-arch/brotli-1.0.9:= >=net-libs/nghttp2-1.41.0:= sys-libs/zlib system-icu? ( >=dev-libs/icu-67:= ) - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )" + system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) + sys-devel/gcc:*" BDEPEND="${PYTHON_DEPS} sys-apps/coreutils virtual/pkgconfig @@ -50,7 +51,6 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch - "${FILESDIR}"/${P}-clang-fix-libatomic.patch ) # These are measured on a loong machine with -ggdb on, and only checked @@ -127,7 +127,11 @@ src_configure() { # LTO compiler flags are handled by configure.py itself filter-flags '-flto*' # nodejs unconditionally links to libatomic #869992 - append-atomic-flags + # specifically it requires __atomic_is_lock_free which + # is not yet implemented by sys-libs/compiler-rt (see + # https://reviews.llvm.org/D85044?id=287068), therefore + # we depend on gcc and force using libgcc as the support lib + tc-is-clang && append-ldflags "--rtlib=libgcc --unwindlib=libgcc" local myconf=( --shared-brotli