Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1056033: ghc: Please include patch to fix cabal arch detection for sparc64

0 views
Skip to first unread message

John Paul Adrian Glaubitz

unread,
Nov 16, 2023, 3:20:04 AM11/16/23
to
Source: ghc
Version: 9.4.7-1
Severity: normal
Tags: patch upstream
User: debian...@lists.debian.org
Usertags: sparc64
X-Debbugs-Cc: debian...@lists.debian.org

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
cabal-sparc64-support

Ilias Tsitsimpis

unread,
Dec 13, 2023, 11:50:05 AM12/13/23
to
Hi Adrian,

On Wed, Dec 13, 2023 at 04:14PM, John Paul Adrian Glaubitz wrote:
> On Thu, 2023-11-16 at 20:23 +0200, Ilias Tsitsimpis wrote:
> > Thanks for working on this. I fear that applying this patch will change
> > the ABI for Cabal, and hence we will have to rebuild every Haskell
> > package in Debian. Because of that, I plan on waiting for the current
> > transition to finish, and then include this patch in the next GHC
> > upload.
>
> Are you sure that this actually the case [1]?
>
> > [1] https://github.com/haskell/cabal/pull/9445#issuecomment-1811780089

In the issue they are discussing something different, whether they need
to bump the version of the API spec for Cabal.

What I meant is that modifying the code of any Haskell library (in our
case Cabal) changes the resulting ABI hash, and then we need to rebuild
any package that depends on it. In general this is not a big issue, we
would just rebuild everything, but I would like to avoid it now that we
are so close to finish this transition.

I have verified that applying your patch results in a different ABI hash
for libghc-cabal-dev. You can verify it yourself, apply the patch,
rebuild and compare the resulting binary packages.

Best,

--
Ilias
0 new messages