From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +BZsNIiRmWS1jwAASxT56A (envelope-from ) for ; Mon, 26 Jun 2023 15:24:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ANcwNIiRmWRBjQAAauVa8A (envelope-from ) for ; Mon, 26 Jun 2023 15:24:24 +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 8F9373E5F2 for ; Mon, 26 Jun 2023 15:24:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDmCL-0005Wb-0i; Mon, 26 Jun 2023 09:24: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 1qDmCJ-0005WO-Ar for guix-patches@gnu.org; Mon, 26 Jun 2023 09:24: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 1qDmCJ-0007dQ-26 for guix-patches@gnu.org; Mon, 26 Jun 2023 09:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDmCI-0005WH-Gx for guix-patches@gnu.org; Mon, 26 Jun 2023 09:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57625] [PATCH v3 3/4] gnu: Add pnet. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Jun 2023 13:24: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 Cc: Maxime Devos Received: via spool by 57625-submit@debbugs.gnu.org id=B57625.168778583421201 (code B ref 57625); Mon, 26 Jun 2023 13:24:02 +0000 Received: (at 57625) by debbugs.gnu.org; 26 Jun 2023 13:23:54 +0000 Received: from localhost ([127.0.0.1]:44855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDmC9-0005Vs-07 for submit@debbugs.gnu.org; Mon, 26 Jun 2023 09:23:54 -0400 Received: from knopi.disroot.org ([178.21.23.139]:36870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDmC6-0005Vd-KA for 57625@debbugs.gnu.org; Mon, 26 Jun 2023 09:23:52 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CBEAC40E66; Mon, 26 Jun 2023 15:23:46 +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 ppnrFrynygde; Mon, 26 Jun 2023 15:23:45 +0200 (CEST) Message-ID: <1bbde14e-a13f-7bf3-cb09-f6f9158140ca@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1687785825; bh=n9hXEXaL/dy+6icbc35QiZedsgqtIbpFwXzzVcH9nLM=; h=Date:Subject:From:To:Cc:References:In-Reply-To; b=iCBaZWZb0EV7s0jlNyX3aGWoINu2rPqG+64YkGV9+/L0kkkqMvJ9PcUmduSug14St v9WAaYS1LvWGR8aK+s+jbSylaMjwOxoLG8+PginVclCra0beRW9t4cIwH7uq391VID 17w22ZHgFms7iY8ZZXEa3Js2hqobb0uc0LOlP9sSzypKXskXPrOCH43QuQOb442XoS 50vey/0ZFF54pCddUWllypx91f0mHKeqNXS5X2ojh3DbQ98ZEuO739nhqZ4G0h2QBD q67XjQT1t8xRfu/JabB6MrfV+q0R+Q40iqZUzXwfKMBUHFqmLPWzc96x+XIZGiJMYb Q1shmGNlmi+nw== Date: Mon, 26 Jun 2023 21:23:41 +0800 MIME-Version: 1.0 Content-Language: en-US References: <01d10129-3aad-cf8e-7616-2718b465f70f@disroot.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687785864; a=rsa-sha256; cv=none; b=cI82KUo2nA9D8kK/dGBsqxb6YUFo5w3dCKg9NMe0ylsAYXyR4ppT+AK9Utkg58kp6GIKpm GpOZ8pyhC9lzEeO33lTIWs3HbPCRkyi+csYLx/vccNgFPFj7SG/7thHYuosIEhzEdHFNh3 CZwwXX2v/5Ex51Qtnejs5Oq8azPNWoDLug2Bd9MrGs7zm105sCMFeZ95kstSJJlpM00Rma lPh86QQTvgsl9hIe+RUsfx+BYpJXdWTzQ9X/XaydCf+j8m13SHtMA2cwFzxUnDLgA6kq5t ZV62WRO/lNgR6HxF8Hp0HO6rfUMOYmSq6bs6zkFG3Es3wTLUTAAOna5RaKwz9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=iCBaZWZb; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687785864; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=gZqx9uUdK8yr6ABf3DDOyP8twPLFX+/tYe4nF36bgi8=; b=O0MA4PqnTb7xeExJRy/H5WMn7IU8hr6LpXasshbajxabG/cGx+EjVSq5DgVoCWy3zbjGK6 iOdpGSaZ3zX1klIKf3TMFXDzJadlODw8g2XBOr66nc7aNfzkH4S74ITIqHhxFp14V8wgeg WTkUOiHHN8R0RVJmQp6jQt2bmniSJ0JgIlOmw/oIiYE44QhdioN6EkbEqC57XwGs4HfD60 X3BE4UTaS8x3zZqL2LLVZlXYQzrzyMl6moyDkNgSTuUdDdIecKML8EbVkt2HetJow1gljY yv3Rf9G1w7gpl824vGOxg2msKMqMu/ldFYZE1x4o0c1dEEIBkd1KZyvyJvYScw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=iCBaZWZb; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.05 X-Spam-Score: -4.05 X-Migadu-Queue-Id: 8F9373E5F2 X-TUID: pCWdWyrGyPh3 >From 515d886c02492bc390db39330baefa6806349e20 Mon Sep 17 00:00:00 2001 Message-Id: <515d886c02492bc390db39330baefa6806349e20.1687784497.git.adam.faiz@disroot.org> In-Reply-To: <94149f940fc7dd3c052cfa9765933303abb7a4ee.1687784497.git.adam.faiz@disroot.org> References: <94149f940fc7dd3c052cfa9765933303abb7a4ee.1687784497.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 08:42:13 +0800 Subject: [PATCH v3 3/4] gnu: Add pnet. * gnu/packages/dotgnu.scm (pnet): New variable. --- gnu/packages/dotgnu.scm | 98 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm index 7d59496f22..283168c5c0 100644 --- a/gnu/packages/dotgnu.scm +++ b/gnu/packages/dotgnu.scm @@ -24,9 +24,11 @@ (define-module (gnu packages dotgnu) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages assembly) #:use-module (gnu packages autotools) #:use-module (gnu packages bdw-gc) - #:use-module (gnu packages libffi)) + #:use-module (gnu packages bison) + #:use-module (gnu packages flex)) (define-public treecc (package @@ -48,3 +50,97 @@ (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 + "mirror://savannah/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")) + (for-each delete-file (find-files "." "Makefile\\.in$")) + (for-each delete-file (find-files "." "_grammar\\.(c|h)$")) + (for-each delete-file (find-files "." "_scanner\\.(c|h)$")) + ; Fix to not require bundled dependencies + (substitute* "configure.in" + (("FFILIBS='.*libffi.a'") "FFILIBS='-lffi'") + (("GCLIBS='.*libgc.a'") "GCLIBS='-lgc'") + ; AC_SEARCH_LIBJIT checks hardcoded header locations + (("search_libjit=true") + (string-append "search_libjit=false\n" + "JIT_LIBS=-ljit"))) + (substitute* "Makefile.am" + (("OPT_SUBDIRS \\+= lib.*") "")) + (substitute* "support/hb_gc.c" + (("#include .*/libgc/include/gc.h.") + "#include ") + (("#include .*/libgc/include/gc_typed.h.") + "#include ")) + (substitute* "support/thread.c" + ; Maybe GC_CreateThread can be used as replacement? + (("result = GC_run_thread.*;") + "result = thread_func(arg);")) + (substitute* (list "codegen/Makefile.am" + "cscc/bf/Makefile.am" + "cscc/csharp/Makefile.am" + "cscc/c/Makefile.am" + "cscc/java/Makefile.am") + ; Generated files aren't prerequisites + (("TREECC_OUTPUT =.*") "")) + (substitute* "cscc/csharp/cs_grammar.y" + (("YYLEX") "yylex()")) + (substitute* "cscc/common/cc_main.h" + (("CCPreProc CCPreProcessorStream;" all) + (string-append "extern " all))) + (substitute* "csdoc/scanner.c" + (("int\ttoken;" all) + (string-append "extern " all))))))) + (build-system gnu-build-system) + (native-inputs + (list autoconf + automake + bison + flex + libtool + libatomic-ops + treecc)) + (inputs + (list libgc + libgc-all-headers + libjit)) + (arguments + (list #:configure-flags + #~(list + (string-append + "CPPFLAGS=-I" #$(this-package-input "libgc") "/include/gc" + " -I" #$(this-package-input "libgc-all-headers") "/include/private") + "--with-jit"))) + (native-search-paths + (list (search-path-specification + (variable "CSCC_LIB_PATH") + (files (list "lib/cscc/lib"))))) + (home-page "http://www.gnu.org/software/dotgnu/html2.0/pnet.html") + (synopsis "Compiler 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.40.1