Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918891 - dev-lang/ghc version conflict
Summary: dev-lang/ghc version conflict
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-30 10:04 UTC by Einstok Fair
Modified: 2023-12-02 07:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Einstok Fair 2023-11-30 10:04:55 UTC
Some packages require old version of ghc:

 (dev-lang/ghc-9.2.8:0/9.2.8::gentoo, ebuild scheduled for merge) USE="elfutils gmp (-big-endian) -binary -doc -ghcbootstrap -ghcmakebinary -llvm -numa -profile -test -unregisterised" ABI_X86="(64)" 
conflicts with
    <dev-lang/ghc-9.1 required by (dev-haskell/mono-traversable-1.0.15.1:0/1.0.15.1::gentoo, ebuild scheduled for merge) USE="-doc -hscolour -profile -test" ABI_X86="(64)"
    ^             ^^^
    <dev-lang/ghc-9.1 required by (dev-haskell/stm-2.5.0.1-r1:0/2.5.0.1::gentoo, ebuild scheduled for merge) USE="-doc -hscolour -profile" ABI_X86="(64)"
    ^             ^^^
    <dev-lang/ghc-9.1:= required by (dev-haskell/blaze-builder-0.4.2.1:0/0.4.2.1::gentoo, ebuild scheduled for merge) USE="-doc -hscolour -profile -test" ABI_X86="(64)"
    ^             ^^^  
    <dev-lang/ghc-9.1 required by (dev-haskell/conduit-1.3.4.2:0/1.3.4.2::gentoo, ebuild scheduled for merge) USE="-doc -hscolour -profile -test" ABI_X86="(64)"
    ^             ^^^
    <dev-lang/ghc-9.1 required by (dev-haskell/entropy-0.4.1.6-r1:0/0.4.1.6::gentoo, ebuild scheduled for merge) USE="-doc -halvm -hscolour -profile" ABI_X86="(64)"
    ^             ^^^
    <dev-lang/ghc-9.1:= required by (dev-haskell/cereal-0.5.8.1:0/0.5.8.1::gentoo, ebuild scheduled for merge) USE="-doc -hscolour -profile -test" ABI_X86="(64)"
    ^             ^^^  


Reproducible: Always
Comment 1 Alfred Wingate 2023-11-30 10:37:23 UTC
This looks a case of mixing stable and unstable keywords. You are getting this conflict because you have unstable keywords accepted for ghc but not for these haskell packages. (I checked that every single of these in your output didn't have this restriction in the unstable version)
Comment 2 Einstok Fair 2023-11-30 10:54:46 UTC
I am unable to follow the instructions on page 

https://wiki.gentoo.org/wiki/Haskell

which says to add lines into package.accept_keywords

```
# Haskell has no stable keywords in Gentoo
dev-haskell/*

# Only needed if using ::haskell, but harmless if not.
# May as well put it in, just in case for future use.
*/*::haskell
```

for both lines portage says:

"invalid atom"

that's why I change packages to unstable version one by one
Comment 3 Einstok Fair 2023-11-30 10:57:52 UTC
# emerge -pv ghcide
--- Invalid atom in /var/db/repos/buildserver/profiles/x86_64/package.accept_keywords/haskell: dev-haskell/*
--- Invalid atom in /var/db/repos/buildserver/profiles/x86_64/package.accept_keywords/haskell: */*::haskell
Comment 4 Alfred Wingate 2023-12-02 01:05:30 UTC
/var/db/repos/buildserver/profiles/x86_64 ?

The wiki says to add them to /etc/portage/ where it would work.

Despite that I think that would formally a bug on portages end as the man page does say that it "has the same format and behavior as /etc/portage/package.accept_keywords". Which it clearly doesn't in regard to wildcards.
Comment 5 Einstok Fair 2023-12-02 07:42:20 UTC
ok. I will close this bug, and create a new one, about nonworking wilcards.
Comment 6 Einstok Fair 2023-12-02 07:45:35 UTC
it exists:
https://bugs.gentoo.org/447992