From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2OmmCk/K3GGeMAEAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 01:07:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eLXtB0/K3GF50wAA9RJhRA (envelope-from ) for ; Tue, 11 Jan 2022 01:07:43 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC39F307B7 for ; Tue, 11 Jan 2022 01:07:42 +0100 (CET) Received: from localhost ([::1]:41310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n74hR-0002Wz-Vt for larch@yhetil.org; Mon, 10 Jan 2022 19:07:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n74Co-0000d4-Qs for bug-guix@gnu.org; Mon, 10 Jan 2022 18:36:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n74Co-0000vH-HI for bug-guix@gnu.org; Mon, 10 Jan 2022 18:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n74Co-0005Wj-EU; Mon, 10 Jan 2022 18:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53005: [PATCH 1/1] gnu: glibc: Preserve "__pthread_key_create" symbol. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 10 Jan 2022 23:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53005 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53005@debbugs.gnu.org Received: via spool by 53005-submit@debbugs.gnu.org id=B53005.164185770421144 (code B ref 53005); Mon, 10 Jan 2022 23:36:02 +0000 Received: (at 53005) by debbugs.gnu.org; 10 Jan 2022 23:35:04 +0000 Received: from localhost ([127.0.0.1]:53544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n74Bs-0005Uw-8T for submit@debbugs.gnu.org; Mon, 10 Jan 2022 18:35:04 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:60592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n74Bp-0005UE-Mj for 53005@debbugs.gnu.org; Mon, 10 Jan 2022 18:35:03 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 2CF292D554 for <53005@debbugs.gnu.org>; Mon, 10 Jan 2022 23:34:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo02-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo02-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XBNMhPsRTTVy for <53005@debbugs.gnu.org>; Mon, 10 Jan 2022 23:34:55 +0000 (UTC) Received: from localhost.localdomain (23-233-96-244.cpe.pppoe.ca [23.233.96.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id CA0762D570 for <53005@debbugs.gnu.org>; Mon, 10 Jan 2022 23:34:55 +0000 (UTC) From: Simon South Date: Mon, 10 Jan 2022 18:34:26 -0500 Message-Id: <7e85b4a230a68240759120e8440ea77cf1d6e927.1641856285.git.simon@simonsouth.net> X-Mailer: git-send-email 2.34.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641859663; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=QDO9VMTyaisImvscYwhTX27NS0VQgtFkHfRC1G2/PEQ=; b=o+Z2pTWfun4r40YUlEZ6FuPNx5Y46otA2aXg0xkqaqWvPOSQXAq0d015fVOlytWeUt6+R+ tLnQuTlyULlKlzUOLo3k6f8KG588vD5Qjls5gX0v5PtutpgcE+7aICiKxvGAI3dQVeJNTG AeGeqmOWI1rBAHSUuN64tKala5auQ/Pz2RvKKSVpQ1vzVBhs+shdO4uC/rEFc5943QSmKr QnYypM+eykYVZ4fN8WizLEs9+4mZrZIWGwZGJtaUv52Rjk7UNdeJ1B0TkBePmRYojncOZZ OCKPiVeeCoxM2TbHbCa5+kh/3RIgjEC/CD0LTYaWpfZAMaQ/JcjzaSM7qDfX5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641859663; a=rsa-sha256; cv=none; b=Dm8oOdYwBXjfILU43HaPPgFHn2wZ9PQxfDX7zKpD9s1yyMVRN6LhaFELIVaWao6XzBlfGd wIoD5VFLjtQf5cT8+r+Vw4eaXLl8RVW0aAGdvnp2JgiadnsPmIxmLb9QYbWMdfO0EuXpV2 M/eO+62z+nEmK6DKwF01mieyTj0pxYNFzxwharsbuss2hWf4IOk7oTb+EYZx7RGkfYHGY8 Gvj+LglrdhgqoNGdT83x4EPqkdcCZSfTg88NIrp9P59Vbn/Sr1JSBpuvFvh3QsLthSaRZx U0eW7WSDKGTTmHFKju1MqNo5eSoFwNi3GwY94Pev1C/jrxBXn990HaJZAF8RIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EC39F307B7 X-Spam-Score: -1.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: G79gS03LBb55 Avoid a potential crash in multithreaded applications by preserving the pthread library's "__pthread_key_create" symbol, used by libgcc to detect the use of threads in an application. Fixes . * gnu/packages/base.scm (glibc)[arguments]: Add "#:strip-flags" with "--keep-symbol=__pthread_key_create" appended to the default set. --- gnu/packages/base.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 12e4de52d4..68c85dcdd5 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -795,6 +795,16 @@ (define-public glibc '())) #:tests? #f ; XXX + + #:strip-flags '("--strip-unneeded" + "--enable-deterministic-archives" + + ;; Preserve the symbol "__pthread_key_create" in the + ;; pthread library as this is used by libgcc to detect + ;; the use of threads in an application. + ;; See https://issues.guix.gnu.org/53005. + "--keep-symbol=__pthread_key_create") + #:phases (modify-phases %standard-phases (add-before 'configure 'pre-configure -- 2.34.0