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

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Mon, 7 Feb 2022 01:58:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53834 in the body.
You can then email your comments to 53834 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#53834; Package guix-patches. (Mon, 07 Feb 2022 01:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jgart <jgart <at> dismail.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 07 Feb 2022 01:58:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: Add cproc.
Date: Sun,  6 Feb 2022 20:14:15 -0500
* 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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 05 Apr 2022 16:13:02 GMT) Full text and rfc822 format available.

Notification sent to jgart <jgart <at> dismail.de>:
bug acknowledged by developer. (Tue, 05 Apr 2022 16:13:02 GMT) Full text and rfc822 format available.

Message #10 received at 53834-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: jgart <jgart <at> dismail.de>
Cc: 53834-done <at> debbugs.gnu.org
Subject: Re: bug#53834: [PATCH] gnu: Add cproc.
Date: Tue, 05 Apr 2022 18:12:29 +0200
jgart <jgart <at> dismail.de> skribis:

> 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.

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

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 04 May 2022 11:24:08 GMT) Full text and rfc822 format available.

bug unarchived. Request was from paren <at> disroot.org to control <at> debbugs.gnu.org. (Sat, 07 May 2022 17:59:01 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#53834; Package guix-patches. (Sat, 07 May 2022 18:05:02 GMT) Full text and rfc822 format available.

Message #17 received at 53834 <at> debbugs.gnu.org (full text, mbox):

From: "(unmatched-parenthesis" <paren <at> disroot.org>
To: 53834 <at> debbugs.gnu.org
Cc: "\(unmatched-parenthesis" <paren <at> disroot.org>
Subject: [PATCH] gnu: Add cproc.
Date: Sat,  7 May 2022 19:04:19 +0100
* gnu/packages/c.scm (cproc): New variable.

Signed-off-by: (unmatched-parenthesis <paren <at> disroot.org>
---
 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





Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 May 2022 18:47:01 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#53834; Package guix-patches. (Sun, 08 May 2022 20:26:02 GMT) Full text and rfc822 format available.

Message #22 received at 53834 <at> debbugs.gnu.org (full text, mbox):

From: "(unmatched-parenthesis" <paren <at> disroot.org>
To: 53834 <at> debbugs.gnu.org
Cc: "\(unmatched-parenthesis" <paren <at> disroot.org>
Subject: [PATCH v2] gnu: Add cproc.
Date: Sun,  8 May 2022 21:25:00 +0100
* gnu/packages/c.scm (cproc): New variable.

Signed-off-by: (unmatched-parenthesis <paren <at> disroot.org>
---
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





Added blocking bug(s) 3 and 53833 Request was from Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at> to control <at> debbugs.gnu.org. (Tue, 24 May 2022 06:44:12 GMT) Full text and rfc822 format available.

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 07 Jul 2022 20:14:01 GMT) Full text and rfc822 format available.

Notification sent to jgart <jgart <at> dismail.de>:
bug acknowledged by developer. (Thu, 07 Jul 2022 20:14:02 GMT) Full text and rfc822 format available.

Message #29 received at 53834-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: "(unmatched-parenthesis" <paren <at> disroot.org>
Cc: 53834-done <at> debbugs.gnu.org
Subject: Re: bug#53834: [PATCH] gnu: Add cproc.
Date: Thu, 07 Jul 2022 16:12:57 -0400
Hello!

"(unmatched-parenthesis" <paren <at> disroot.org> writes:

> * gnu/packages/c.scm (cproc): New variable.
>
> Signed-off-by: (unmatched-parenthesis <paren <at> disroot.org>
> ---
> 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))))

Well done!  I've adjusted slightly the source to fit under 80 columns,
and push as 96eb2337b5c3d43c99979222633987a8e45df4b9.  Thank you!

Maxim




Information forwarded to guix-patches <at> gnu.org:
bug#53834; Package guix-patches. (Fri, 08 Jul 2022 06:41:01 GMT) Full text and rfc822 format available.

Message #32 received at 53834-done <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Maxim Cournoyer" <maxim.cournoyer <at> gmail.com>
Cc: 53834-done <at> debbugs.gnu.org
Subject: Re: bug#53834: [PATCH] gnu: Add cproc.
Date: Fri, 08 Jul 2022 07:40:43 +0100
On Thu Jul 7, 2022 at 9:12 PM BST, Maxim Cournoyer wrote:
> Well done!  I've adjusted slightly the source to fit under 80 columns,
> and push as 96eb2337b5c3d43c99979222633987a8e45df4b9.  Thank you!

Thanks Maxim! :)

    -- (




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 05 Aug 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 236 days ago.

Previous Next


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