From patchwork Mon Jun 26 13:17:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51356 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 068CE27BBEA; Mon, 26 Jun 2023 14:18:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0BAE327BBE2 for ; Mon, 26 Jun 2023 14:18:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDm6X-0006e6-J8; Mon, 26 Jun 2023 09:18:05 -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 1qDm6U-0006dY-Jc for guix-patches@gnu.org; Mon, 26 Jun 2023 09:18:03 -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 1qDm6U-0005zK-5Z for guix-patches@gnu.org; Mon, 26 Jun 2023 09:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDm6U-0005Lt-10 for guix-patches@gnu.org; Mon, 26 Jun 2023 09:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH v3 1/4] gnu: Add libgc-all-headers. References: <9d424667-868f-03f2-c521-8c10e106d6d3@disroot.org> In-Reply-To: <9d424667-868f-03f2-c521-8c10e106d6d3@disroot.org> Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Jun 2023 13:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57625 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 57625@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.168778544820522 (code B ref 57625); Mon, 26 Jun 2023 13:18:01 +0000 Received: (at 57625) by debbugs.gnu.org; 26 Jun 2023 13:17:28 +0000 Received: from localhost ([127.0.0.1]:44845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDm5v-0005Kw-KA for submit@debbugs.gnu.org; Mon, 26 Jun 2023 09:17:27 -0400 Received: from knopi.disroot.org ([178.21.23.139]:47806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDm5t-0005Kg-6y for 57625@debbugs.gnu.org; Mon, 26 Jun 2023 09:17:26 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5CE0E405F3; Mon, 26 Jun 2023 15:17:20 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36Pk88TLNwyT; Mon, 26 Jun 2023 15:17:19 +0200 (CEST) Message-ID: <01d10129-3aad-cf8e-7616-2718b465f70f@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1687785439; bh=eQEJLkZIIKXXqK3bTg7pOATeNC05FEKQ+LCRP3dwdkc=; h=Date:To:Cc:From:Subject; b=KdGti8IWAsNzIDayHlFBR5eKTM8Q4pMuqpOgrC/5T7kfAQrr35mvFcqVkBfxuz/Nd 50/n0b4A+XQEBkw399Fjp5dYMUSrU3spJzvl3ZGKy6QDb179ZiqbCOwEXYLwvaTx/R npsN0SjjCjeChrtBWSz+J1DTQRM6LOw3IGpvHtgkkJ7GrNpZ9VQfE64tpDVD8VudLs Dqml8pMtKK6PcrR+n8ArNXLRDbRa9B0vu5mjMV0VhZLkuqw+8YzXVtDvxTu4GNKdkd VrpOsHOQ2z+65NjLbDE/cOrgGu5a/hAIAbyUOBnksZZtGKmvdtlUw3xGef5tW3rNHX 2SiiO3utqF9kA== Date: Mon, 26 Jun 2023 21:17:14 +0800 MIME-Version: 1.0 Content-Language: en-US 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: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 94149f940fc7dd3c052cfa9765933303abb7a4ee Mon Sep 17 00:00:00 2001 Message-Id: <94149f940fc7dd3c052cfa9765933303abb7a4ee.1687784497.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 07:39:38 +0800 Subject: [PATCH v3 1/4] gnu: Add libgc-all-headers. * gnu/packages/bdw-gc.scm (libgc-all-headers): New variable. --- gnu/packages/bdw-gc.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) base-commit: f25529b08e356f89ca7cecc44295085531a8faba diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm index 5ff4649716..a1a046ad9d 100644 --- a/gnu/packages/bdw-gc.scm +++ b/gnu/packages/bdw-gc.scm @@ -27,7 +27,9 @@ (define-module (gnu packages bdw-gc) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix utils) + #:use-module (guix gexp) #:use-module (guix build-system gnu) + #:use-module (guix build-system copy) #:use-module (gnu packages pkg-config) #:use-module (gnu packages hurd)) @@ -107,6 +109,33 @@ (define-public libgc (license (x11-style (string-append home-page "license.txt"))))) +(define-public libgc-all-headers ; TODO(core-updates) merge into libgc + (package + (inherit libgc) + (name "libgc-all-headers") + (outputs '("out")) + (build-system copy-build-system) + (arguments + (list #:install-plan + #~'(("include/config.h.in" "include/private/config.h") + ("include/gc_tiny_fl.h" "include/private/gc_tiny_fl.h") + ("include/gc_mark.h" "include/private/gc_mark.h") + ("include/private/gcconfig.h" "include/private/gcconfig.h") + ("include/private/gc_hdrs.h" "include/private/gc_hdrs.h") + ("include/private/gc_atomic_ops.h" "include/private/gc_atomic_ops.h") + ("include/private/gc_locks.h" "include/private/gc_locks.h") + ("include/private/gc_priv.h" "include/private/gc_priv.h")) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'fix-headers + (lambda _ + (with-directory-excursion "include/private" + (substitute* "gc_priv.h" + (("#include .*/gc_tiny_fl.h.") "#include ") + (("#include .*/gc_mark.h.") "#include ")))))))) + (synopsis "Headers of libgc") + (description "All headers of libgc."))) + ;; TODO: Add a static output in libgc in the next rebuild cycle. (define-public libgc/static-libs (package/inherit