Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863686 - dev-lang/ghc-9.0.2[ghcbootstrap]: bundles third-party blob libraries/containers/containers/dist-install/build/libHScontainers-0.6.4.1-ghc9.0.2.so
Summary: dev-lang/ghc-9.0.2[ghcbootstrap]: bundles third-party blob libraries/containe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-08-05 01:02 UTC by Luke-Jr
Modified: 2022-08-18 18:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.zst,143.09 KB, application/zstd)
2022-08-05 01:02 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2022-08-05 01:02:03 UTC
Created attachment 797797 [details]
build log

Note my haskell stuff in general seems fairly broken right now (haskell-updater fails, see bug #863497).
Comment 1 Jack Todaro 2022-08-05 01:19:03 UTC
Your build.log suggests you have USE=ghcbootstrap enabled, which should not be the default way of building ghc (we only use it when testing newer ghc versions and building bootstrap binaries). Does it work if you disable this flag? Or have you enabled it because the bundled binary didn't work for you?
Comment 2 Luke-Jr 2022-08-05 01:53:20 UTC
(In reply to Jack Todaro from comment #1)
> Your build.log suggests you have USE=ghcbootstrap enabled, which should not
> be the default way of building ghc (we only use it when testing newer ghc
> versions and building bootstrap binaries). Does it work if you disable this
> flag? Or have you enabled it because the bundled binary didn't work for you?

I do not run third-party binaries ever.
Comment 3 Luke-Jr 2022-08-16 00:23:16 UTC
This is due to a blob accidentally bundled by upstream (and my bashrc that denies access to it).

Fix should be to delete the blob in pkg_prepare so it gets compiled with GHC.
Comment 4 Larry the Git Cow gentoo-dev 2022-08-18 18:45:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b796a76ef7f778ecd176c8dddefb9ab9bb20c56d

commit b796a76ef7f778ecd176c8dddefb9ab9bb20c56d
Author:     matoro <matoro@users.noreply.github.com>
AuthorDate: 2022-08-16 02:19:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-18 18:44:43 +0000

    dev-lang/ghc: remove prebuilt libHScontainers from sources
    
    At release, a prebuilt x86 binary for the libHScontainers library was
    accidentally included in the source tarball.  This was noticed by the
    Fedora packagers here:
    https://www.mail-archive.com/search?l=ghc-devs@haskell.org&q=subject:%22Re%5C%3A+%5C%5BHaskell%5C%5D+%5C%5BANNOUNCE%5C%5D+GHC+9.0.2+released%22&o=newest&f=1
    but no action was taken by upstream, so they are patching it out in
    their build recipe:
    https://src.fedoraproject.org/rpms/ghc9.0/blob/rawhide/f/ghc9.0.spec#_327
    We should do the same.  From looking at upstream source releases, more
    recent versions like the 9.2 branch do not have the same mistake, so
    this is specific to 9.0.
    
    Also fixes an incorrect hash that was somehow committed for the ppc64le
    binary.
    
    Closes: https://bugs.gentoo.org/863686
    Closes: https://github.com/gentoo/gentoo/pull/26876
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/ghc/Manifest         | 2 +-
 dev-lang/ghc/ghc-9.0.2.ebuild | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)