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 sN52O8o1jWKFuAAAbAwnHQ (envelope-from ) for ; Tue, 24 May 2022 21:45:15 +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 GJ9iO8o1jWL6dwAA9RJhRA (envelope-from ) for ; Tue, 24 May 2022 21:45:14 +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 7857D3A1C9 for ; Tue, 24 May 2022 21:45:14 +0200 (CEST) Received: from localhost ([::1]:41160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntaSv-0005K7-Ke for larch@yhetil.org; Tue, 24 May 2022 15:45:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntaSk-0005H9-FF for guix-patches@gnu.org; Tue, 24 May 2022 15:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntaSk-0006ZL-2V for guix-patches@gnu.org; Tue, 24 May 2022 15:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntaSj-0005r4-UB for guix-patches@gnu.org; Tue, 24 May 2022 15:45:01 -0400 Subject: bug#53833: [PATCH v2] gnu: Add qbe. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 24 May 2022 19:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 53833 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "(unmatched-parenthesis" , 53833-done@debbugs.gnu.org Mail-Followup-To: 53833@debbugs.gnu.org, liliana.prikler@gmail.com, jgart@dismail.de Received: via spool by 53833-done@debbugs.gnu.org id=D53833.165342149322470 (code D ref 53833); Tue, 24 May 2022 19:45:01 +0000 Received: (at 53833-done) by debbugs.gnu.org; 24 May 2022 19:44:53 +0000 Received: from localhost ([127.0.0.1]:53502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaSM-0005q6-Lh for submit@debbugs.gnu.org; Tue, 24 May 2022 15:44:53 -0400 Received: from mail-ej1-f66.google.com ([209.85.218.66]:33441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaSH-0005pp-U8 for 53833-done@debbugs.gnu.org; Tue, 24 May 2022 15:44:37 -0400 Received: by mail-ej1-f66.google.com with SMTP id f9so37517976ejc.0 for <53833-done@debbugs.gnu.org>; Tue, 24 May 2022 12:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=FmKIOpjSdCdIaJQ5+OXLvuygRhEymVdyrLycwQoXNSE=; b=VF1nzto1s58QUuBj7ezKgnuaYl57RdVV7nSSwDhunfxKbn6R+uDsTlV6JItAUhNv9j y1tDv5DUWKfU0kIE36MJYLkkUxZFZCu93inclMVRiUJo6cQhIXuQJ+1pmjkjXPRm9VKd xY0k7WbKPeqT2CR3JFZTKjbYKL50yEOYBFHBsXqPRYok+W+Tle+q4zhfXhI9D3M+JdmZ qAHFIgKRuyGlU4iCKadY+8zoFDvfq+XTtwsgRI6Zl4eN7DV1sAAMngujAvEkw/s3HUF7 MfD3uMt3A2yRLbNXadko5aOJ7AXdt/XY7BRFwa4ZyX8vR5Ta0eRF7de7xK4FxDnvFw5+ Z0jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=FmKIOpjSdCdIaJQ5+OXLvuygRhEymVdyrLycwQoXNSE=; b=FSXaA8gluwH5rms0MQnDeQL4zPCr5qR9Zie6tjKxIsAVTpTSloEkSafFpA9HnN7xO/ Iw/96KNd+TqLXO4X2BSgT4hQ+L2SARf9CRJOxWLyCJUohBO2sC94IlpvXoFDQAQ1o/ks oJy99QIQWwDp5emlTfgYNRi3+dZlt7wvLaHkFZ39Qg4bCy1Et7EHywayTvnHY2sZoE4I gsL4BL7UXt/zqsalECePKZLKkOMx2bHL65C6uJGkE/8UIDZG+DzDk2IoJRjHOpNmIJky VptYqRSQM+I4WYPX9hARATSbBPaV523Pv3plOPrBb4DpQVHUM5om8zdN6+0zMFmEXBxS c6Wg== X-Gm-Message-State: AOAM5313HBuWKKLFusVIZDKDEvZI4ngifZyOjegqmZginuhmAHW39J8K Xa+/FWHeW/LqBfA4v3vvCrQ= X-Google-Smtp-Source: ABdhPJz1ZTl1nv1XWj3fGJ4mRpvTSpM3jy/NTElHlAUxAtbFONj0Zrya+cfw87FC+QTkUx0RlC02+w== X-Received: by 2002:a17:906:b10f:b0:6fe:a059:f6f4 with SMTP id u15-20020a170906b10f00b006fea059f6f4mr22984608ejy.194.1653421467843; Tue, 24 May 2022 12:44:27 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id cz26-20020a0564021cba00b0042aad7448besm9732133edb.18.2022.05.24.12.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 12:44:27 -0700 (PDT) Message-ID: <956d04d18e0dd7474550167906f0aadc09cac98d.camel@gmail.com> From: Liliana Marie Prikler Date: Tue, 24 May 2022 21:44:26 +0200 In-Reply-To: <2b0a34e61f45a706afb7e84a5cac9aae8a9e10aa.camel@ist.tugraz.at> References: <20220508202154.9648-1-paren@disroot.org> <2b0a34e61f45a706afb7e84a5cac9aae8a9e10aa.camel@ist.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 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" 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=1653421514; 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-to: 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=FmKIOpjSdCdIaJQ5+OXLvuygRhEymVdyrLycwQoXNSE=; b=n9/1xPdBtyU9Gvqmzm+oGpj4rbFpzUKHdBZPfyEfgwIr6eXmPnB0pKobwUZcUhDCER2XhX TruvNDmoWrnbp8mnYwpQ3WA4qM1LXHBYMvJ7cDw4vu8hu/BHrP7OyXV+iY1u0nfhdpIqrl TzpSQEIaHfwPgAOozBp+9HCIVFvvsmX4L6DKZNHOu3nVKuxbxM3bLqWbkhKzSdfiGl71lt XELuXJig8AKQmVvHZZKXAvj+gWi5R+XQBmUGie98l/HgqRj1c/3KbVmsdbzC3bU3JjQld+ i63ZVx8GJkkYf+lnI0AIJxSOS7HyI50aR+2/BgD3m2tHez+rruZTP4wHWXwcwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653421514; a=rsa-sha256; cv=none; b=HFeL96cKeo2xOKTpov4HFEwUDAb4MFRxloE1QjdB/scyVkVWMzUSVzaZp2GTOjdXZahF0c c9MjN2m0SGFysQFoOtjQoACyk4ISN5nejfFZIkrBr8mGcq9pOxx0IWqyE+DNWUVBaOu8mK AMpDBZhAZEot2cFJpcb7zzQGMGYDuyVU130YFba0HH3Z0evTIp7Y+bTmQLmXzgjLyedK8F qhLfiWn1lS+uk4i1eHlIorI1YjxN8U4KH326V9ROkGYvjad1haCVkeS02FM55GO9qVvue2 9CJFA8KSKuMtR1ngbLTiGT5DpqVDmt5YCs5Ra0+nfQhS0fPp/ZG4fUjjBlZ/jQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VF1nzto1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 4.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VF1nzto1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 7857D3A1C9 X-Spam-Score: 4.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: hIpdnYOanN9P Am Dienstag, dem 24.05.2022 um 08:50 +0200 schrieb Liliana Marie Prikler: > Hi, this is mostly a reminder for myself to push this soon. > > Am Sonntag, dem 08.05.2022 um 21:21 +0100 schrieb (unmatched- > parenthesis: > > * gnu/packages/c.scm (qbe): New variable. > > > > Signed-off-by: (unmatched-parenthesis > Don't add sign-off headers for your own patches, those are for > committers signing of other people's patches :) > > > [...] > > +    (arguments > > +     (list #:make-flags > > +           #~(list (string-append "CC=" #$(cc-for-target)) > > +                   (string-append "PREFIX=" #$output) > > +                   ;; `GUIXTARGET` is used instead of `TARGET` to > > avoid changing > > +                   ;; the meaning of tools/test.sh (which uses > > `TARGET` too). > > +                   (string-append "GUIXTARGET=" #$(or (%current- > > target-system) > > +                                                      (%current- > > system)))) > > +           #:phases > > +           #~(modify-phases %standard-phases > > +               (add-after 'unpack 'allow-cross-compilation > > +                 (lambda _ > > +                   (substitute* "Makefile" > > +                     (("`uname -m`") "$(GUIXTARGET)")))) > Instead of going through the variable, why not inline it into the > substitute*? > > +               (add-after 'allow-cross-compilation 'use-gcc-for- > > tests > > +                 (lambda _ > > +                   (substitute* "tools/test.sh" > > +                     (("cc=\"cc -no-pie\"") > > +                      (string-append "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)))) > > Otherwise LGTM. Applied with the above as well as my liberal interpretation of what passes as `guix style'. Cheers