GNU bug report logs - #77103
[PATCH v1] gnu: glibc/hurd: Hide to prevent warning

Previous Next

Package: guix-patches;

Reported by: Jakob Kirsch <jakob.kirsch <at> web.de>

Date: Tue, 18 Mar 2025 17:48:03 UTC

Severity: normal

Tags: patch

Done: Simon Tournier <zimon.toutoune <at> gmail.com>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Simon Tournier <zimon.toutoune <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#77103: closed ([PATCH v1] gnu: glibc/hurd: Hide to prevent
 warning)
Date: Mon, 25 Aug 2025 10:01:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 25 Aug 2025 11:47:56 +0200
with message-id <87349flokz.fsf <at> gmail.com>
and subject line Re: [bug#77103] [PATCH v1] gnu: glibc/hurd: Hide to prevent warning
has caused the debbugs.gnu.org bug report #77103,
regarding [PATCH v1] gnu: glibc/hurd: Hide to prevent warning
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
77103: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77103
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jakob Kirsch <jakob.kirsch <at> web.de>
To: guix-patches <at> gnu.org
Subject: [PATCH v1] gnu: glibc/hurd: Hide to prevent warning
Date: Tue, 18 Mar 2025 18:46:28 +0100
When dealing with the glibc package, you will often see the following warning:

warning: ambiguous package specification `glibc'
warning: choosing glibc <at> 2.39 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



[Message part 3 (message/rfc822, inline)]
From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: yelninei <at> tutamail.com
Cc: Jakob Kirsch <jakob.kirsch <at> web.de>, 77103 <77103-done <at> debbugs.gnu.org>,
 Janneke Nieuwenhuizen <janneke <at> gnu.org>
Subject: Re: [bug#77103] [PATCH v1] gnu: glibc/hurd: Hide to prevent warning
Date: Mon, 25 Aug 2025 11:47:56 +0200
Hi,

On Sat, 23 Aug 2025 at 15:16, yelninei--- via Guix-patches via <guix-patches <at> gnu.org> wrote:

> I don't think this is an issue currently but it might become one again
> when additional patches are added to glibc/hurd  

Well, I propose to close this patch until the issue potentially shows up
again. :-)

Once the issue appears again, maybe open a Pull Request on Codeberg
referencing this past thread.

Feel free to reopen if I’m missing something.

Cheers,
simon


This bug report was last modified 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.