Your message dated Thu, 21 Dec 2023 07:35:24 +0000
with message-id <[email protected]>
and subject line Bug#1056033: fixed in ghc 9.6.3-1~exp1
has caused the Debian Bug report #1056033,
regarding ghc: Please include patch to fix cabal arch detection for sparc64
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.)


-- 
1056033: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056033
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: ghc
Version: 9.4.7-1
Severity: normal
Tags: patch upstream
User: [email protected]
Usertags: sparc64
X-Debbugs-Cc: [email protected]

Hi!

As discussed in private, here is a patch which fixes the arch detection for
sparc64 in cabal. Previously, cabal treated "sparc64" as an alias for 32-bit
sparc which results in the GHC build process not being able to find the built
binaries as these are stored in a $ARCH-$OS subfolder.

The patch has already been pushed upstream, approved and should be merged within
the next hours after some more waiting [1].

The attached patch is a backported version of the patch which applies to GHC 
9.4.7.

Thanks,
Adrian

> [1] https://github.com/haskell/cabal/pull/9445

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- ghc-9.4.6.orig/libraries/Cabal/Cabal-syntax/src/Distribution/System.hs
+++ ghc-9.4.6/libraries/Cabal/Cabal-syntax/src/Distribution/System.hs
@@ -158,19 +158,17 @@ buildOS = classifyOS Permissive System.I
 -- ------------------------------------------------------------
 
 -- | These are the known Arches: I386, X86_64, PPC, PPC64, Sparc,
--- Arm, AArch64, Mips, SH, IA64, S390, S390X, Alpha, Hppa, Rs6000,
--- M68k, Vax, JavaScript and Wasm32.
---
+-- Sparc64, Arm, AArch64, Mips, SH, IA64, S390, S390X, Alpha, Hppa,
+-- Rs6000, M68k, Vax, JavaScript and Wasm32.
 -- The following aliases can also be used:
 --    * PPC alias: powerpc
 --    * PPC64 alias : powerpc64, powerpc64le
---    * Sparc aliases: sparc64, sun4
 --    * Mips aliases: mipsel, mipseb
 --    * Arm aliases: armeb, armel
 --    * AArch64 aliases: arm64
 --
 data Arch = I386  | X86_64  | PPC  | PPC64 | Sparc
-          | Arm   | AArch64 | Mips | SH
+          | Sparc64 | Arm   | AArch64 | Mips | SH
           | IA64  | S390    | S390X
           | Alpha | Hppa    | Rs6000
           | M68k  | Vax
@@ -185,7 +183,7 @@ instance NFData Arch where rnf = generic
 
 knownArches :: [Arch]
 knownArches = [I386, X86_64, PPC, PPC64, Sparc
-              ,Arm, AArch64, Mips, SH
+              ,Sparc64 ,Arm, AArch64, Mips, SH
               ,IA64, S390, S390X
               ,Alpha, Hppa, Rs6000
               ,M68k, Vax
@@ -197,7 +195,6 @@ archAliases Strict _       = []
 archAliases Compat _       = []
 archAliases _      PPC     = ["powerpc"]
 archAliases _      PPC64   = ["powerpc64", "powerpc64le"]
-archAliases _      Sparc   = ["sparc64", "sun4"]
 archAliases _      Mips    = ["mipsel", "mipseb"]
 archAliases _      Arm     = ["armeb", "armel"]
 archAliases _      AArch64 = ["arm64"]
--- ghc-9.4.6.orig/libraries/Cabal/Cabal/src/Distribution/Simple/PreProcess.hs
+++ ghc-9.4.6/libraries/Cabal/Cabal/src/Distribution/Simple/PreProcess.hs
@@ -717,6 +717,7 @@ platformDefines lbi =
       PPC         -> ["powerpc"]
       PPC64       -> ["powerpc64"]
       Sparc       -> ["sparc"]
+      Sparc64     -> ["sparc64"]
       Arm         -> ["arm"]
       AArch64     -> ["aarch64"]
       Mips        -> ["mips"]

--- End Message ---
--- Begin Message ---
Source: ghc
Source-Version: 9.6.3-1~exp1
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: Thu, 21 Dec 2023 09:21:59 +0200
Source: ghc
Architecture: source
Version: 9.6.3-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Debian Haskell Group 
<[email protected]>
Changed-By: Ilias Tsitsimpis <[email protected]>
Closes: 1053588 1056033 1056305
Changes:
 ghc (9.6.3-1~exp1) experimental; urgency=medium
 .
   [ Gianfranco Costamagna ]
   * New upstream release (Closes: #1053588)
   * drop patches now upstream
     - newer-llvm
     - fix-cross-compilation
     - fix-hs_cmpxchg64
     - fix-32-bit-unreg
 .
   [ Ilias Tsitsimpis ]
   * Backport upstream fixes
   * Bump hadrian dependency
   * Patch Cabal and add support for sparc64.
     Thanks to John Paul Adrian Glaubitz for the fix (Closes: #1056033).
   * Add support for hurd-i386.
     Thanks to Samuel Thibault for the fix (Closes: #1056305).
   * Update d/rules to work with newer version
Checksums-Sha1:
 af9ed8b89621bcfd7abbb7a0e797cb47738bd2bf 2733 ghc_9.6.3-1~exp1.dsc
 8d12ddbb7a47e28b1abf6fc64ad77b291abb99b6 29346888 ghc_9.6.3.orig.tar.xz
 f821cc452b874104586a94c681a3664f6200910b 870 ghc_9.6.3.orig.tar.xz.asc
 3d2ec2a1e531bf96fe296ecbe4a5ea224b0abd5b 92944 ghc_9.6.3-1~exp1.debian.tar.xz
 a3a460176b896a446a3861e922e55470f41890ad 12248 
ghc_9.6.3-1~exp1_source.buildinfo
Checksums-Sha256:
 947c97a3c51fc6c5ef737a37b3a74cefeaf4d9556da289f762316fbeba5a5a01 2733 
ghc_9.6.3-1~exp1.dsc
 dfcde67b4aa550a0b8a1a9bb8105835dc999fad6397cce33d72fd55d21eb77f5 29346888 
ghc_9.6.3.orig.tar.xz
 6eaba6f5cfac7d28486e741364baae4e49709f761ad99ebd4dc1d4113563f229 870 
ghc_9.6.3.orig.tar.xz.asc
 9361b690fcee5e2c5dc34a42ecd3414aab0235053198ef35143337436bb60d79 92944 
ghc_9.6.3-1~exp1.debian.tar.xz
 bb4532fdedc0c0221526091261d9c6121a2f49acd69c1054e9a2f8830f4bf482 12248 
ghc_9.6.3-1~exp1_source.buildinfo
Files:
 86a2c10157f287e84f9fc544c18e8466 2733 haskell optional ghc_9.6.3-1~exp1.dsc
 449bfdd5cd963382966bedad05f49d3e 29346888 haskell optional 
ghc_9.6.3.orig.tar.xz
 e6ab7b109f1cdb5307ada42344427fd3 870 haskell optional ghc_9.6.3.orig.tar.xz.asc
 e42f925d97050aef15b637dfb51acb86 92944 haskell optional 
ghc_9.6.3-1~exp1.debian.tar.xz
 f4deedc2d311aa5b670d313be2d501b7 12248 haskell optional 
ghc_9.6.3-1~exp1_source.buildinfo

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

iQJIBAEBCgAyFiEEJ9c8pfW11+AaUTb116hngMxkQDwFAmWD6F0UHGlsaWFzdHNp
QGRlYmlhbi5vcmcACgkQ16hngMxkQDyPsRAAk8QN86G8l/vHuyAWQao9iDWF5h6k
oV8UC4xjfDhjrmrR4zigSLnVdACTlFiX9S/9hUZ652A2Pdyu9z/DH4tYCkjhImSz
st4FGRuj58ifvyPWWd9SfCt/0PPU2Ku46jN4qZpfFEEwehJAHvFIFtZ6tVAvgvhJ
wHFJVvyrIrIFd+eY9XAIkgzVN5mIOeLH0jjoH3rd4wFgVPUhm5PqYkHohBBDhnPf
nYJHW7cyCirqrNlh7gQWVmnjFxpXZebZueBVSq+h6EEwOiPtRgvpLoTzZZ9EDqfY
P4ZifgVktaQ1imIHIeWZANF/izk7+GNImPyQOAi/w2P1Ac6GDywRCrtagC+AKQbc
qLC2T+cDMwTpTSk8pnT4WXfLkjQZkLf3/Qq1yQ6RrlBeAPcQgFFJciPSB/Ca+Pwm
zQwyBQMD8RttxIcRnVoGM6lp9Mssr2hMkSZ9MjLZ0bphXJy64nN7wrzKDEMYiLHG
I6tlxb2539SHyikiaM0D72xJgTgypSCn3GdT+IXEWAw39dVFJOg/KkxpNVEZPXg9
Cq/0KK080Xfgl+ZgEwHTzJWgQXbLdyQapK7vzLGXNCRzUJRbY1b2hfLZMlsJfdNk
XhyhnZMOKrRsgRGJJA71hfxHOsZEIDVj86qn0Rg0d2VFCkLC+HtaQBkeqw28BKsN
rTMEDLCT2TnUa7k=
=Xm7+
-----END 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