Subject: bug#62923: closed (Re: bug#62923: [PATCH core-updates] gnu: gcc-7, gcc-10, gcc-11: Hide packages.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 18 Apr 2023 11:28:02 +0000

Your bug report

#62923: [PATCH core-updates] gnu: gcc-7, gcc-10, gcc-11: Hide packages.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
62923: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62923
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#62923: [PATCH core-updates] gnu: gcc-7, gcc-10, gcc-11: Hide packages.
From: Ludovic Courtès <[email-masked]>
To: Simon Tournier <[email-masked]>
Cc: [email-masked]
Date: Tue, 18 Apr 2023 13:27:38 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Simon Tournier <[email-masked]> skribis:

> * gnu/packages/gcc.scm (gcc-7, gcc-10, gcc-11): Also inherit 'hidden?'
> properties.

Good catch.  Applied, thanks!

Ludo’.

Subject: [PATCH core-updates] gnu: gcc-7, gcc-10, gcc-11: Hide packages.
From: Simon Tournier <[email-masked]>
To: [email-masked]
Cc: Simon Tournier <[email-masked]>
Date: Tue, 18 Apr 2023 12:14:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/gcc.scm (gcc-7, gcc-10, gcc-11): Also inherit 'hidden?'
properties.
---
 gnu/packages/gcc.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Hi,

This fixes annoyance and does not trigger any rebuild.  The package 'gcc'
whatever its version should be visisble from the command line.  The initial,

    (hidden-package
     (package
       (name "gcc")
       (version "4.7.4")

had been lost when inheriting, introduced by commit
2576e2019d2f5049ad3dc51404c7e991af45d1d6:

        gnu: gcc: Add 'compiler-cpu-architectures' property.

        * gnu/packages/gcc.scm (%gcc-7.5-x86_64-micro-architectures)
        (%gcc-10-x86_64-micro-architectures): New variables.
        (gcc-7, gcc-10): Add 'properties' field.
        * gnu/packages/commencement.scm (make-gcc-toolchain): Likewise.

Cheers,
simon

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 5b1ef83ce6..b7d15d0730 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -632,7 +632,8 @@ (define-public gcc-7
      `((compiler-cpu-architectures
         ("aarch64" ,@%gcc-7.5-aarch64-micro-architectures)
         ("armhf" ,@%gcc-7.5-armhf-micro-architectures)
-        ("x86_64" ,@%gcc-7.5-x86_64-micro-architectures))))))
+        ("x86_64" ,@%gcc-7.5-x86_64-micro-architectures))
+       ,@(package-properties gcc-6)))))
 
 (define-public gcc-8
   (package
@@ -688,7 +689,8 @@ (define-public gcc-10
     `((compiler-cpu-architectures
        ("aarch64" ,@%gcc-10-aarch64-micro-architectures)
        ("armhf" ,@%gcc-10-armhf-micro-architectures)
-       ("x86_64" ,@%gcc-10-x86_64-micro-architectures))))))
+       ("x86_64" ,@%gcc-10-x86_64-micro-architectures))
+      ,@(package-properties gcc-8)))))
 
 (define-public gcc-11
   (package
@@ -722,7 +724,8 @@ (define patch
     `((compiler-cpu-architectures
        ("aarch64" ,@%gcc-11-aarch64-micro-architectures)
        ("armhf" ,@%gcc-11-armhf-micro-architectures)
-       ("x86_64" ,@%gcc-11-x86_64-micro-architectures))))))
+       ("x86_64" ,@%gcc-11-x86_64-micro-architectures))
+      ,@(package-properties gcc-8)))))
 
 (define-public gcc-12
   (package

base-commit: 39ec7b86c0730f07da01f008f85287c05efde1bc
-- 
2.38.1