Subject: [bug#38636] [PATCH] gnu: gfortran: change to a hidden package

From: Konrad Hinsen <[email-masked]>
Date: Mon, 16 Dec 2019 12:18:52 +0100

* gnu/packages/gcc.scm (gfortran-4.8): hidden package.
* gnu/packages/gcc.scm (gfortran-4.9): hidden package.
* gnu/packages/gcc.scm (gfortran-5): hidden package.
* gnu/packages/gcc.scm (gfortran-6): hidden package.
* gnu/packages/gcc.scm (gfortran-7): hidden package.
* gnu/packages/gcc.scm (gfortran-8): hidden package.
* gnu/packages/gcc.scm (gfortran-9): hidden package.
---
 gnu/packages/gcc.scm | 35 +++++++++++++++++++++--------------
 1 file changed, 21 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index bda6a2b48a..29b9d34569 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -649,32 +649,39 @@ as the 'native-search-paths' field."
          (files '("lib" "lib64")))))
 
 (define-public gfortran-4.8
-  (custom-gcc gcc-4.8 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-4.8 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran-4.9
-  (custom-gcc gcc-4.9 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-4.9 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran-5
-  (custom-gcc gcc-5 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-5 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran-6
-  (custom-gcc gcc-6 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-6 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran-7
-  (custom-gcc gcc-7 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-7 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran-8
-  (custom-gcc gcc-8 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-8 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran-9
-  (custom-gcc gcc-9 "gfortran" '("fortran")
-              %generic-search-paths))
+  (hidden-package
+   (custom-gcc gcc-9 "gfortran" '("fortran")
+               %generic-search-paths)))
 
 (define-public gfortran
   ;; Note: Update this when GCC changes!  We cannot use
-- 
2.24.1