Subject: [PATCH v1] gnu: glibc/hurd: Hide to prevent warning
From: Jakob Kirsch <[email-masked]>
To: [email-masked]
Date: Tue, 18 Mar 2025 18:46:28 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

When dealing with the glibc package, you will often see the following warning:

warning: ambiguous package specification `glibc'
warning: choosing [email-masked] from gnu/packages/base.scm:915:2

This is due to the fact that Hurd glibc is exported. A simple fix is to declare it as a hidden-package.

* gnu/packages/base.scm: (glibc/hurd): Hide

Change-Id: I3785a2d35e1c9b4efa039dbba7f379ae052dc69a
---
 gnu/packages/base.scm | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 4c96ffa1a4..e8d502de8d 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1663,17 +1663,18 @@ (define-public which
     (license gpl3+))) ; some files are under GPLv2+

 (define-public glibc/hurd
-  (package/inherit glibc
-    (source
-     (origin
-       (inherit (package-source glibc))
-       (patches
-        (append (origin-patches (package-source glibc))
-                (search-patches "glibc-hurd-pthread_setcancelstate.patch"
-                                "glibc-hurd64-fault.patch"
-                                "glibc-hurd64-intr-msg-clobber.patch"
-                                "glibc-hurd64-sgms-context.patch"
-                                "glibc-hurd64-gcc-14.2-tls-bug.patch")))))))
+  (hidden-package
+    (package/inherit glibc
+      (source
+       (origin
+         (inherit (package-source glibc))
+         (patches
+          (append (origin-patches (package-source glibc))
+                  (search-patches "glibc-hurd-pthread_setcancelstate.patch"
+                                  "glibc-hurd64-fault.patch"
+                                  "glibc-hurd64-intr-msg-clobber.patch"
+                                  "glibc-hurd64-sgms-context.patch"
+                                  "glibc-hurd64-gcc-14.2-tls-bug.patch"))))))))

 (define-public glibc/hurd-headers
   (package/inherit glibc/hurd

base-commit: fa39695bbc0c5f79838cbca55d55eebd821a8efa
--
2.48.1