Your message dated Sun, 15 Mar 2026 10:49:18 +0000
with message-id <[email protected]>
and subject line Bug#1128371: fixed in ghc 9.10.3-4
has caused the Debian Bug report #1128371,
regarding ghc: Hurd fixes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1128371: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128371
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ghc
Version: 9.6.6-4
Severity: important
Tags: patch upstream
Forwarded: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15319

Hello,

A few patches are needed to fix building ghc on hurd-any. The attached
three patches have already been applied upstream, could you apply them
to the Debian package?

Thanks,
Samuel

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'proposed-updates'), (500, 'oldstable-debug'), (500, 'oldoldstable'), (500, 
'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.19.0 (SMP w/22 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghc depends on:
ii  dpkg            1.23.5
ii  gcc             4:15.2.0-5
ii  libbsd-dev      0.12.2-2+b1
ii  libc6           2.42-11+b1
ii  libc6-dev       2.42-11+b1
ii  libffi-dev      3.5.2-3+b1
ii  libffi8         3.5.2-3+b1
ii  libgmp-dev      2:6.3.0+dfsg-5+b1
ii  libgmp10        2:6.3.0+dfsg-5+b1
ii  libncurses-dev  6.6+20251231-1
ii  libnuma-dev     2.0.19-1+b1
ii  libnuma1        2.0.19-1+b1
ii  libtinfo6       6.6+20251231-1

Versions of packages ghc recommends:
ii  libstdc++-14-dev  14.3.0-12

Versions of packages ghc suggests:
pn  ghc-doc   <none>
pn  ghc-prof  <none>
ii  llvm-18   1:18.1.8-20+b2
ii  perl      5.40.1-7

-- no debconf information
commit bf4694e9d10b7d9898ed1e3cd7ae115fd33ac725
Author: Samuel Thibault <[email protected]>
Date:   Sat Jan 10 15:53:10 2026 +0100

    Fix linking against libm by moving the -lm option
    
    For those systems that need -lm for getting math functions, this is
    currently added on the link line very early, before the object files being
    linked together. Newer toolchains enable --as-needed by default, which means
    -lm is ignored at that point because no object requires a math function
    yet. With such toolchains, we thus have to add -lm after the objects, so the
    linker actually includes libm in the link.

---
 compiler/GHC/Linker/Dynamic.hs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15319

--- a/compiler/GHC/Linker/Dynamic.hs
+++ b/compiler/GHC/Linker/Dynamic.hs
@@ -223,7 +223,6 @@ linkDynLib logger tmpfs dflags0 unit_env
 
             runLink logger tmpfs linker_config (
                     map Option verbFlags
-                 ++ libmLinkOpts platform
                  ++ [ Option "-o"
                     , FileOption "" output_fn
                     ]
@@ -234,6 +233,7 @@ linkDynLib logger tmpfs dflags0 unit_env
                     -- Solaris 10 doesn't support the latter:
                  ++ [ Option ("-Wl,-h," ++ takeFileName output_fn) ]
                  ++ extra_ld_inputs
+                 ++ libmLinkOpts platform
                  ++ map Option lib_path_opts
                  ++ map Option pkg_lib_path_opts
                  ++ map Option pkg_link_opts
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15318

+

>From 3939a8bf93e27d8151aa1d92bf3ce10bbbc96a72 Mon Sep 17 00:00:00 2001
From: Samuel Thibault <[email protected]>
Date: Sun, 15 Sep 2024 15:57:52 +0200
Subject: [PATCH] GNU/Hurd: Add getExecutablePath support

GNU/Hurd exposes it as /proc/self/exe just like on Linux.
---
 .../src/GHC/Internal/System/Environment/ExecutablePath.hsc  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: 
ghc-9.10.3/libraries/ghc-internal/src/GHC/Internal/System/Environment/ExecutablePath.hsc
===================================================================
--- 
ghc-9.10.3.orig/libraries/ghc-internal/src/GHC/Internal/System/Environment/ExecutablePath.hsc
+++ 
ghc-9.10.3/libraries/ghc-internal/src/GHC/Internal/System/Environment/ExecutablePath.hsc
@@ -51,7 +51,7 @@ import GHC.Internal.Foreign.Ptr
 import GHC.Internal.Foreign.Storable
 import GHC.Internal.System.IO.Error (isDoesNotExistError)
 import GHC.Internal.System.Posix.Internals
-#elif defined(linux_HOST_OS)
+#elif defined(linux_HOST_OS) || defined(gnu_HOST_OS)
 import GHC.Internal.Data.Functor
 import GHC.Internal.Data.List (isSuffixOf)
 import GHC.Internal.Foreign.C.Types
@@ -200,9 +200,9 @@ executablePath = Just (fmap Just getExec
       | otherwise             = throw e
 
 
--------------------------------------------------------------------------------
--- Linux / Solaris
+-- Linux / Solaris / Hurd
 
-#elif defined(linux_HOST_OS) || defined(solaris2_HOST_OS)
+#elif defined(linux_HOST_OS) || defined(solaris2_HOST_OS) || 
defined(gnu_HOST_OS)
 
 foreign import ccall unsafe "readlink"
     c_readlink :: CString -> CString -> CSize -> IO CInt
@@ -219,7 +219,7 @@ readSymbolicLink file =
                    c_readlink s buf 4096
             peekFilePathLen (buf,fromIntegral len)
 
-#  if defined(linux_HOST_OS)
+#  if defined(linux_HOST_OS) || defined(gnu_HOST_OS)
 getExecutablePath = readSymbolicLink $ "/proc/self/exe"
 
 executablePath = Just (check <$> getExecutablePath) where
commit 95773d289c62373772f676df91c1278b7d382e30
Author: Samuel Thibault <[email protected]>
Date:   Sat Jan 10 15:59:18 2026 +0100

    Fix the OS string encoding for GNU/Hurd
    
    Following https://github.com/haskell/cabal/pull/9434/files , and as seen
    in the various gnu_HOST_OS usages in the source code, it is expected that
    GNU/Hurd is advertised as "gnu", like the autotools do.

https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15320
https://github.com/haskell/cabal/pull/11401

--- a/libraries/Cabal/Cabal/src/Distribution/Simple/PreProcess.hs
+++ b/libraries/Cabal/Cabal/src/Distribution/Simple/PreProcess.hs
@@ -780,7 +780,7 @@ platformDefines lbi =
       Android -> ["android"]
       Ghcjs -> ["ghcjs"]
       Wasi -> ["wasi"]
-      Hurd -> ["hurd"]
+      Hurd -> ["gnu"]
       Haiku -> ["haiku"]
       OtherOS _ -> []
     archStr = case hostArch of
--- a/libraries/ghc-platform/src/GHC/Platform/ArchOS.hs
+++ b/libraries/ghc-platform/src/GHC/Platform/ArchOS.hs
@@ -157,7 +157,7 @@ stringEncodeOS = \case
   OSHaiku     -> "haiku"
   OSQNXNTO    -> "nto-qnx"
   OSAIX       -> "aix"
-  OSHurd      -> "hurd"
+  OSHurd      -> "gnu"
   OSWasi      -> "wasi"
   OSGhcjs     -> "ghcjs"
 

--- End Message ---
--- Begin Message ---
Source: ghc
Source-Version: 9.10.3-4
Done: Ilias Tsitsimpis <[email protected]>

We believe that the bug you reported is fixed in the latest version of
ghc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ilias Tsitsimpis <[email protected]> (supplier of updated ghc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 07 Mar 2026 19:29:27 +0200
Source: ghc
Architecture: source
Version: 9.10.3-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group 
<[email protected]>
Changed-By: Ilias Tsitsimpis <[email protected]>
Closes: 1125305 1125455 1128371
Changes:
 ghc (9.10.3-4) unstable; urgency=medium
 .
   [ John Paul Adrian Glaubitz ]
   * Build with -optc-no-integrated-cpp on hppa
   * Build with --enable-ld-override on loong64 (Closes: #1125455)
   * Drop --enable-unregisterised on loong64 after bootstrap
   * Re-enable patch to pass -mcmodel=medium to LLVM backend on loong64
   * Re-enable patch to pass -mcmodel=medium to CC on loong64
   * Stop passing -optc-mcmodel=medium in EXTRA_HADRIAN_FLAGS on loong64
   * Update patch to pass -mcmodel=medium to LLVM backend on loong64
 .
   [ Ilias Tsitsimpis ]
   * Fix determinism of linker arguments (Closes: #1125305)
   * Bump standards version to 4.7.3
   * Bump debhelper compat to 13
   * Add bash completion
   * Backport patches to build on hurd-any (Closes: #1128371)
   * Build-Depend on pkgconf instead of pkg-config
Checksums-Sha1:
 8132312db5818b510e7054ec8e07192db79cee53 2842 ghc_9.10.3-4.dsc
 8051b7d36542654c9ecdc224f5b44802f78517fd 67172 ghc_9.10.3-4.debian.tar.xz
 a3f2cb3684f5d20e2141bfdc991a1211266489ee 6200 ghc_9.10.3-4_source.buildinfo
Checksums-Sha256:
 deb3fa991632a0d756b12bb1aeb893e552c03e136810d0ffa80025d8746edb42 2842 
ghc_9.10.3-4.dsc
 f3c51edac5d0d64da10b0e289f3bb3a23105d31b06df9a9e5b6732220ecc61a7 67172 
ghc_9.10.3-4.debian.tar.xz
 4374bec50f79c804d9078373484ab2f8b4648271d1a1321030eea899462f248d 6200 
ghc_9.10.3-4_source.buildinfo
Files:
 754c61c3a37453f6ec550aed112a0400 2842 haskell optional ghc_9.10.3-4.dsc
 04b3177543a50183413c09730c37c85f 67172 haskell optional 
ghc_9.10.3-4.debian.tar.xz
 78d1b5dff7527ce491e7ce16f7f9106e 6200 haskell optional 
ghc_9.10.3-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEJ9c8pfW11+AaUTb116hngMxkQDwFAmm2i2QUHGlsaWFzdHNp
QGRlYmlhbi5vcmcACgkQ16hngMxkQDwb9hAAi2J4zNlGYP8MxXIlp00Z2wvQvqsC
Vupt+xrScP+jK5+YSY7FKiyGvZKDudKjZ0UsQTJZyujjvltjl7Z584y2NlKrOsRx
HVtWGVLHCW2NwxEzX1+T+Txdnrh4gexPOhv1Mit5vixwRCdi157BANp+lKSkAa9M
aEw9JkcK2lcFWN1Icm4j/ukGWTzUt+/jPCkjXxGhCiOIO07w+8XY3ggM7/FyDIvR
6iLefPZkYiIBIvdxU51l124kBiqtER7MwMOwHa0YTmL+yHTMXPzvRVbYPSvkzgXy
xLYTobyVTESJgztzXol6i4XoClsQZIs2Ve8X7Mb39FCXuHjUiPiDn7ROJ3TPGhPB
WYBBNcr7LdC7xPcnzuffDfdX6g/j9c8zI9ODKiCj0JJte9/p7clmeU075A96k6AI
eXUGQeHXG9TgahT5T/eWgDNKS6aTMkf/UonzrQTqlyndVf3qAuKf4SOV1XaAZ6yO
UQoqxSyaodM6tGXadQgPPT00O2nSre1cK61QtxQ2hh66VRjNvariJW2VVeS13S+F
qt8Z2K4cbSEixx124LYx61ri20zEP/LahRXck9a149dKUjsXBz37EAF4r6mVRXkw
AXoaTthE2EZusiLI3vrpnDGJqnhqwBK1eZa4lu7ssVBxy2vyBleQZbYBvxfbvn9v
BymhdB6LkLTt+6E=
=MN9L
-----END PGP SIGNATURE-----

Attachment: pgpC1_LhkYU75.pgp
Description: PGP signature


--- End Message ---
_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-haskell-maintainers

Reply via email to