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 ms5.migadu.com with LMTPS id 8NB1MuBCWmOtLAAAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 10:35:44 +0200 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 iKJIMuBCWmNQawEA9RJhRA (envelope-from ) for ; Thu, 27 Oct 2022 10:35:44 +0200 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 803C4B827 for ; Thu, 27 Oct 2022 10:35:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onyMA-0004NZ-C2; Thu, 27 Oct 2022 04:35:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onyLw-0003ps-0g for guix-patches@gnu.org; Thu, 27 Oct 2022 04:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onyLv-0006qQ-Mg for guix-patches@gnu.org; Thu, 27 Oct 2022 04:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onyLv-0001M2-IM for guix-patches@gnu.org; Thu, 27 Oct 2022 04:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58394] [PATCH 3/4] gnu: libcxxabi: Use G-expressions. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Oct 2022 08:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 58394@debbugs.gnu.org, Zhu Zihao Received: via spool by 58394-submit@debbugs.gnu.org id=B58394.16668596785146 (code B ref 58394); Thu, 27 Oct 2022 08:35:03 +0000 Received: (at 58394) by debbugs.gnu.org; 27 Oct 2022 08:34:38 +0000 Received: from localhost ([127.0.0.1]:56121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onyLV-0001Kq-F7 for submit@debbugs.gnu.org; Thu, 27 Oct 2022 04:34:38 -0400 Received: from mail-m972.mail.163.com ([123.126.97.2]:42161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onyLH-0001Jt-5K for 58394@debbugs.gnu.org; Thu, 27 Oct 2022 04:34:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=YAWId sMqz0DkNpIiofTUXB4Y0PzydNWy7ZGeYMjNchc=; b=XOC/CGhLWeLVfzJG1kLkr IjA1XqqH9g7MYzJWZNE9MH183bYBh6nQG52KL990re6kOiLBHuz0tFQBPOxoIjzZ MCewdddaHcy4VatvoWF9TYQxRaweaQGa4hT511C8rwCQcPlur45BXcEpfDUNNpJd SspUBD45UCV3BXyTRHnBU8= Received: from localhost.localdomain (unknown [27.38.249.197]) by smtp2 (Coremail) with SMTP id GtxpCgDHxcOEQlpjQY5hpA--.34500S4; Thu, 27 Oct 2022 16:34:13 +0800 (CST) From: Zhu Zihao Date: Thu, 27 Oct 2022 16:33:29 +0800 Message-Id: <20221027083330.960-3-all_but_last@163.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <87eduy4yhv.fsf@gnu.org> References: <87eduy4yhv.fsf@gnu.org> <20221027083330.960-1-all_but_last@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: GtxpCgDHxcOEQlpjQY5hpA--.34500S4 X-Coremail-Antispam: 1Uf129KBjvJXoWxZr1rCw43WryUZFyrZF1kXwb_yoW5uFWxpF sayr1rKrW5Cry3Ww4fXF47tryrJ392vrsrZrW2q34xA3yUAFy8trsxKrWfuFyxWw4vyw15 Wr48GFyruw1UWaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUU3ktUUUUU= X-Originating-IP: [27.38.249.197] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiFB6nr1aEAZ4x0wAFso X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org 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=1666859744; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=YAWIdsMqz0DkNpIiofTUXB4Y0PzydNWy7ZGeYMjNchc=; b=tip93+I7Z7guG4D1AxzgGASU9guzzfuXadDZBBXcXMT3eEGrv33TqJsTI8zDboQXGIucTg WMPwKxuxeIWJ3gSp52pA+S5N4b9VolUvmcrX0rwxX8+AL3E4ynjFDFXENpp5m4VvV8GX4f 1h3syLJ+GccGPoAbUgeRfkSFjTP5YLXLi3F/a8CZO3i4cAM/N9gTYaDnScYPTRvuxdZurd 9GbWYPqG0sIwKHNWC4gXhSA4h5CNoJsKiZ1q6dtXRep/Y0qFr9jJLHV7QiJoQ/G6Dqb4NO MtGPksusuTeGzNtrACw9S+LdLB3yKCJN8W9DUTdJ2E1YadeGPPSPY4Tqe+eoXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666859744; a=rsa-sha256; cv=none; b=CnWNt8uCacXhtlkGsdpaHt1G6th8a5qeY2igWuaKuXqXkyzkNsYneFus5gXUfj+Z6gKJiv 2FFNkgFrmA4J24ynPVfB7yo0dUgFLd64hs1R/euHne7euajJknlxq5/qn6L+zve8dR6Mv0 ICrit3HjGeP/YiT31RPDyQMv/fxLeiwLyldm7hBlceeVi2vNtHEriThMMLaAX+WN0vOJOK ANrgtLA1R5fFJ+Sb2/avx5yziahxrizhxRogARXvOPR4GqVUhscMuJNG7J93FUXBQsRS1V hePhPwA8aOLYvwD9fzdyMqNBnaKjG4hQdsOAgPHHGFaRQsPiQVMI+TFUyX8zlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b="XOC/CGhL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b="XOC/CGhL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 803C4B827 X-Spam-Score: 7.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: UOt5cVVQU8vZ * gnu/packages/llvm.scm (libcxxabi-6)[arguments]: Use G-expressions. <#:configure-flags>: Use "this-package-native-input". --- gnu/packages/llvm.scm | 69 +++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 405ff0b0d8..17c51ea6bb 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -1625,38 +1625,43 @@ (define-public libcxxabi-6 "0ki6796b5z08kh3a3rbysr5wwb2dkl6wal5dzd03i4li5xfkvx1g")))) (build-system cmake-build-system) (arguments - `(#:configure-flags - (list (string-append "-DLIBCXXABI_LIBCXX_INCLUDES=" - (assoc-ref %build-inputs "libcxx") - "/include") - "-DCMAKE_C_COMPILER=clang" - "-DCMAKE_CXX_COMPILER=clang++") - #:phases - (modify-phases (@ (guix build cmake-build-system) %standard-phases) - (add-after 'unpack 'chdir - (lambda _ (chdir "libcxxabi"))) - (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH - (lambda* (#:key inputs #:allow-other-keys) - (let ((gcc (assoc-ref inputs "gcc"))) - ;; Hide GCC's C++ headers so that they do not interfere with - ;; the ones we are attempting to build. - (setenv "CPLUS_INCLUDE_PATH" - (string-join - (cons (string-append - (assoc-ref inputs "libcxx") "/include/c++/v1") - (delete (string-append gcc "/include/c++") - (string-split (getenv "CPLUS_INCLUDE_PATH") - #\:))) - ":")) - (format #true - "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%" - (getenv "CPLUS_INCLUDE_PATH"))))) - (add-after 'install 'install-headers - (lambda* (#:key outputs #:allow-other-keys) - (let ((include-dir (string-append - (assoc-ref outputs "out") "/include"))) - (install-file "../libcxxabi/include/__cxxabi_config.h" include-dir) - (install-file "../libcxxabi/include/cxxabi.h" include-dir))))))) + (list + #:configure-flags + #~(list (string-append "-DLIBCXXABI_LIBCXX_INCLUDES=" + #$(this-package-native-input "libcxx") + "/include") + "-DCMAKE_C_COMPILER=clang" + "-DCMAKE_CXX_COMPILER=clang++") + #:phases + #~(modify-phases (@ (guix build cmake-build-system) %standard-phases) + (add-after 'unpack 'chdir + (lambda _ (chdir "libcxxabi"))) + (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH + (lambda* (#:key inputs #:allow-other-keys) + (let ((gcc (assoc-ref inputs "gcc"))) + ;; Hide GCC's C++ headers so that they do not interfere with + ;; the ones we are attempting to build. + (setenv "CPLUS_INCLUDE_PATH" + (string-join + (cons (string-append + (assoc-ref inputs "libcxx") "/include/c++/v1") + (delete (string-append gcc "/include/c++") + (string-split + (getenv "CPLUS_INCLUDE_PATH") + #\:))) + ":")) + (format + #true + "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%" + (getenv "CPLUS_INCLUDE_PATH"))))) + (add-after 'install 'install-headers + (lambda* (#:key outputs #:allow-other-keys) + (let ((include-dir (string-append + (assoc-ref outputs "out") "/include"))) + (install-file "../libcxxabi/include/__cxxabi_config.h" + include-dir) + (install-file "../libcxxabi/include/cxxabi.h" + include-dir))))))) (native-inputs (list clang-6 llvm-6 libcxx-6)) (home-page "https://libcxxabi.llvm.org") -- 2.38.0