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 sF62JhAkB2NlIQEAbAwnHQ (envelope-from ) for ; Thu, 25 Aug 2022 09:26:08 +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 +IHDJhAkB2MFVwEA9RJhRA (envelope-from ) for ; Thu, 25 Aug 2022 09:26:08 +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 4B50F1695B for ; Thu, 25 Aug 2022 09:26:08 +0200 (CEST) Received: from localhost ([::1]:47552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR7Ff-000582-Dc for larch@yhetil.org; Thu, 25 Aug 2022 03:26:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR7Ed-0004SM-HL for guix-patches@gnu.org; Thu, 25 Aug 2022 03:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR7Ed-0006BP-7o for guix-patches@gnu.org; Thu, 25 Aug 2022 03:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oR7Ec-0000Aw-Ud for guix-patches@gnu.org; Thu, 25 Aug 2022 03:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57086] [PATCH v3 1/7] gnu: Parameterize libgccjit. References: <4c232648145659a2c3edca6d32725d8120cc14d3.camel@gmail.com> In-Reply-To: <4c232648145659a2c3edca6d32725d8120cc14d3.camel@gmail.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 07:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57086 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57086@debbugs.gnu.org Received: via spool by 57086-submit@debbugs.gnu.org id=B57086.1661412276569 (code B ref 57086); Thu, 25 Aug 2022 07:25:02 +0000 Received: (at 57086) by debbugs.gnu.org; 25 Aug 2022 07:24:36 +0000 Received: from localhost ([127.0.0.1]:48742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR7EC-00008z-0F for submit@debbugs.gnu.org; Thu, 25 Aug 2022 03:24:36 -0400 Received: from mail-ej1-f66.google.com ([209.85.218.66]:46647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR7E7-00008M-NJ for 57086@debbugs.gnu.org; Thu, 25 Aug 2022 03:24:34 -0400 Received: by mail-ej1-f66.google.com with SMTP id bj12so20773017ejb.13 for <57086@debbugs.gnu.org>; Thu, 25 Aug 2022 00:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:content-transfer-encoding:to:subject:date :from:from:to:cc; bh=xExx3NulTbpca/TdIsdqSswbttaIPCfLC7LAFyjEI9o=; b=QKP7WqliXlT2Oq6kDXStWGLY/riVBESVfJUnZjT2m5MNg1Xzkn03Wn7OvQK40YKAjL DduPmcBM3RmnUR533H98d1TBATsunTGJStcYa8G0E9MxyYOjXv88BVRz2s3dXsbMy/ep fTWSs4fMmLfkXTIdqxw+SH7w1pPSD6UBmvd9fNBRRQe/T+PAfjqHJss2dBpxBEIvQW0S kxxwTtH7Fkm6628ZYCQHANXjuZ7lV8mG/oYBQc2iJ1fU/7ul+OuT44W6wBv46pm+MSkZ IL4XJETa0cfa4HUfrLLgO1WXNqxAQSxaoHZutSMdoB4Q19/PTSgyFnb3KUpR/zY8Hpg8 LUmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:content-transfer-encoding:to:subject:date :from:x-gm-message-state:from:to:cc; bh=xExx3NulTbpca/TdIsdqSswbttaIPCfLC7LAFyjEI9o=; b=xF/d4BecPigp3g1UtRp7oTKILopi29H4auWL+OOsxTBZDYngUMfBbs92D/zLggXMQ+ Eh9pj2jfjcqA8pkzRiP3Z91wZlm+AmQa5pjeCFusSmpWQvTgOdywoGiYcAcJsczo0MyR ggFcSiozXWCrvwYcAxVcnQcq8N70xdSenPnzSEkv+ikOV/tZNpsJZPMAyaJ8Sm52d9sS bQiyzp1Q6/BiOvMKU7bMsnDsfUcfTuBSnEE4I7Cul5qD6E+CV+mDUNMMCmAI8DlHiNLC 90h2ws4pOEeoOXWvJHhS9Ga0BYOYZgEfNEKss1XculbvC4UxRwsA6Ly1ACCnX8zVi/d9 Fi9A== X-Gm-Message-State: ACgBeo313yHnPITRUwiYC37jjxcPIZ80qDqO8TJBrk+PmhbUMgllDDE6 zDIJIFdFsGx/wSkQK5tF0NkWaT/wM+Q= X-Google-Smtp-Source: AA6agR5M+2A2bKaXsCxwXUTUmdo8/0MsX/TGUXL+CSceW11PwK19BBvCC9wgdNSSZ9jnkFGr0fwQHw== X-Received: by 2002:a17:907:2bd1:b0:73d:d154:8e42 with SMTP id gv17-20020a1709072bd100b0073dd1548e42mr1027026ejc.585.1661412266157; Thu, 25 Aug 2022 00:24:26 -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 g2-20020a170906538200b0073d62cc3270sm2019690ejo.118.2022.08.25.00.24.24 for <57086@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 00:24:24 -0700 (PDT) From: Liliana Marie Prikler Date: Fri, 5 Aug 2022 05:29:58 +0200 Content-Transfer-Encoding: 7bit Message-ID: <851f9ca3194c6b3c810d4c44fbd500072bda5de6.camel@gmail.com> 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+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=1661412368; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=xExx3NulTbpca/TdIsdqSswbttaIPCfLC7LAFyjEI9o=; b=uMvnpgu0AeawBsb1hhhT4BExkwkG8gGFd5deKFZWRf6JAEWLZZmi7EHBImG5gNa8ZX7BpZ KhThtjChtVTJrJfMLOgH/wdhAVI+dWoOhkhAOTDRsi5kYrnQfwf6euBKatmoZKFTQlOg2a 5kdrk5xoPDg4XSWHlBe9Xfc5T5T4mXx+IZwOxE/sIPqHG9cUSsc4Vi3aB8CoyIpr3iPrlK 2UpHjteBzB0Q1BDZtcFvnCaqZ0NaZwmLSWs1JPJd1NNGi7AIDB9KQ8nuFalS6BR/vy7JQ+ NeukTno6LFTzDGEf4JJUi9/rHuXsoU7FNv0VLMKHNZ/FQIqDRL63r+wiDsP1dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661412368; a=rsa-sha256; cv=none; b=WvJL5OPRQM2vH/TQQrCFdK0jQhqJaJgST1RxIjVvPRZwoZxqHjTGnp/e8WoA9cFHQatrVI cuXG9MxXBVRnNtbExBu5za3RNUHZntaWHnwMHYiKiaVYJSfAloYYpbhpGttVfn3bM6z4Bc ec0ZYfrypjJbF7YTqJ4vGaPAo7MgsDJO/0uFY5JstPmczKDDkKgKbzYXcG/hQudGXS+6Dq 8iw4IlR77ykTdf2urJ06952S/M2IGTyotHAVwSOJpDscUkf+Nldegt5LhCpmWrqTH6O+sy ctXZfe2VwdaFvjOGzjAnWiQSrpP52C2FeAqaaLyr29wyDGbzeMzCI0tc5Od2JQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QKP7Wqli; 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: 7.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QKP7Wqli; 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: 4B50F1695B X-Spam-Score: 7.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: h3Ei/zLe+/1T * gnu/packages/gcc.scm (make-libgccjit): New variable. (libgccjit): Define in terms of make-libgccjit. --- gnu/packages/gcc.scm | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 4c496e31b2..66f0766646 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -968,31 +968,33 @@ (define-public gdc-11 (custom-gcc gcc-11 "gdc" '("d") %generic-search-paths))) -(define-public libgccjit +(define-public (make-libgccjit gcc) (package - (inherit gcc-9) + (inherit gcc) (name "libgccjit") (outputs (delete "lib" (package-outputs gcc))) (properties (alist-delete 'hidden? (package-properties gcc))) (arguments - (substitute-keyword-arguments `(#:modules ((guix build gnu-build-system) - (guix build utils) - (ice-9 regex) - (srfi srfi-1) - (srfi srfi-26)) - ,@(package-arguments gcc)) + (substitute-keyword-arguments (package-arguments gcc) + ((#:modules _ '()) + '((guix build gnu-build-system) + (guix build utils) + (ice-9 regex) + (srfi srfi-1) + (srfi srfi-26))) ((#:configure-flags flags) - `(append `("--enable-host-shared" - ,(string-append "--enable-languages=jit")) + #~(cons* "--enable-host-shared" + "--enable-languages=jit" (remove (cut string-match "--enable-languages.*" <>) - ,flags))) + #$flags))) ((#:phases phases) - `(modify-phases ,phases - (add-after 'install 'remove-broken-or-conflicting-files - (lambda* (#:key outputs #:allow-other-keys) - (for-each delete-file - (find-files (string-append (assoc-ref outputs "out") "/bin") - ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)")))))))) + #~(modify-phases #$phases + (add-after 'install 'remove-broken-or-conflicting-files + (lambda* (#:key outputs #:allow-other-keys) + (for-each delete-file + (find-files + (string-append (assoc-ref outputs "out") "/bin") + ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)")))))))) (synopsis "GCC library generating machine code on-the-fly at runtime") (description "This package is part of the GNU Compiler Collection and provides an @@ -1003,6 +1005,8 @@ (define-public libgccjit compilers. The just-in-time (jit) part of the name is now something of a misnomer."))) +(define-public libgccjit (make-libgccjit gcc-9)) + (define (make-gccgo gcc) "Return a gccgo package based on GCC." (let ((gccgo (custom-gcc gcc "gccgo" '("go") %generic-search-paths))) -- 2.37.2