From patchwork Sat May 7 17:09:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 39149 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1EBA827BBEA; Sat, 7 May 2022 18:10:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DCAE027BBE9 for ; Sat, 7 May 2022 18:10:11 +0100 (BST) Received: from localhost ([::1]:49300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnNwZ-00073V-3H for patchwork@mira.cbaines.net; Sat, 07 May 2022 13:10:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnNwQ-00072z-U6 for guix-patches@gnu.org; Sat, 07 May 2022 13:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnNwQ-00038I-L8 for guix-patches@gnu.org; Sat, 07 May 2022 13:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnNwQ-0003rO-7L for guix-patches@gnu.org; Sat, 07 May 2022 13:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53833] [PATCH] gnu: Add qbe. References: <20220207011332.27844-1-jgart@dismail.de> In-Reply-To: <20220207011332.27844-1-jgart@dismail.de> Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 May 2022 17:10:02 +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: 53833@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 53833-submit@debbugs.gnu.org id=B53833.165194339114815 (code B ref 53833); Sat, 07 May 2022 17:10:02 +0000 Received: (at 53833) by debbugs.gnu.org; 7 May 2022 17:09:51 +0000 Received: from localhost ([127.0.0.1]:52902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnNwF-0003qt-K3 for submit@debbugs.gnu.org; Sat, 07 May 2022 13:09:51 -0400 Received: from knopi.disroot.org ([178.21.23.139]:36226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnNwE-0003qm-LS for 53833@debbugs.gnu.org; Sat, 07 May 2022 13:09:51 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EB7F543675; Sat, 7 May 2022 19:09:49 +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 VBWRw6cq1zLs; Sat, 7 May 2022 19:09:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1651943387; bh=PUzpI6ym1jwuBWM61ZAwXSHzwv7Klwuky02cZFAtWts=; h=From:To:Cc:Subject:Date; b=SLD4c1pyUvt+fSuzlF/yPJP+0JAjbsQvOarGCXHVqgOJiIJzSihL2NCsHBuuEMUr+ ZjjgqKMwIsfVW3VNiAKw0Mf4XD/jQqfPcLi3ctnth0UGW5rp4od6mDLHYUJ4W1D4K6 FFz92UoEDaExt27HFy3ec1IJkl/w6MF564ySR5wMo9Wwg3lk7Ef6IMx7x02uj3SRaj rplpmb+kWtJV/iW35z/3AWGagjZtcLgwtGMXszHcTT74qFWldYYwCsTFimPQtoY4z7 h5RiLs+N+B2OK1yDbiIEHYinuyqQmmvn1nTfemMpyv1hToqX0FoVF30nwuIHju3oGA +SR7zaE0MTpwA== Date: Sat, 7 May 2022 18:09:42 +0100 Message-Id: <20220507170942.13785-1-paren@disroot.org> Mime-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" X-Patchwork-Original-From: "\(unmatched-parenthesis via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/c.scm (qbe): New variable. Signed-off-by: (unmatched-parenthesis --- gnu/packages/c.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index da034d5fd9..1e3296dae1 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1064,3 +1064,36 @@ (define-public utf8-h C and C++. The functions it provides are like those from the C header string.h, but with a utf8* prefix instead of the str* prefix.") (license license:unlicense)))) + +(define-public qbe + (let ((commit "2caa26e388b1c904d2f12fb09f84df7e761d8331") + (revision "1")) + (package + (name "qbe") + (version (git-version "0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "git://c9x.me/qbe") + (commit commit))) + (file-name (git-file-name name version)) + (patches (search-patches "qbe-makefile-add-target.patch")) + (sha256 + (base32 "1gv03ym0gqrl4wkbhysa82025xwrkr1fg44z814b6vnggwlqgljc")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; Tests require a running qemu + #:make-flags ,#~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output) + (string-append "TARGET=" #$(or (%current-target-system) + (%current-system)))) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux")) + (synopsis "Simple, straightforward backend compiler") + (description "QBE is a compiler backend with the goal of reaching 70% of the +performance of advanced compilers such as LLVM and GCC in only 10% of the code.") + (home-page "https://c9x.me/compile/") + (license license:expat))))