From patchwork Fri Jun 24 06:04:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 40282 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 76EF927BBEA; Fri, 24 Jun 2022 07:05:16 +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=-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 E698F27BBE9 for ; Fri, 24 Jun 2022 07:05:15 +0100 (BST) Received: from localhost ([::1]:48588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4cRP-0004M9-11 for patchwork@mira.cbaines.net; Fri, 24 Jun 2022 02:05:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4cRC-0004Li-L4 for guix-patches@gnu.org; Fri, 24 Jun 2022 02:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4cRC-00066J-B5 for guix-patches@gnu.org; Fri, 24 Jun 2022 02:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4cRC-000655-6Y for guix-patches@gnu.org; Fri, 24 Jun 2022 02:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56181] [PATCH] gnu: packages: qbe: Update to 1.0. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Jun 2022 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56181 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56181@debbugs.gnu.org Cc: "\(" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165605067023327 (code B ref -1); Fri, 24 Jun 2022 06:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2022 06:04:30 +0000 Received: from localhost ([127.0.0.1]:40586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4cQg-00064A-II for submit@debbugs.gnu.org; Fri, 24 Jun 2022 02:04:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:56070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4cQe-00063y-Eu for submit@debbugs.gnu.org; Fri, 24 Jun 2022 02:04:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4cQe-0004J6-9t for guix-patches@gnu.org; Fri, 24 Jun 2022 02:04:28 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4cQb-0005wk-St for guix-patches@gnu.org; Fri, 24 Jun 2022 02:04:28 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8AF1E4592F; Fri, 24 Jun 2022 08:04:22 +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 q_CZLyyg0RTX; Fri, 24 Jun 2022 08:04:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656050660; bh=pNC+y/ECg2rFDPig8o+Xp/0En08y7hNEhJd39fGWW4o=; h=From:To:Cc:Subject:Date; b=EUwFumvGkq07wSC8NamZQAHQ4vvsGXOPrOaSg8DC+YlIxRyZePo+ctFiof68zzegb p8mGOgw/po1iY1sgBzXh9XQoF+TYSQ3PmhKjhyNv8j9OIXN580BjZxxuoEqu43EhLq FXnm4as4v7CvpiHiN58lb6vvXzoHAQGZhB7JhD0rq0X8fjHO6Ybn15M4cXGKKxno2W X+ubGmzn2EDxPPrFGz/8haf1njt3sEEnkKkCg/X8fh4RN5VsyOTkzT9X+dBEz9WFIQ kiYDjgpK7cyGX1MK0RiJ6Q3MTAihm3GKsCoFB0e9XozzGmOFEObwR4MstC0YyT/HMy khsTirjubiOZw== Date: Fri, 24 Jun 2022 07:04:11 +0100 Message-Id: <20220624060410.3257-1-paren@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/c.scm (qbe): Update to 1.0. --- gnu/packages/c.scm | 72 ++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 3e49539473..2dc8adb895 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -147,44 +147,42 @@ (define-public pcc (license (list license:bsd-2 license:bsd-3)))) (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)) - (sha256 - (base32 - "1gv03ym0gqrl4wkbhysa82025xwrkr1fg44z814b6vnggwlqgljc")))) - (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 - (add-after 'unpack 'allow-cross-compilation - (lambda _ - (substitute* "Makefile" - (("`uname -m`") #$(or (%current-target-system) - (%current-system)))))) - (add-after 'allow-cross-compilation 'use-$CC-for-tests - (lambda _ - (substitute* "tools/test.sh" - (("cc=\"cc -no-pie\"") "cc=\"${CC} -no-pie\"")))) - (delete 'configure)))) - (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux")) - (synopsis "Simple compiler backend") - (description - "QBE is a small compiler backend using an SSA-based intermediate + (package + (name "qbe") + (version "1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "git://c9x.me/qbe") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qx4a3fjjrp2m4dsn19rpbjf89k9w7w7l09s96jx8vv15vzsdgis")))) + (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 + (add-after 'unpack 'allow-cross-compilation + (lambda _ + (substitute* "Makefile" + (("`uname -m`") #$(or (%current-target-system) + (%current-system)))))) + (add-after 'allow-cross-compilation 'use-$CC-for-tests + (lambda _ + (substitute* "tools/test.sh" + (("cc=\"cc -no-pie\"") "cc=\"${CC} -no-pie\"")))) + (delete 'configure)))) + (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux")) + (synopsis "Simple compiler backend") + (description + "QBE is a small compiler backend using an SSA-based intermediate language as input.") - (home-page "https://c9x.me/compile/") - (license license:expat)))) + (home-page "https://c9x.me/compile/") + (license license:expat))) (define-public python-pcpp (package