From patchwork Sat Nov 19 10:33:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 44617 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 BB56E27BBED; Sat, 19 Nov 2022 10:34:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 9F9D327BBEC for ; Sat, 19 Nov 2022 10:34:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owLAl-0001RO-M2; Sat, 19 Nov 2022 05:34:07 -0500 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 1owLAg-0001Qw-CA for guix-patches@gnu.org; Sat, 19 Nov 2022 05:34:05 -0500 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 1owLAg-0007He-3R for guix-patches@gnu.org; Sat, 19 Nov 2022 05:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owLAf-0007HX-MY for guix-patches@gnu.org; Sat, 19 Nov 2022 05:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH v2 1/3] 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: Sat, 19 Nov 2022 10:34: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 Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.166885402327965 (code B ref 57625); Sat, 19 Nov 2022 10:34:01 +0000 Received: (at 57625) by debbugs.gnu.org; 19 Nov 2022 10:33:43 +0000 Received: from localhost ([127.0.0.1]:39087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owLAK-0007Gu-Sz for submit@debbugs.gnu.org; Sat, 19 Nov 2022 05:33:43 -0500 Received: from knopi.disroot.org ([178.21.23.139]:45196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owLAE-0007Gf-Vf for 57625@debbugs.gnu.org; Sat, 19 Nov 2022 05:33:39 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8415D40DF3 for <57625@debbugs.gnu.org>; Sat, 19 Nov 2022 11:33:33 +0100 (CET) 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 c5YLQY2tLymy for <57625@debbugs.gnu.org>; Sat, 19 Nov 2022 11:33:32 +0100 (CET) Message-ID: <474de317-bfb9-7dd6-def7-daf953e96e33@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1668854012; bh=2u4QKIoqV8AwIgaFP+pw/9LTi2fBUW/HY76I4DL4B1Y=; h=Date:To:From:Subject:From; b=PQPevExwsA1GZDB3tjjlow+hLNuC5Tq/7OVd4ywv75m4/8ktiodiHw8OmkDGexxvx LH6ukERcrOR66F6dcFuTBEjLxrlJ6BBN9So6nGR16tEdQx0Qn/QvDt7a7VmvIRInYV qhExh71ABiMO7c5nn9FYA7scskmTn8dXkR4zrQO+bmlJhq3YWdvqVvHhGhrfsJ8Bwc BK5TRNt9DBxvnsLkZoXsJzHMZM2Rk3hpfteEasE0DAPsfuZNjCqPdxDN8WI9B+UTLh wrYrNmvXHX33YBnhJcUG8DGZ++oaiOV5IMr4v+MzQn6xboZ5GX9cAIuGgHUZLNaLnA EQT00bPxe0UBw== Date: Sat, 19 Nov 2022 18:33:28 +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 5ddddd9a24d9b319e722984e19ab26ba02779752 Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 07:39:38 +0800 Subject: [PATCH v2 1/3] 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(+) + (("#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 diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm index c812248e86..947a50f738 100644 --- a/gnu/packages/bdw-gc.scm +++ b/gnu/packages/bdw-gc.scm @@ -26,7 +26,9 @@ (define-module (gnu packages bdw-gc) #:use-module (guix packages) #:use-module (guix download) #: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)) @@ -90,6 +92,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 ") From patchwork Sat Nov 19 10:35:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 44618 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 DE69727BBED; Sat, 19 Nov 2022 10:36:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 507DC27BBE9 for ; Sat, 19 Nov 2022 10:36:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owLCf-0001jI-3G; Sat, 19 Nov 2022 05:36:05 -0500 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 1owLCd-0001j3-0W for guix-patches@gnu.org; Sat, 19 Nov 2022 05:36:03 -0500 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 1owLCc-0007bK-Gm for guix-patches@gnu.org; Sat, 19 Nov 2022 05:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owLCc-0007Ke-0H for guix-patches@gnu.org; Sat, 19 Nov 2022 05:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH v2 2/3] gnu: Add treecc. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Nov 2022 10:36: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 Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.166885413828152 (code B ref 57625); Sat, 19 Nov 2022 10:36:01 +0000 Received: (at 57625) by debbugs.gnu.org; 19 Nov 2022 10:35:38 +0000 Received: from localhost ([127.0.0.1]:39091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owLCD-0007K0-Hq for submit@debbugs.gnu.org; Sat, 19 Nov 2022 05:35:37 -0500 Received: from knopi.disroot.org ([178.21.23.139]:39728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owLCC-0007Js-Gb for 57625@debbugs.gnu.org; Sat, 19 Nov 2022 05:35:37 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DC41E40E00 for <57625@debbugs.gnu.org>; Sat, 19 Nov 2022 11:35:35 +0100 (CET) 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 QHRpc1tSXKeL for <57625@debbugs.gnu.org>; Sat, 19 Nov 2022 11:35:34 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1668854134; bh=XdHVv9T+t0hqCOqjTJdipF2tRUS4mChag19mNK0fsBQ=; h=Date:Subject:From:To:References:In-Reply-To:From; b=Ao6vN7LDOCi/aPcwtHxhjrOLYcahk2GuxebAub0UaQZDfh7vDNXK30UxEwxrIFpNA PvKAV/McNit8UsmMuoKhuT7N+DHx/2PLF/n6yGHHpdB/W7qeqDbyQ4gVS/K4R5GZ4f CWlZAJ8ntNIY69lUZ5UdiXzbtIwxfM1cbiP9LiofbmmilPbXz3Tfp3O0noiETVpVYj 7ObuyDoT21oWnJSKSL1s3dnFNyqJa1LPW11gWbcaoMfAWdkkP2xpVh1caAx/ZCqwK1 8amENjRo6TfOrR5r4MHohUPq+wCt+WHHRrMBRDp86Zmeb/4ySdTvx0CiG1ZEUDJklm EagD/R1rDjGbg== Date: Sat, 19 Nov 2022 18:35:31 +0800 MIME-Version: 1.0 Content-Language: en-US References: <474de317-bfb9-7dd6-def7-daf953e96e33@disroot.org> In-Reply-To: <474de317-bfb9-7dd6-def7-daf953e96e33@disroot.org> 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 27fb538641db2bb29928422a87c69e6d774a85ca Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 08:31:56 +0800 Subject: [PATCH v2 2/3] gnu: Add treecc. * gnu/packages/dotgnu.scm: New file. --- gnu/packages/dotgnu.scm | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 gnu/packages/dotgnu.scm handle +abstract syntax trees and operations upon the trees.") + (license license:gpl2+))) diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm new file mode 100644 index 0000000000..ad3b6c74e5 --- /dev/null +++ b/gnu/packages/dotgnu.scm @@ -0,0 +1,50 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2016 Jan Nieuwenhuizen +;;; Copyright © 2020 Pierre Neidhardt +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages dotgnu) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (gnu packages autotools) + #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages libffi)) + +(define-public treecc + (package + (name "treecc") + (version "0.3.10") + (source (origin + (method url-fetch) + (uri (string-append + "https://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-" + version ".tar.gz")) + (sha256 + (base32 + "1rzgnspg2xccdq3qsx0vi3j28h4qkrzbrjnhzvnny34fjfk217ay")))) + (build-system gnu-build-system) + (home-page "http://www.gnu.org/software/dotgnu/") + (synopsis "Abstract syntax tree compiler compiler") + (description + "The treecc program is designed to assist in the development of compilers +and other language-based tools. It manages the generation of code to From patchwork Sat Nov 19 10:37:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 44619 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 A238227BBEC; Sat, 19 Nov 2022 10:38:38 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 738A127BBE9 for ; Sat, 19 Nov 2022 10:38:37 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owLEs-00021o-Tk; Sat, 19 Nov 2022 05:38:22 -0500 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 1owLEZ-00020w-10 for guix-patches@gnu.org; Sat, 19 Nov 2022 05:38:07 -0500 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 1owLEY-0007sw-9b for guix-patches@gnu.org; Sat, 19 Nov 2022 05:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owLEY-0007NY-55 for guix-patches@gnu.org; Sat, 19 Nov 2022 05:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH v2 3/3] gnu: Add pnet. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Nov 2022 10:38:02 +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 Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.166885426728342 (code B ref 57625); Sat, 19 Nov 2022 10:38:02 +0000 Received: (at 57625) by debbugs.gnu.org; 19 Nov 2022 10:37:47 +0000 Received: from localhost ([127.0.0.1]:39096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owLEJ-0007N4-6U for submit@debbugs.gnu.org; Sat, 19 Nov 2022 05:37:47 -0500 Received: from knopi.disroot.org ([178.21.23.139]:35466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owLEH-0007Mv-Es for 57625@debbugs.gnu.org; Sat, 19 Nov 2022 05:37:46 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CA04E40E09 for <57625@debbugs.gnu.org>; Sat, 19 Nov 2022 11:37:44 +0100 (CET) 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 m_COPXel57-z for <57625@debbugs.gnu.org>; Sat, 19 Nov 2022 11:37:42 +0100 (CET) Message-ID: <1a6e0a54-429b-f5f5-5ae9-0ac908e6e287@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1668854262; bh=yzPoaL0qIVhPktjrvwV4q8YQmFZ34p8RojlR4NRz5+s=; h=Date:Subject:From:To:References:In-Reply-To:From; b=V+ZPjaDu1y+of4OkE3YfkUlpwGh5crkKvx7VhMlLbcRfajMIzDbKnN9n/hLFnFtN5 UlEkaX+6gfKcEHjkqFJfvwCQxIfhRMwQF2Qn1+8L4eSqgjvhZln2u22QZclntO/N5G mx6JTuOJg7jQs0xRSEn6/Tc7xFdx9oZ9ASaEfN2NqusrrLKBjlgqRTx9VrNlEEIjxs NCt5wyiy3nXP/nFGVNgz+lcYnKEQuvcjIS8YAmMLHQ1O7q+3eamB5QD49gbFETQ+kB i628tDcM3DYbbz0KfsNn+54AoSWEOc6DvJHujOL/PBqJY2MXX2h+AMmQCMXV/wuMwQ SZ+1SzCzDe+Zg== Date: Sat, 19 Nov 2022 18:37:39 +0800 MIME-Version: 1.0 Content-Language: en-US References: <474de317-bfb9-7dd6-def7-daf953e96e33@disroot.org> In-Reply-To: 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 832c95bc06cbb55f8456cf174e617052b2ec4131 Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 08:42:13 +0800 Subject: [PATCH v2 3/3] WIP : gnu: Add pnet. * gnu/packages/dotgnu.scm (pnet): New variable. --- gnu/packages/dotgnu.scm | 59 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) + #~(list (string-append "GCLIBS=")) ; libgc is already in the linker path + )) + (home-page "http://www.gnu.org/software/dotgnu/html2.0/pnet.html") + (synopsis "Compiler and libraries for the C# programming language") + (description + "The goal of this project is to build a suite of free software tools +to build and execute .NET applications, including a C# compiler, +assembler, disassembler, and runtime engine.") + (license license:gpl2+))) diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm index ad3b6c74e5..3efa3b1f3c 100644 --- a/gnu/packages/dotgnu.scm +++ b/gnu/packages/dotgnu.scm @@ -48,3 +48,62 @@ (define-public treecc and other language-based tools. It manages the generation of code to handle abstract syntax trees and operations upon the trees.") (license license:gpl2+))) + +(define-public pnet + (package + (name "pnet") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://download.savannah.gnu.org/releases/dotgnu-pnet/pnet-" + version ".tar.gz")) + (sha256 + (base32 + "1fsi8nkgvawjib2n4kyygfhfr31637bin84xkmr0apvsavihld7i")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each delete-file-recursively '("libffi" "libgc")) + (for-each delete-file '("compile" + "configure" + "config.guess" + "config.sub" + "depcomp" + "install-sh" + "ltconfig" + "ltcf-c.sh" + "ltmain.sh" + "Makefile.in")) + (for-each delete-file (find-files "." "Makefile\\.in")) + (substitute* "Makefile.am" ; Fix to not require bundled dependencies + (("OPT_SUBDIRS \\+= lib.*") "")) + (substitute* "support/hb_gc.c" + (("#include .*/libgc/include/gc.h.") "#include ") + (("#include .*/libgc/include/gc_typed.h.") "#include ")) + (substitute* "support/pt_defs.c" + (("#include ") + "#include \n#define GC_H 0\n#define GC_PTHREADS 1\n#include ")) + (substitute* "support/thread.c" + ; Maybe GC_CreateThread can be used as replacement? + (("result = GC_run_thread.*;") + "result = thread_func(arg);")))))) + (build-system gnu-build-system) + (native-inputs (list autoconf automake libtool libatomic-ops)) + (inputs (list treecc libffi libgc libgc-all-headers)) + (arguments + (list #:configure-flags + #~(list + (string-append "CPPFLAGS=-I" #$(this-package-input "libffi") "/include/ffi" + " -I" #$(this-package-input "libgc") "/include/gc" + " -I" #$(this-package-input "libgc-all-headers") "/include/private")) + #:make-flags