From unknown Mon Jun 23 07:49:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41428 <41428@debbugs.gnu.org> To: bug#41428 <41428@debbugs.gnu.org> Subject: Status: [PATCH 0/5] Wrappers for c compilers Reply-To: bug#41428 <41428@debbugs.gnu.org> Date: Mon, 23 Jun 2025 14:49:11 +0000 retitle 41428 [PATCH 0/5] Wrappers for c compilers reassign 41428 guix-patches submitter 41428 Ryan Prior severity 41428 normal tag 41428 patch wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 20:51:12 2020 Received: (at submit) by debbugs.gnu.org; 21 May 2020 00:51:12 +0000 Received: from localhost ([127.0.0.1]:54785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZQW-0004cp-Am for submit@debbugs.gnu.org; Wed, 20 May 2020 20:51:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:53038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZQT-0004cg-Gr for submit@debbugs.gnu.org; Wed, 20 May 2020 20:51:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbZQT-0007uH-5v for guix-patches@gnu.org; Wed, 20 May 2020 20:51:09 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:23956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbZQQ-0002pQ-36 for guix-patches@gnu.org; Wed, 20 May 2020 20:51:08 -0400 Date: Thu, 21 May 2020 00:51:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590022263; bh=NdJGKSN04ZDSlyGfHUmdQtwvyh5pXSEEaqpDAgfI2cY=; h=Date:To:From:Reply-To:Subject:From; b=lb+AqjP7iiFfKmhgipkJ/oV1fU0bPr4MlshlttRv2HO6XElCcCpcEce1mWL30C6+k aCYfbGCC0pJZOsmjuixM+5Zbkx1dCsMrNjycZOmWYtOmG5SbODG7T/2zZpF5lCafrt ABx2e3OmkErvPoblcWbLhbOSwG/bnHbnkKceWc78= To: guix-patches@gnu.org From: Ryan Prior Subject: [PATCH 0/5] Wrappers for c compilers Message-ID: <20200521005046.19712-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Received-SPF: pass client-ip=185.70.40.18; envelope-from=rprior@protonmail.com; helo=mail1.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/20 20:51:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) As an end-user, I want to create a manifest that to hack on some code where the upstream build system badly wants to use `cc' and provides no practical way to avoid this. At present, I have to create symlinks myself or patch th= e build system; either way is non-obvious to other people who might try and u= se my manifest when I share it. With this patch in Guix I can just specify `gcc-toolchain-wrapper' in my manifest and have that be the end of it. For consistency's sake I have appl= ied this to all other c compilers I could find in Guix as well. Ryan Prior (5): gnu: Add tcc-wrapper. gnu: Add pcc-wrapper. gnu: Add gcc-toolchain-wrapper. gnu: Add sdcc-wrapper. gnu: Add bcc-wrapper. gnu/packages/assembly.scm | 3 +++ gnu/packages/c.scm | 32 ++++++++++++++++++++++++++++++++ gnu/packages/commencement.scm | 3 +++ gnu/packages/sdcc.scm | 3 +++ 4 files changed, 41 insertions(+) --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 20:57:36 2020 Received: (at 41428) by debbugs.gnu.org; 21 May 2020 00:57:36 +0000 Received: from localhost ([127.0.0.1]:54801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWi-0004m3-Ia for submit@debbugs.gnu.org; Wed, 20 May 2020 20:57:36 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:64993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWg-0004ln-UP for 41428@debbugs.gnu.org; Wed, 20 May 2020 20:57:35 -0400 Date: Thu, 21 May 2020 00:57:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590022648; bh=f/39o9688EpwQpf7YSNwCPVlTOpswpHZNVCD0Ur/z9U=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=cy9CraKm1Ru8EL3c6TYflyr+s0EG18YRrSZrYZjvYfVHxQmhDKvkYh5tyZFH/hddq PXRAwMTzOg5mUHdrEIymY2kvSs7p/Z7P1qO1M4YTfuzM3ESMvjsFcqBSo0Skg5Khaf JlTvlab9sYbOem+oGf4Jw0z7pgm+CNX7DTPVEmVg= To: 41428@debbugs.gnu.org From: Ryan Prior Subject: [PATCH 2/5] gnu: Add pcc-wrapper. Message-ID: <20200521005700.19948-2-rprior@protonmail.com> In-Reply-To: <20200521005700.19948-1-rprior@protonmail.com> References: <20200521005700.19948-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41428 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/c.scm (pcc-wrapper): New variable. --- gnu/packages/c.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 757cfa7fba..e83a1d5c61 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -319,3 +319,4 @@ releases.") under the name @command{cc}."))))) =20 (define-public tcc-wrapper (wrap-cc tcc)) +(define-public pcc-wrapper (wrap-cc pcc)) --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 20:57:40 2020 Received: (at 41428) by debbugs.gnu.org; 21 May 2020 00:57:40 +0000 Received: from localhost ([127.0.0.1]:54804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWl-0004mJ-QR for submit@debbugs.gnu.org; Wed, 20 May 2020 20:57:40 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:21635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWk-0004ls-50 for 41428@debbugs.gnu.org; Wed, 20 May 2020 20:57:38 -0400 Date: Thu, 21 May 2020 00:57:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590022651; bh=sy0S6M7LQE+Pjv48bE8xwq9THI76Pj+vHj7fE9X3ba0=; h=Date:To:From:Reply-To:Subject:From; b=aVz2vf7v2Y0oy+Ms1NTvRIDiL+TYHPS8iRmJr82rujhJ0RugeJFpwUyfIjNs86fuX miRrv1gZtHGIJTOHBjiKopqkAgZlRZTm4NiusDxFvl9uj4Q1qEiNKoGQ7Wu+GhZ5AD Mvd6SsRKR8QDRPX6fTal8lur/tYDFr6hEDVbsO5s= To: 41428@debbugs.gnu.org From: Ryan Prior Subject: [PATCH 1/5] gnu: Add tcc-wrapper. Message-ID: <20200521005700.19948-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41428 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/c.scm (tcc-wrapper): New variable. * gnu/packages/c.scm (wrap-cc): New variable. --- gnu/packages/c.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 5718ec66ac..757cfa7fba 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -7,6 +7,7 @@ ;;; Copyright =C2=A9 2019 Guillaume Le Vaillant ;;; Copyright =C2=A9 2019 Andreas Enge ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright =C2=A9 2020 Ryan Prior ;;; ;;; This file is part of GNU Guix. ;;; @@ -288,3 +289,33 @@ address space pointers point to, or what locks a funct= ion acquires or releases.") (home-page "https://sparse.wiki.kernel.org/index.php/Main_Page") (license license:expat))) + +(define-public wrap-cc + (lambda* (cc #:optional + (bin (package-name cc)) + (name (string-append (package-name cc) "-wrapper"))) + (package/inherit cc + (name name) + (source #f) + (build-system trivial-build-system) + (outputs '("out")) + (native-inputs '()) + (inputs '()) + (propagated-inputs `(("cc" ,cc))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((bin-dir (string-append (assoc-ref %build-inputs "cc") "/= bin/")) + (wrapper-dir (string-append (assoc-ref %outputs "out") "/= bin/"))) + (mkdir-p wrapper-dir) + (symlink (string-append bin-dir ,bin) + (string-append wrapper-dir "cc")))))) + (synopsis (string-append "Wrapper for " bin)) + (description + (string-append + "Wraps " (package-name cc) " such that @command{" bin "} can be in= voked +under the name @command{cc}."))))) + +(define-public tcc-wrapper (wrap-cc tcc)) --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 20:57:56 2020 Received: (at 41428) by debbugs.gnu.org; 21 May 2020 00:57:56 +0000 Received: from localhost ([127.0.0.1]:54807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWp-0004mY-4Z for submit@debbugs.gnu.org; Wed, 20 May 2020 20:57:56 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:16717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWn-0004m2-Or for 41428@debbugs.gnu.org; Wed, 20 May 2020 20:57:42 -0400 Date: Thu, 21 May 2020 00:57:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590022656; bh=E/KW9OOCzhj+W/8Q1sUddLHSpUlxw4Tr2ZIY/QfXDuo=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=hWWdNLoxSmcFBWMycMi9UCG40i0i0b9CvVxC+A+snUmg8NdvHWorKxVrd1w/LdJ9E rWFxXN5C8maA/LZiZcA/BJCLFbGyCSJMY8qDkmRSLrcQLNyo9R6HC10dY1QE4hCQ3A i1p6e9p4fneZPi89PZXyzZ475d+HQA43o9Nl3S7k= To: 41428@debbugs.gnu.org From: Ryan Prior Subject: [PATCH 3/5] gnu: Add gcc-toolchain-wrapper. Message-ID: <20200521005700.19948-3-rprior@protonmail.com> In-Reply-To: <20200521005700.19948-1-rprior@protonmail.com> References: <20200521005700.19948-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41428 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/commencement.scm (gcc-toolchain-wrapper): New variable. --- gnu/packages/commencement.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 59ef5d078b..e6ef3c301c 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -3870,6 +3870,9 @@ binaries, plus debugging symbols in the @code{debug} = output), and Binutils.") (define-public gcc-toolchain (make-gcc-toolchain gcc-final)) =20 +(define-public gcc-toolchain-wrapper + (wrap-cc gcc-toolchain "gcc")) + (define-public gcc-toolchain-4.8 (make-gcc-toolchain gcc-4.8)) =20 --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 20:57:57 2020 Received: (at 41428) by debbugs.gnu.org; 21 May 2020 00:57:57 +0000 Received: from localhost ([127.0.0.1]:54811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZX2-0004n0-TB for submit@debbugs.gnu.org; Wed, 20 May 2020 20:57:57 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:53122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWp-0004mC-Hj for 41428@debbugs.gnu.org; Wed, 20 May 2020 20:57:43 -0400 Date: Thu, 21 May 2020 00:57:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590022657; bh=Q3nThYD68eeortyoIC3RiqDfNwFY6LnCk5f8lSmJGDA=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=Q/cQioeY9Yjx2UvQipJI1L/cXs4NZ3umv144d9V+4IWQ3Qk2gC2FuVSCjLG2TheX2 sTODNHW7TIaMHEAkfOa6Vda5ugvYW/F7V4o5bbwzNEmVWulD0NJVO0ZyvGkl0QMCnV bUIHRMuNuloss4WUmpBgoKGQ/00GerkJAeclarSg= To: 41428@debbugs.gnu.org From: Ryan Prior Subject: [PATCH 4/5] gnu: Add sdcc-wrapper. Message-ID: <20200521005700.19948-4-rprior@protonmail.com> In-Reply-To: <20200521005700.19948-1-rprior@protonmail.com> References: <20200521005700.19948-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41428 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/sdcc.scm (sdcc-wrapper): New variable. --- gnu/packages/sdcc.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/sdcc.scm b/gnu/packages/sdcc.scm index 6d05470101..a95ef2ac0f 100644 --- a/gnu/packages/sdcc.scm +++ b/gnu/packages/sdcc.scm @@ -20,6 +20,7 @@ (define-module (gnu packages sdcc) #:use-module (gnu packages bison) #:use-module (gnu packages boost) + #:use-module (gnu packages c) #:use-module (gnu packages flex) #:use-module (gnu packages python) #:use-module (gnu packages texinfo) @@ -68,3 +69,5 @@ HC08-based (hc08, s08), Zilog Z80-based MCUs (z80, z180, = gbz80, Rabbit Work is in progress on supporting the Microchip PIC16 and PIC18 targets. It can be retargeted for other microprocessors.") (license license:gpl2+))) + +(define-public sdcc-wrapper (wrap-cc sdcc)) --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 20:57:57 2020 Received: (at 41428) by debbugs.gnu.org; 21 May 2020 00:57:57 +0000 Received: from localhost ([127.0.0.1]:54813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZX3-0004n7-5N for submit@debbugs.gnu.org; Wed, 20 May 2020 20:57:57 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:24261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbZWw-0004mg-3b for 41428@debbugs.gnu.org; Wed, 20 May 2020 20:57:50 -0400 Date: Thu, 21 May 2020 00:57:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590022663; bh=g/IdfIrrwbTJsc1nIZ8XfaaQv218DCiyqFlXgbwa8Eo=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=V6n0CtNTvyoFyfjPoo8Hl7UVCvn/+Hpg4R60XtvzWFFNT3YrVNIOt80+aOm5CNoCb oQ67Kk0q/t7DtSsIzZ/I6VBwRg6q+pj8oz8u4pq5yQaCG6b64DxevW8U08rgEIbhhw GMl0mECMZ67Xae6ZPBKeOBYQ5Jv+ghzDwI8x0HV8= To: 41428@debbugs.gnu.org From: Ryan Prior Subject: [PATCH 5/5] gnu: Add bcc-wrapper. Message-ID: <20200521005700.19948-5-rprior@protonmail.com> In-Reply-To: <20200521005700.19948-1-rprior@protonmail.com> References: <20200521005700.19948-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41428 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/assembly.scm (bcc-wrapper): New variable. --- gnu/packages/assembly.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index c775603445..a8fe135ded 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm @@ -36,6 +36,7 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bison) + #:use-module (gnu packages c) #:use-module (gnu packages compression) #:use-module (gnu packages flex) #:use-module (gnu packages gettext) @@ -223,6 +224,8 @@ assembler, a C compiler and a linker. The assembler us= es Intel syntax (supported-systems '("i686-linux" "x86_64-linux")) (license license:gpl2+))) =20 +(define-public bcc-wrapper (wrap-cc dev86 "bcc" "bcc-wrapper")) + (define-public libjit (let ((commit "554c9f5c750daa6e13a6a5cd416873c81c7b8226")) (package --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Fri May 22 05:42:39 2020 Received: (at 41428) by debbugs.gnu.org; 22 May 2020 09:42:39 +0000 Received: from localhost ([127.0.0.1]:58079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc4CN-0006VT-7y for submit@debbugs.gnu.org; Fri, 22 May 2020 05:42:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc4CL-0006VE-QX for 41428@debbugs.gnu.org; Fri, 22 May 2020 05:42:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35456) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc4CG-0006JS-4X; Fri, 22 May 2020 05:42:32 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49064 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jc4CF-00022N-Ed; Fri, 22 May 2020 05:42:31 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ryan Prior Subject: Re: [bug#41428] [PATCH 0/5] Wrappers for c compilers References: <20200521005046.19712-1-rprior@protonmail.com> Date: Fri, 22 May 2020 11:42:29 +0200 In-Reply-To: <20200521005046.19712-1-rprior@protonmail.com> (Ryan Prior's message of "Thu, 21 May 2020 00:51:00 +0000") Message-ID: <87d06wb916.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41428 Cc: 41428@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Ryan, Ryan Prior skribis: > As an end-user, I want to create a manifest that to hack on some code whe= re > the upstream build system badly wants to use `cc' and provides no practic= al > way to avoid this. At present, I have to create symlinks myself or patch = the > build system; either way is non-obvious to other people who might try and= use > my manifest when I share it. > > With this patch in Guix I can just specify `gcc-toolchain-wrapper' in my > manifest and have that be the end of it. For consistency's sake I have ap= plied > this to all other c compilers I could find in Guix as well. A long time ago, we decided against it, which is not to say that this is set in stone but at least there=E2=80=99s a discussion to be had. :-) For packages, the workaround usually boils down to setting shell or Makefile variable =E2=80=98CC=E2=80=99 to =E2=80=9Cgcc=E2=80=9D or similar.= As for users, they can have a shell alias. In a nutshell, the reasons to not have a =E2=80=98cc=E2=80=99 program are t= hat (1) it=E2=80=99s easily worked around, and (2) our guideline is to follow what upstream does, and none of these compilers provides a =E2=80=98cc=E2=80=99 program. = (There are threads in the mailing list archives discussing this.) I=E2=80=99m personally in favor of the status quo on this topic. Thoughts? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri May 22 14:27:34 2020 Received: (at 41428) by debbugs.gnu.org; 22 May 2020 18:27:34 +0000 Received: from localhost ([127.0.0.1]:60366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcCOL-0003K4-WF for submit@debbugs.gnu.org; Fri, 22 May 2020 14:27:34 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:20905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcCOJ-0003Jq-PX for 41428@debbugs.gnu.org; Fri, 22 May 2020 14:27:32 -0400 Date: Fri, 22 May 2020 18:27:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1590172045; bh=WJb9CXnwmX14+xvkXbZG+5SRXO5SEHnL0PT2RDgg9/Y=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ZKNePg1FzOqtzGUoyAax65ovYztVSkq1KdEmCXiuGMFDo22MX0ZYf9VX9qqEHDcxo GWu2oaHP/lCmzFM+uP5HgxdQ8UBQpW2Ww/syKCa2X2LP/Ec4oJnFp/4rn10/MV0tIB bkNd/e9m3VSfVr481P2AB+/MKA/5SD9QMyLlmCvk= To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= From: Ryan Prior Subject: Re: [bug#41428] [PATCH 0/5] Wrappers for c compilers Message-ID: In-Reply-To: <87d06wb916.fsf@gnu.org> References: <20200521005046.19712-1-rprior@protonmail.com> <87d06wb916.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41428 Cc: 41428@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Friday, May 22, 2020 9:42 AM, Ludovic Court=C3=A8s wrote: > For packages, the workaround usually boils down to setting shell or Makef= ile variable =E2=80=98CC=E2=80=99 to =E2=80=9Cgcc=E2=80=9D or similar. Agreed, packages have what they need already. > As for users, they can have a shell alias. At present, there's no way to specify a shell alias as part of an environme= nt/profile manifest. These patches would fill that gap for this narrow use-= case, as the `python-wrapper` package fills it for another narrow use case. > it=E2=80=99s easily worked around Fair. > our guideline is to follow what upstream does, and none of these compiler= s provides a =E2=80=98cc=E2=80=99 program. (There are > threads in the mailing list archives discussing this.) I find this persuasive locally, but in a global sense it results in a less = compelling end-user experience which outweighs my partiality towards this g= uideline. > I=E2=80=99m personally in favor of the status quo on this topic. Thank you for weighing in! My use-case, my vision, is that I want to provide end-users an environment = manifest such that `guix environment -m build-env.scm` sets everything up s= o that `make && make check` succeed. I created these wrappers in service of this vision, to save end-users the t= rouble of creating and managing aliases on a per-environment basis when the= y already don't have to do that using the working set they're familiar with= . I want to position Guix as a total win for tooling simplicity; but a lot = of small complexities, each of which is easily worked-around, add up quickl= y to undermine my message. I would lose all interest in this patch set if I had a more general purpose= way of extending a manifest with more things than just packages. I picture= , for example, a manifest with three parts: - packages - env variables - aliases Right now afaict a manifest only has the first of those things. Given I've = got this nice packagehammer, I'm inclined to insist upon the usefulness of = this patch set as a means of turning `cc` into a nail. But I'd be happier to use a better tool anyhow. What do y'all guix think is= the best pattern to apply for my use case? Sincerely, Ryan From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 17:02:32 2020 Received: (at 41428) by debbugs.gnu.org; 27 May 2020 21:02:32 +0000 Received: from localhost ([127.0.0.1]:50107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1je3C4-0005Hh-Aa for submit@debbugs.gnu.org; Wed, 27 May 2020 17:02:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1je3C2-0005HU-IX for 41428@debbugs.gnu.org; Wed, 27 May 2020 17:02:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45297) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1je3Bw-0005eu-J8; Wed, 27 May 2020 17:02:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37136 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1je3BW-00053B-SI; Wed, 27 May 2020 17:02:18 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ryan Prior Subject: Re: [bug#41428] [PATCH 0/5] Wrappers for c compilers References: <20200521005046.19712-1-rprior@protonmail.com> <87d06wb916.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Prairial an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 27 May 2020 23:01:57 +0200 In-Reply-To: (Ryan Prior's message of "Fri, 22 May 2020 18:27:17 +0000") Message-ID: <875zchhz22.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41428 Cc: 41428@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ryan Prior skribis: > My use-case, my vision, is that I want to provide end-users an environmen= t manifest such that `guix environment -m build-env.scm` sets everything up= so that `make && make check` succeed. > > I created these wrappers in service of this vision, to save end-users the= trouble of creating and managing aliases on a per-environment basis when t= hey already don't have to do that using the working set they're familiar wi= th. I want to position Guix as a total win for tooling simplicity; but a lo= t of small complexities, each of which is easily worked-around, add up quic= kly to undermine my message. > > I would lose all interest in this patch set if I had a more general purpo= se way of extending a manifest with more things than just packages. I pictu= re, for example, a manifest with three parts: > > - packages > - env variables > - aliases > > Right now afaict a manifest only has the first of those things. Given I'v= e got this nice packagehammer, I'm inclined to insist upon the usefulness o= f this patch set as a means of turning `cc` into a nail. I understand your goal and I agree that it=E2=80=99s good to avoid building= a pile of small complexities that all add up. I don=E2=80=99t think lack of =E2=80=98cc=E2=80=99 is one them though. Fir= st, because it=E2=80=99s a developer tool, and developers will know they can type =E2=80=98gcc=E2=80= =99, =E2=80=98clang=E2=80=99, or whatever, create an alias, etc. Second, because most build systems (Autoconf-generated =E2=80=98configure=E2=80=99 scripts, CMake) accommodate= the lack of =E2=80=98cc=E2=80=99, which thus goes unnoticed. My 2=C2=A2! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 12 12:12:57 2020 Received: (at control) by debbugs.gnu.org; 12 Jun 2020 16:12:58 +0000 Received: from localhost ([127.0.0.1]:40478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjmIb-0007QL-Nj for submit@debbugs.gnu.org; Fri, 12 Jun 2020 12:12:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjmIZ-0007Q5-TL for control@debbugs.gnu.org; Fri, 12 Jun 2020 12:12:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38477) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjmIU-0002F3-ND for control@debbugs.gnu.org; Fri, 12 Jun 2020 12:12:50 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=55076 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jjmIS-0004as-Pq for control@debbugs.gnu.org; Fri, 12 Jun 2020 12:12:49 -0400 Date: Fri, 12 Jun 2020 18:12:46 +0200 Message-Id: <87a7185kld.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #41428 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 41428 wontfix close 41428 quit From unknown Mon Jun 23 07:49:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 11 Jul 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator