GNU bug report logs - #53834
[PATCH] gnu: Add cproc.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: jgart <jgart@HIDDEN>; Keywords: patch; dated Mon, 7 Feb 2022 01:58:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added blocking bug(s) 3 and 53833 Request was from Liliana Marie Prikler <liliana.prikler@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 53834 <at> debbugs.gnu.org:


Received: (at 53834) by debbugs.gnu.org; 8 May 2022 20:25:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 08 16:25:23 2022
Received: from localhost ([127.0.0.1]:55317 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nnnT1-0002mG-IY
	for submit <at> debbugs.gnu.org; Sun, 08 May 2022 16:25:23 -0400
Received: from knopi.disroot.org ([178.21.23.139]:57896)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1nnnSz-0002m6-8N
 for 53834 <at> debbugs.gnu.org; Sun, 08 May 2022 16:25:22 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 7FFF6435FF;
 Sun,  8 May 2022 22:25: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 DOeE4AmIXPrD; Sun,  8 May 2022 22:25:19 +0200 (CEST)
From: "(unmatched-parenthesis" <paren@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1652041517; bh=uC8dLBPoHrDgwMos249bwVSTjm8OZL+rV9hd4HBirB8=;
 h=From:To:Cc:Subject:Date;
 b=BRizCT0CaUPFSBJJbZs09MExMbzbo3z7UeKIVMoyoFGR3/UcE1LZVDo3cKcpSUHPd
 nYd1/zMony3mHfH4rl6JYYLYGfGHn8dkYr1jCdt9S3HELxf3n1b7W3nU4DUUA5HXFf
 4XJfE5O2CCGGarOYFjO+OazJU7CdIp8mHckC5k3qw0/V5Nnhh+sp8ZsOXcys2RHw7t
 9ELjcsPP4eKSvPx3UKJiTJTkSn/hhBcI7t2BnsVJwv1iYN6Wr208ZNQGNrR56FMDFZ
 i3wxiMQ65roWdK9zuLU+D2NFIQD1yRpwPhS2VKlXKscLZ97nNhgCwiZ0vWgp0pdEty
 ym5sa2dbufVHw==
To: 53834 <at> debbugs.gnu.org
Subject: [PATCH v2] gnu: Add cproc.
Date: Sun,  8 May 2022 21:25:00 +0100
Message-Id: <20220508202500.10449-1-paren@HIDDEN>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 53834
Cc: "\(unmatched-parenthesis" <paren@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/c.scm (cproc): New variable.

Signed-off-by: (unmatched-parenthesis <paren@HIDDEN>
---
This improved patch fixes some style nits.

Thanks to lilyp for pointing them out on #guix!

 gnu/packages/c.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index c9a25eb801..216ddfef88 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -47,6 +47,7 @@ (define-module (gnu packages c)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages check)
   #:use-module (gnu packages flex)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages guile)
@@ -1108,3 +1109,48 @@ (define-public qbe
 language as input.")
     (home-page "https://c9x.me/compile/")
     (license license:expat))))
+
+(define-public cproc
+  (let ((commit "70fe9ef1810cc6c05bde9eb0970363c35fa7e802")
+        (revision "1"))
+    (package
+     (name "cproc")
+     (version (git-version "0.0" revision commit))
+     (source
+      (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.sr.ht/~mcf/cproc")
+             (commit commit)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qmgzll7z7mn587azkj4cizyyd8ii6iznfxpc66ja08140sbn9yx"))))
+     (build-system gnu-build-system)
+     (arguments
+      (list #:make-flags
+            #~(list (string-append "CC=" #$(cc-for-target))
+                    (string-append "PREFIX=" #$output))
+            #:phases
+            #~(modify-phases %standard-phases
+                (replace 'configure
+                  (lambda* (#:key inputs outputs #:allow-other-keys)
+                    (let ((out (assoc-ref outputs "out"))
+                          (gcc-lib (assoc-ref inputs "gcc:lib"))
+                          (host-system #$(nix-system->gnu-triplet (%current-system)))
+                          (target-system
+                           #$(nix-system->gnu-triplet (or (%current-target-system)
+                                                          (%current-system)))))
+                      (invoke "./configure"
+                              (string-append "--prefix=" out)
+                              (string-append "--host=" host-system)
+                              (string-append "--target=" target-system)
+                              (string-append "--with-ld=" #$(ld-for-target))
+                              (string-append "--with-gcc-libdir=" gcc-lib))))))))
+     (inputs `(("qbe" ,qbe)
+               ("gcc:lib" ,gcc "lib")))
+     (supported-systems (list "x86_64-linux" "aarch64-linux"))
+     (synopsis "Simple C11 compiler backed by QBE")
+     (description "@code{cproc} is a C compiler using QBE as a backend, supporting most of C11
+along with some GCC and C2x extensions.")
+     (home-page "https://sr.ht/~mcf/cproc")
+     (license license:expat))))
-- 
2.36.0





Information forwarded to guix-patches@HIDDEN:
bug#53834; Package guix-patches. Full text available.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 53834 <at> debbugs.gnu.org:


Received: (at 53834) by debbugs.gnu.org; 7 May 2022 18:04:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 07 14:04:33 2022
Received: from localhost ([127.0.0.1]:52933 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nnOnB-0007Oz-7W
	for submit <at> debbugs.gnu.org; Sat, 07 May 2022 14:04:33 -0400
Received: from knopi.disroot.org ([178.21.23.139]:55226)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1nnOn8-0007Oq-Dx
 for 53834 <at> debbugs.gnu.org; Sat, 07 May 2022 14:04:32 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id C6FDD4367A;
 Sat,  7 May 2022 20:04:29 +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 T8eep63cVhxg; Sat,  7 May 2022 20:04:28 +0200 (CEST)
From: "(unmatched-parenthesis" <paren@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1651946668; bh=jJZMg1vbSEMHSZwqzcTCo+mfS5Kfq14BHoR14dYox/A=;
 h=From:To:Cc:Subject:Date;
 b=GR/kmUVIsyzn3D6T3mHSuqfajIrWRJ5xkg6KhKXfl858WAAOT6D95OFTGZqgifNg9
 qX97a2Oe3EwR+qRqI/sWARCPjcL2PELvNumOmxyYIwXm65C9rSSDAExJaGCdWVyPVW
 +rgM+YQuZMWSyJO4QhaNInbvcACOLtZ35aIRQ2S5bdhmfeyJ9zl0pt2wPLA8gD6RsA
 76O4YOYjKfIYS5jwgSkMg6bpxp3MqLsvQcqHXidv+SWHjTfSDzI2h1TR+NJpc9Eh9X
 763jenVkoTIrLf/ioHbDmMtDC8ijSVXZaexXB3rrPrk42MvSyttVWDN/ZymFqxqkfs
 /DpmsWFWMxtWg==
To: 53834 <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add cproc.
Date: Sat,  7 May 2022 19:04:19 +0100
Message-Id: <20220507180419.19617-1-paren@HIDDEN>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 53834
Cc: "\(unmatched-parenthesis" <paren@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/c.scm (cproc): New variable.

Signed-off-by: (unmatched-parenthesis <paren@HIDDEN>
---
 gnu/packages/c.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 1e3296dae1..e03ea2e6eb 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -46,6 +46,7 @@ (define-module (gnu packages c)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages check)
   #:use-module (gnu packages flex)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages guile)
@@ -1097,3 +1098,48 @@ (define-public qbe
 performance of advanced compilers such as LLVM and GCC in only 10% of the code.")
     (home-page "https://c9x.me/compile/")
     (license license:expat))))
+
+(define-public cproc
+  (let ((commit "70fe9ef1810cc6c05bde9eb0970363c35fa7e802")
+        (revision "1"))
+    (package
+     (name "cproc")
+     (version (git-version "0.0" revision commit))
+     (source
+      (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.sr.ht/~mcf/cproc")
+             (commit commit)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qmgzll7z7mn587azkj4cizyyd8ii6iznfxpc66ja08140sbn9yx"))))
+     (build-system gnu-build-system)
+     (arguments
+      `(#:make-flags ,#~(list (string-append "CC=" #$(cc-for-target))
+                              (string-append "PREFIX=" #$output))
+        #:phases
+        ,#~(modify-phases %standard-phases
+             (replace 'configure
+               (lambda* (#:key inputs outputs #:allow-other-keys)
+                 (let ((out (assoc-ref outputs "out"))
+                       (gcc-lib (assoc-ref inputs "gcc:lib"))
+                       (ld #$(ld-for-target))
+                       (host-system #$(nix-system->gnu-triplet (%current-system)))
+                       (target-system
+                        #$(nix-system->gnu-triplet (or (%current-target-system)
+                                                       (%current-system)))))
+                   (invoke "./configure"
+                           (string-append "--prefix=" out)
+                           (string-append "--host=" host-system)
+                           (string-append "--target=" target-system)
+                           (string-append "--with-ld=" ld)
+                           (string-append "--with-gcc-libdir=" gcc-lib))))))))
+     (inputs `(("qbe" ,qbe)
+               ("gcc:lib" ,gcc "lib")))
+     (supported-systems (list "x86_64-linux" "aarch64-linux"))
+     (synopsis "Simple C11 compiler backed by QBE")
+     (description "@code{cproc} is a C compiler using QBE as a backend.  It
+currently supports C11 along with some GCC and C2x extensions.")
+     (home-page "https://sr.ht/~mcf/cproc")
+     (license license:expat))))
-- 
2.36.0





Information forwarded to guix-patches@HIDDEN:
bug#53834; Package guix-patches. Full text available.
bug unarchived. Request was from paren@HIDDEN to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 53834-done <at> debbugs.gnu.org:


Received: (at 53834-done) by debbugs.gnu.org; 5 Apr 2022 16:12:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 05 12:12:40 2022
Received: from localhost ([127.0.0.1]:55943 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nblnM-0005jz-D5
	for submit <at> debbugs.gnu.org; Tue, 05 Apr 2022 12:12:40 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41328)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1nblnK-0005jg-0k
 for 53834-done <at> debbugs.gnu.org; Tue, 05 Apr 2022 12:12:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35884)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nblnE-0007xE-Qs; Tue, 05 Apr 2022 12:12:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=r/GhzYNxOJ5qCkU+5PgSSlZz/6vXBF95HobRLwJ8dUw=; b=HiTaK+8YlaL7eK76QYgC
 FElMr16BswERYVQSaVjO9BdUAQYZzar3u/pu4IMKOs7qpzoNL/OwwhFxfMzC+oUKsIEjkP4MxilDR
 qb1xr1msoeAN1d+1kJGnniMTikaEwrhzzz9yqY+pzuUEQem6hpsRV1HEzlCCNK41gsOog6iuSxZLI
 roiM7ODb5u1VZw7UXwxvjncOh35F9dwRGKM2WR4GG4Mz5aMAB3QILfA8pmcZMMwe62fCjTFlDO1hn
 3mKEgCNa776D8XyxYcbgc3lP5hB0hTCf7Fg2KeSmfO5T56f3ULPCBUo9EyNj4cfQzT/nkGXKG55S0
 XgRRBg2yhOu4Sw==;
Received: from [193.50.110.173] (port=58790 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nblnD-0005ux-R6; Tue, 05 Apr 2022 12:12:32 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: jgart <jgart@HIDDEN>
Subject: Re: bug#53834: [PATCH] gnu: Add cproc.
References: <20220207011414.28849-1-jgart@HIDDEN>
Date: Tue, 05 Apr 2022 18:12:29 +0200
In-Reply-To: <20220207011414.28849-1-jgart@HIDDEN> (jgart@HIDDEN's
 message of "Sun, 6 Feb 2022 20:14:15 -0500")
Message-ID: <87o81fldaq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53834-done
Cc: 53834-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

jgart <jgart@HIDDEN> skribis:

> This is a WIP in case anyone would like to help check/test/review this pa=
ckage.
>
> cproc depends on qbe which is available from ticket 53833.

As with <https://issues.guix.gnu.org/53833>, please ping us when you
think that it can get in together with qbe.

Ludo=E2=80=99.




Notification sent to jgart <jgart@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Ludovic Courtès <ludo@HIDDEN>:
You have taken responsibility. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Feb 2022 01:57:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 06 20:57:23 2022
Received: from localhost ([127.0.0.1]:40470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGtHP-00081N-3o
	for submit <at> debbugs.gnu.org; Sun, 06 Feb 2022 20:57:23 -0500
Received: from lists.gnu.org ([209.51.188.17]:38482)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jgart@HIDDEN>) id 1nGtHN-00081G-Up
 for submit <at> debbugs.gnu.org; Sun, 06 Feb 2022 20:57:22 -0500
Received: from eggs.gnu.org ([209.51.188.92]:32952)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jgart@HIDDEN>) id 1nGtHN-00045e-Ah
 for guix-patches@HIDDEN; Sun, 06 Feb 2022 20:57:21 -0500
Received: from [2a01:4f8:c17:e5e::2] (port=1975 helo=mx1.dismail.de)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jgart@HIDDEN>) id 1nGtHK-0006dH-7d
 for guix-patches@HIDDEN; Sun, 06 Feb 2022 20:57:21 -0500
Received: from mx1.dismail.de (localhost [127.0.0.1])
 by mx1.dismail.de (OpenSMTPD) with ESMTP id 7203abd9
 for <guix-patches@HIDDEN>; Mon, 7 Feb 2022 02:57:12 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc
 :subject:date:message-id:mime-version:content-transfer-encoding;
 s=20190914; bh=xyfB7mLfwcYq5iYT1J1vuE06SMxTNsqvcvw0+QbaoBc=; b=
 g89n+3IHZf0Vnlrv37Q31ZJNVYU2i3VR89NP2AUiPb7xFK4VOhDoi/IDD2DOcB99
 pWJaAPE2PcMHC6P0JcoZYXJIf0P35eFYr0DThkeqlIIQLChMmkjLzR2fyv6tjYGN
 eUc7w3vjQ8F6/Bwbrydq3v3K4ZAst/q/g6rFMTnNA1qVtqUwjKItB0z1Kv66pzQP
 JOl6BXagY/dEFOTczg2kS+7f013rzwfJ6M+kQW/YVqKKwFCOLVfva60qtLOlhmaA
 jQmu9s9q8dMiHU7BOljohXL51MJ3PZ/XdU1NySafogCYAkcywms4CeJAJ7NYgZ9L
 5Oia7jgkOuGl5kO0IsBtCw==
Received: from smtp2.dismail.de (<unknown> [10.240.26.12])
 by mx1.dismail.de (OpenSMTPD) with ESMTP id 84d84119
 for <guix-patches@HIDDEN>; Mon, 7 Feb 2022 02:57:12 +0100 (CET)
Received: from smtp2.dismail.de (localhost [127.0.0.1])
 by smtp2.dismail.de (OpenSMTPD) with ESMTP id f3eb2589
 for <guix-patches@HIDDEN>; Mon, 7 Feb 2022 02:57:11 +0100 (CET)
Received: by dismail.de (OpenSMTPD) with ESMTPSA id 4e0b23b8
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Mon, 7 Feb 2022 02:57:05 +0100 (CET)
From: jgart <jgart@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add cproc.
Date: Sun,  6 Feb 2022 20:14:15 -0500
Message-Id: <20220207011414.28849-1-jgart@HIDDEN>
X-Mailer: git-send-email 2.35.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f8:c17:e5e::2
 (failed)
Received-SPF: pass client-ip=2a01:4f8:c17:e5e::2;
 envelope-from=jgart@HIDDEN; helo=mx1.dismail.de
X-Spam_score_int: -35
X-Spam_score: -3.6
X-Spam_bar: ---
X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: jgart <jgart@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

* gnu/packages/c.scm (cproc): New variable.
---

Hi Guixers,

This is a WIP in case anyone would like to help check/test/review this package.

cproc depends on qbe which is available from ticket 53833.

all best,

jgart

 gnu/packages/c.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 8966b7b8d0..87a6d413bc 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -172,6 +172,38 @@ (define-public qbe
       (home-page "https://c9x.me/compile/")
       (license license:expat))))
 
+(define-public cproc
+  (let ((commit "51e61fa5fa3de8cabc2191a5c6ac4d18aaaaf049")
+        (revision "0"))
+    (package
+      (name "cproc")
+      (version (git-version "0.0" revision commit))
+      (source
+        (origin
+          (method git-fetch)
+          (uri
+            (git-reference
+              (url "https://git.sr.ht/~mcf/cproc")
+              (commit commit)))
+          (file-name (git-file-name name version))
+          (sha256
+           (base32
+            "1fyyqxg2fphh104yrn15az0w7vipkljkgspi6kzv8lyddl5758nj"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f
+         #:make-flags (list (string-append "CC=" ,(cc-for-target))
+                            (string-append "PREFIX=" %output))
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure))))
+      (inputs
+        (list qbe))
+      (synopsis "C11 compiler")
+      (description "@code{cproc} is a C11 compiler using QBE as a backend.")
+      (home-page "https://sr.ht/~mcf/cproc")
+      (license license:expat))))
+
 (define-public libbytesize
   (package
     (name "libbytesize")
-- 
2.35.0





Acknowledgement sent to jgart <jgart@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#53834; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 24 May 2022 06:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.