From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aKsTLhsqeGLsbgAAbAwnHQ (envelope-from ) for ; Sun, 08 May 2022 22:37:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2KbuLRsqeGI7CAAA9RJhRA (envelope-from ) for ; Sun, 08 May 2022 22:37:47 +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 2868315769 for ; Sun, 8 May 2022 22:37:47 +0200 (CEST) Received: from localhost ([::1]:50944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnnf0-0006sC-4V for larch@yhetil.org; Sun, 08 May 2022 16:37:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnnTf-0003G0-1Z for guix-patches@gnu.org; Sun, 08 May 2022 16:26:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnnTe-0002Yl-Ld for guix-patches@gnu.org; Sun, 08 May 2022 16:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnnTe-0002n9-D3 for guix-patches@gnu.org; Sun, 08 May 2022 16:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53834] [PATCH v2] gnu: Add cproc. References: <20220207011414.28849-1-jgart@dismail.de> In-Reply-To: <20220207011414.28849-1-jgart@dismail.de> Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 May 2022 20:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53834 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53834@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 53834-submit@debbugs.gnu.org id=B53834.165204152310684 (code B ref 53834); Sun, 08 May 2022 20:26:02 +0000 Received: (at 53834) by debbugs.gnu.org; 8 May 2022 20:25:23 +0000 Received: from localhost ([127.0.0.1]:55317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnnT1-0002mG-IY for submit@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 ) id 1nnnSz-0002m6-8N for 53834@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) 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== Date: Sun, 8 May 2022 21:25:00 +0100 Message-Id: <20220508202500.10449-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" From: "\(unmatched-parenthesis via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652042267; 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-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=++uKOGHv2uztO4DqgP721HrnF2XQ+cIBJlQW3IhFpkQ=; b=QaE/26I1Jj2kXqp8o5sXqsC6OXxON2r4V6WaXaD4Gyb02FMecsZVTbvS4agdYJyNlwF3/O ph0tPz4Eaq/FXitlYXq8uxKsOzuAm+gkk5WsK/vKsyTS7mU4Bp1wzEVory750/nxBAVT4J Xut2swtU+WK58oDCXJYtXLh9tDLTCnyHBm63772b5VoQyCOCPpNv6Dene4ZEv5vOHIUAwX v08O16gHxs9EYeHYp54h1vJ1Dk60YGW19FeOavo+SPEx8J2JsUEUCXLy03aIEIlcqucF7e B7MsK/IewlPSt5L67zU0ygqB8lbtq1b5x3REo7n6xj0q1E7XbGoy68jNErKJ3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652042267; a=rsa-sha256; cv=none; b=BiBu9C5MU/VcLPYW62D2eGmkqUPj0dngxMxlLBcXQDpgj9+bslE8Vo2UndrNeh7PVh900s HqJSfKJ08E9U8AOMv+/V2zTinMcd+gWRNkyUETrjtShPrGV94mR6YAgzPTm2XoLJRw4bHY Tvp0QW9LknagEwlfnBXg8N13AzYrAfSDmfKVTRRQA/lOBX10Ch0VaZx8UjQtKJ1Hltk9Pg TmKxNX1+Cr6VNduudI2xeUJ+3+IrbdGvGBpcLZ3tnjNULdioxrrd2bx9KjQ6Z2pFrPSVQB tkJrZ6V5kBIo7VIiCAs+dS18oBytI98IGlmz7lYJ1Xr1uRKEDHiaD1I+lii+vQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=BRizCT0C; 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.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=BRizCT0C; 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: 2868315769 X-Spam-Score: -2.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: cK/UkXXfxjbo * gnu/packages/c.scm (cproc): New variable. Signed-off-by: (unmatched-parenthesis --- 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