From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GH2gAS6yeGN0YwAAbAwnHQ (envelope-from ) for ; Sat, 19 Nov 2022 11:38:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UEx2AS6yeGO3zAAAauVa8A (envelope-from ) for ; Sat, 19 Nov 2022 11:38:38 +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 BE912F9E7 for ; Sat, 19 Nov 2022 11:38:37 +0100 (CET) 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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 From: Adam Faiz via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: 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=1668854317; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=Gc/1dC/IzKDEqKCA5ucLLDvnoIR5IxTSh5EF/M+LH0A=; b=Jz/OqGkQE8fidNJNKmXRS7zAX25nXrr3MM67kF8gE1CRoRJgay+BJsFXlmW312OSs+230l ruAySu8FNqMHppUvHhVkJSJNbCOyEsppnDOUktAWjZ69K6Gf1NobrygnHtD6hIzhjTVXT3 d0MtA5G6rpbW4en/2uLI3AA8nrAGgNbdRdVXHIyKhcpOtS38GzqZKYHaaork1Z8Z68HCkk kgSrT7r1yFlNOkeyGlc5ebIfmjgBelS3/ejarEn9HMgrhhV956dqxTzK1gt/Vi8eYhw2vq uLic4ajPlLGWj/c9bE7uHkbmCyhkesFeQq72v9J7MZU1twmyPunSaQHBIWAi5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668854317; a=rsa-sha256; cv=none; b=FsZ9N0V5NRrwlhnj8tTuUbh8HvLSFTSzU9SRP7eMK60keAWThkk4+307Fm1f7+qzf0ViJs yEAR3qosMe3fCQwFxTUU0alo2Bkg3QQGUvS8nvRFYXhCno0xFDtX2zN/qo2gYjM4ZXi7dp jkdnHJNDoy+kBJSdrhzi4Ud3BL24j0vxE1G5Dcvv+8S+oG3Xt6pi0dhNWLHsFIkj+VEAaz /8XqPfhEXc+BZK9GIE6KATn1f6vPIntYDZgkDy2vmqV5HhvpsHe8AoVNBFQQwZiFC2Y2u4 3bF8G4uaJsSgBs8z5G3VpqG2cOpNiFpfIMVGRskgUZlbGz1QwTumDpEZQmrz+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=V+ZPjaDu; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=V+ZPjaDu; dmarc=pass (policy=none) header.from=gnu.org; 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: BE912F9E7 X-Spam-Score: -2.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: DjJ0poL8dzeb 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(+) 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 + #~(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+))) -- 2.38.1