From patchwork Mon Feb 7 01:13:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 37037 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 2E09D27BBEA; Mon, 7 Feb 2022 01:21:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 EC38327BBE9 for ; Mon, 7 Feb 2022 01:21:29 +0000 (GMT) Received: from localhost ([::1]:51182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGsie-0001OK-PS for patchwork@mira.cbaines.net; Sun, 06 Feb 2022 20:21:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGsiH-0001Ll-4k for guix-patches@gnu.org; Sun, 06 Feb 2022 20:21:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGsiE-000271-9S for guix-patches@gnu.org; Sun, 06 Feb 2022 20:21:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGsiD-0004sW-UJ for guix-patches@gnu.org; Sun, 06 Feb 2022 20:21:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53833] [PATCH] gnu: Add qbe. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Feb 2022 01:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53833 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53833@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164419684818717 (code B ref -1); Mon, 07 Feb 2022 01:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2022 01:20:48 +0000 Received: from localhost ([127.0.0.1]:40453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGshz-0004rp-OL for submit@debbugs.gnu.org; Sun, 06 Feb 2022 20:20:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:52964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGshx-0004rg-RI for submit@debbugs.gnu.org; Sun, 06 Feb 2022 20:20:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGshv-0001Ap-PC for guix-patches@gnu.org; Sun, 06 Feb 2022 20:20:45 -0500 Received: from [2a01:4f8:c17:e5e::2] (port=38915 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 ) id 1nGshm-0001yx-Sm for guix-patches@gnu.org; Sun, 06 Feb 2022 20:20:43 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id c8be7182 for ; Mon, 7 Feb 2022 02:13:47 +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=0MIm/QImGPAircRSBP67WMkXcVGAFcImVBsULlrS0ZA=; b= HZs4hkVhoBa9Soc0Nn04nNpLkea883p+MddMZtPTCuo/WcCLgf7UD4BKFm8ZEnyM bmi2i3QM2slxtyohpc4iJ2iWTF/Dzz4byrzUxuej69bwWpsYkoFkVJo29g8+XFeB OqpkTHBSI4bqTK5qssDEFkQeNfoAtiDszBSV5ezGrJD4t3Ni32BSXclOlWvR/in+ SZUBocRBVrYklcws77zY8C+gzpoq9HMKyGWclB+NfyJyh3Wq7PuYNS0Tc8ppPSrT O81PEgGrxgNtomyn5/brHl+1IFwDHGKMiYM4RWg3RobSzJhz9n48qOEt/X3uTjea jSPQH8q/STE2FmJkpFhXxw== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id ab16b334 for ; Mon, 7 Feb 2022 02:13:47 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 91ff3752 for ; Mon, 7 Feb 2022 02:13:47 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id e11b45e5 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 7 Feb 2022 02:13:41 +0100 (CET) Date: Sun, 6 Feb 2022 20:13:32 -0500 Message-Id: <20220207011332.27844-1-jgart@dismail.de> X-Mailer: git-send-email 2.35.0 MIME-Version: 1.0 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@dismail.de; 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-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: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches * 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)) + (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? + #: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.") + (home-page "https://c9x.me/compile/") + (license license:expat)))) + (define-public libbytesize (package (name "libbytesize")