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 ms0.migadu.com with LMTPS id uIslGarzAGIMHgAAgWs5BA (envelope-from ) for ; Mon, 07 Feb 2022 11:25:46 +0100 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 iECzFarzAGI1PwEAauVa8A (envelope-from ) for ; Mon, 07 Feb 2022 11:25:46 +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 B33E943DC0 for ; Mon, 7 Feb 2022 11:25:45 +0100 (CET) Received: from localhost ([::1]:49678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH1DJ-00059a-Bt for larch@yhetil.org; Mon, 07 Feb 2022 05:25:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH0cs-0008TH-91 for guix-patches@gnu.org; Mon, 07 Feb 2022 04:48:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH0cr-0001GM-VX for guix-patches@gnu.org; Mon, 07 Feb 2022 04:48:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nH0cr-0003yN-V4 for guix-patches@gnu.org; Mon, 07 Feb 2022 04:48:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53833] [PATCH] gnu: Add qbe. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Feb 2022 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53833 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: jgart , 53833@debbugs.gnu.org Received: via spool by 53833-submit@debbugs.gnu.org id=B53833.164422723615102 (code B ref 53833); Mon, 07 Feb 2022 09:48:01 +0000 Received: (at 53833) by debbugs.gnu.org; 7 Feb 2022 09:47:16 +0000 Received: from localhost ([127.0.0.1]:41016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH0c7-0003vV-Ph for submit@debbugs.gnu.org; Mon, 07 Feb 2022 04:47:16 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:52783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH0c4-0003vK-P2 for 53833@debbugs.gnu.org; Mon, 07 Feb 2022 04:47:14 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4JshBP1fsnz3x6h; Mon, 7 Feb 2022 10:47:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1644227229; bh=bVI2Y8ZfJjKQViu9SB/hNU0ClIan2D5MIouUkIwzyK0=; h=Subject:From:To:Date:In-Reply-To:References; b=rvGmmOmlhHQ9UL4o6+5J4OcIBvqGBexjRVAIsnYjchx9aeJ2xnsA1nXZyx4cPbGd4 BKCzcOI9Z80fgQYOVGONvkw3aa56/twr4cZswx9e0+nO8JYT0WmefU+nuFGvhqptub P/CU8jDQykhbHAzEji6BllTixoS5SEs9HLN7s3nU= Message-ID: <7974e4fbf6a2b7beb41ead69a708a78a460b295e.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Mon, 07 Feb 2022 10:47:08 +0100 In-Reply-To: <20220207011332.27844-1-jgart@dismail.de> References: <20220207011332.27844-1-jgart@dismail.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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" 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=1644229546; h=from:from:sender:sender: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=bVI2Y8ZfJjKQViu9SB/hNU0ClIan2D5MIouUkIwzyK0=; b=XEYe8QY9MYWG56iRYLIxrg7YnExy7KQmgXipj+gXB25hWaifNXO/Xj4u6Sv98YuXHep9YE 4BV8judV95HgdW5NdoFSMGQdKZrJJa8zErh+mBegpm/zqD1jR6+cgN2Q4t5y09BFVx4r6g RbOs/vOsTHxW8xYhdWODinXHP7l+HpwwbbLkFPg4vi7dy496j1gjdQZgaatqRYQ8vbLGem wIcY6MkxvFRiiwZ0BDSw2a+fFmhXP8DMnE0Ge9ep8uvSrty09P9I1NTm4qNYGQEMB8BD1L R/UQ2LDLWyPhVt8rhbImtKBPoQoQh9guM5nWuUXlW+ptBmTK96koWXkDnowR1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644229546; a=rsa-sha256; cv=none; b=qysW8oxxgauqfg/7pkHfvj7f/gduTIgmD5xbsdeMS8s9sCGgNgHNJsjWl1PQ2ebmPHvvl6 1wJ+imIEaWOBKTNCs7yKKK2YhKF0UjDITICYfhKYWQXdrz83XURKdDga6N8MO/L1tSGc96 Ja46aNGCY+4gbJGOTzUE4NOBP+ZzE2668y6nkjp6FLqalAJZi20Uo4DePKMPcVdHBB7Ct3 UPvWhKTh+P7otpTwrA3bsX9fNQzGCJeT1aMxAK4vKtXMbqrJCIFpRZG5o8lgtcl789RMba UpesHGCyik/De+tUmKNhyRG0kjGEifRtwAb+firpuSAxQYAQHEutiF0S4Cek2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=rvGmmOml; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); 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.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=rvGmmOml; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); 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: B33E943DC0 X-Spam-Score: -2.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: +F3vUEokQzc6 Am Sonntag, dem 06.02.2022 um 20:13 -0500 schrieb jgart: > * gnu/packages/c.scm (qbe): New variable. > --- >  gnu/packages/c.scm | 30 ++++++++++++++++++++++++++++++ >  1 file changed, 30 insertions(+) > > diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm > index 459d996fa2..8966b7b8d0 100644 > --- a/gnu/packages/c.scm > +++ b/gnu/packages/c.scm > @@ -142,6 +142,36 @@ (define-public pcc >      ;; preferred.  See http://pcc.ludd.ltu.se/licenses/ for more > details. >      (license (list license:bsd-2 license:bsd-3)))) >   > +(define-public qbe > +  (let ((commit "2ca6fb25a238842418019a3f9ee8d1beb1327f7e") > +        (revision "0")) > +    (package > +      (name "qbe") > +      (version (git-version "0.0" revision commit)) >From the homepage: "QBE is in constant change. It is a young project and I still have many ideas to try." As always, I don't think it's too good of an idea to package projects that tell you "this edge will make you bleed". Or in the words of the manual > Occasionally, we package snapshots of upstream’s version control > system (VCS) instead of formal releases. This should remain > exceptional, because it is up to upstream developers to clarify what > the stable release is. I think upstream is very clear here that QBE is not yet stable and therefore not something you'd want in a distro. Of course, since the recipe is a rather simple one, you can easily maintain it in your own channel -- or not package it at all and use it from source with just a C compiler. > +      (source > +        (origin > +          (method git-fetch) > +          (uri > +            (git-reference > +              (url "git://c9x.me/qbe") > +              (commit commit))) > +          (file-name (git-file-name name version)) > +          (sha256 > +           (base32 > +            > "0qbnsrwk10v0s42vzxy2wvksd8xl8bmxfzqv2a4j4zjaklqgfd6j")))) > +      (build-system gnu-build-system) > +      (arguments > +       `(#:tests? #f ; Tests require a running qemu? You should be able to add qemu to native-inputs if that's all it takes. > +         #:make-flags (list (string-append "CC=" ,(cc-for-target)) > +                            (string-append "PREFIX=" %output)) > +         #:phases > +         (modify-phases %standard-phases > +           (delete 'configure)))) > +      (synopsis "Backend compiler") > +      (description "@code{qbe} is a compiler backend.") It'd be nice if the description was more descriptive :) Also the synopsis should probably not invert the ordering of "compiler" and "backend". > +      (home-page "https://c9x.me/compile/") > +      (license license:expat)))) > + >  (define-public libbytesize >    (package >      (name "libbytesize") Cheers