Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802771 - dev-haskell/text-1.2.4.1 - * Ebuild author forgot an entry in CABAL_CORE_LIB_GHC_PV=PM:8.10.3 PM:8.10.4 PM:8.10.5 PM:9.0.1 PM:999
Summary: dev-haskell/text-1.2.4.1 - * Ebuild author forgot an entry in CABAL_CORE_LIB...
Status: RESOLVED FIXED
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:
: 802738 802747 802750 802795 802837 802858 802870 802891 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-18 16:25 UTC by Toralf Förster
Modified: 2022-07-24 06:37 UTC (History)
9 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.55 KB, text/plain)
2021-07-18 16:25 UTC, Toralf Förster
Details
dev-haskell:text-1.2.4.1:20210718-162054.log (dev-haskell:text-1.2.4.1:20210718-162054.log,27.03 KB, text/plain)
2021-07-18 16:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,17.96 KB, text/plain)
2021-07-18 16:25 UTC, Toralf Förster
Details
environment (environment,74.59 KB, text/plain)
2021-07-18 16:25 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.77 KB, application/x-bzip)
2021-07-18 16:25 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.54 KB, application/x-bzip)
2021-07-18 16:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-07-18 16:25:40 UTC
cannot know target platform so guessing target == host (native compiler).
 * Cabal package 'text-1.2.4.1' is shipped with 'PM:8.10.4-r1' ('8.10.4').
 * Ebuild author forgot an entry in CABAL_CORE_LIB_GHC_PV='PM:8.10.3 PM:8.10.4 PM:8.10.5 PM:9.0.1 PM:9999'.
 * Found in /usr/lib64/ghc-8.10.4/package.conf.d.initial.
 * ERROR: dev-haskell/text-1.2.4.1::gentoo failed (install phase):
 *   (no error message)
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j3-20210718-120556

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  HEAD of ::gentoo
commit 6ef70423d578bba7f27b67e7bf81f60a9222a582
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jul 18 14:52:06 2021 +0000

    2021-07-18 14:52:05 UTC

emerge -qpvO dev-haskell/text
[ebuild  N    ] dev-haskell/text-1.2.4.1  USE="-doc -hscolour -profile"
Comment 1 Toralf Förster gentoo-dev 2021-07-18 16:25:41 UTC
Created attachment 724840 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-07-18 16:25:42 UTC
Created attachment 724843 [details]
dev-haskell:text-1.2.4.1:20210718-162054.log
Comment 3 Toralf Förster gentoo-dev 2021-07-18 16:25:43 UTC
Created attachment 724846 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-07-18 16:25:45 UTC
Created attachment 724849 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-07-18 16:25:46 UTC
Created attachment 724852 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-07-18 16:25:47 UTC
Created attachment 724855 [details]
temp.tar.bz2
Comment 7 mehw 2021-07-19 00:06:48 UTC
The following are just some considerations I made after taking a look at the ebuild. I'll post them here as a memo.

Why CABAL_CORE_LIB_GHC_PV="PM:8.10.3 PM:8.10.4 PM:8.10.5 PM:9.0.1 PM:9999"?

Why PM:***?

If you install dev-lang/ghc-8.10.4-r1, it will never match with CABAL_CORE_LIB_GHC_PV set as above, unless you explicitly use PM:8.10.4-r1... PM:9999 probably always works, but the same isn't true for other versions which may use a postfix...

CABAL_CORE_LIB_GHC_PV is processed by haskell-cabal.eclass, in particular with

[[ "${bin_ghc_version}" == ${version} ]] && return 0

and if it fails, then with

[[ "${pm_ghc_version}" == ${version} ]] && return 0

Those lines roughly translate respectively to

$ ghc --numeric-version

and

$ portageq best_version / dev-lang/ghc

The former returns the ghc's binary version, and the latter the installed package's version. If the former is 8.10.4, the latter may be 8.10.4, 8.10.4-r1, 8.10.4-r2, etc.  When you use 'PM:***' in CABAL_CORE_LIB_GHC_PV, you need to be explicit about the installed package's version...

To sum up, if you installed dev-lang/ghc-8.10.4-r1, either use

CABAL_CORE_LIB_GHC_PV="PM:8.10.3 PM:8.10.4-r1 PM:8.10.5 PM:9.0.1 PM:9999"

or

CABAL_CORE_LIB_GHC_PV="PM:8.10.3 8.10.4 PM:8.10.5 PM:9.0.1 PM:9999"

and if every postfixed version is a candidate, use something like

CABAL_CORE_LIB_GHC_PV="8.10.3 8.10.4 8.10.5 9.0.1 PM:9999"

Cheers!
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 06:48:01 UTC
Ah, good point. Someone revbumped ghc without keeping CABAL_CORE_LIB_GHC_PV up to date. I'll extend it.
Comment 9 Larry the Git Cow gentoo-dev 2021-07-19 07:13:09 UTC
The bug has been referenced in the following commit(s):

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

commit 759be52dfd50d9317adde2774bff129a6aab91f2
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:12:54 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:06 +0000

    dev-haskell/xhtml: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/xhtml/xhtml-3000.2.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit e2a3f67c32a5c5bbe031d9f3010bc1e17a2cc757
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:12:41 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:06 +0000

    dev-haskell/transformers: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/transformers/transformers-0.5.6.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 40fd1114000d53cf4eeab24a8e162024296fc73f
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:12:29 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:05 +0000

    dev-haskell/text: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/text/text-1.2.4.0-r1.ebuild | 4 ++--
 dev-haskell/text/text-1.2.4.1.ebuild    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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

commit 20d7d706a59ffd9c84b78f5ab4bb8b8638ed6fb6
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:12:17 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:05 +0000

    dev-haskell/terminfo: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/terminfo/terminfo-0.4.1.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 50925d2cc5afa7b683291b4aafa6cc4508dfb171
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:12:05 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:05 +0000

    dev-haskell/stm: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/stm/stm-2.5.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 998b0c932d79176588cf875ad7dcae33f9998d0b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:11:49 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:05 +0000

    dev-haskell/parsec: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/parsec/parsec-3.1.14.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 53f6de15be2cf5e83e9c7ae6db1573212d9655b7
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:11:34 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:05 +0000

    dev-haskell/mtl: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/mtl/mtl-2.2.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit d429d528952a8be699542c35022ff61ce36f2bf9
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:11:21 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:04 +0000

    dev-haskell/haskeline: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/haskeline/haskeline-0.7.5.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

commit 85c2ba0194cbc23d6a54bd2d2c3a82a91b74e6fd
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:11:06 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:04 +0000

    dev-haskell/exceptions: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/exceptions/exceptions-0.10.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 94505e69eccdf0d9b047d1d2fda679d99daea54e
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:10:52 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:04 +0000

    dev-haskell/cabal: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/cabal/cabal-3.0.1.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

commit 77d00beb71de98c6a756c0026d4f05bd5586fa4d
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:10:35 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:13:04 +0000

    dev-haskell/binary: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/binary/binary-0.8.7.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:20:51 UTC
I hope markings are fully corrected now.
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:24:23 UTC
Caused by commit f423849485dc8b830d1fa4c067801a2ee2e21eb0
Author: David Seifert <soap@gentoo.org>
Date:   Sat Jul 17 23:29:56 2021 +0200

    dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]

    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/ghc/{ghc-8.10.4.ebuild => ghc-8.10.4-r1.ebuild} | 2 +-
 dev-lang/ghc/{ghc-8.10.5.ebuild => ghc-8.10.5-r1.ebuild} | 2 +-
 dev-lang/ghc/{ghc-8.8.4.ebuild => ghc-8.8.4-r1.ebuild}   | 2 +-
 dev-lang/ghc/{ghc-9.0.1.ebuild => ghc-9.0.1-r1.ebuild}   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:26:17 UTC
*** Bug 802837 has been marked as a duplicate of this bug. ***
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:27:20 UTC
*** Bug 802795 has been marked as a duplicate of this bug. ***
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:28:56 UTC
*** Bug 802750 has been marked as a duplicate of this bug. ***
Comment 15 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:29:26 UTC
*** Bug 802747 has been marked as a duplicate of this bug. ***
Comment 16 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:30:00 UTC
*** Bug 802738 has been marked as a duplicate of this bug. ***
Comment 17 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:31:24 UTC
*** Bug 802858 has been marked as a duplicate of this bug. ***
Comment 18 Andrew Udvare 2021-07-19 07:42:30 UTC
(In reply to Sergei Trofimovich from comment #10)
> I hope markings are fully corrected now.

dev-haskell/cabal-3.2.1.0-r1 has the same issue as dev-haskell/text did.
Comment 19 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 07:58:02 UTC
(In reply to Andrew Udvare from comment #18)
> (In reply to Sergei Trofimovich from comment #10)
> > I hope markings are fully corrected now.
> 
> dev-haskell/cabal-3.2.1.0-r1 has the same issue as dev-haskell/text did.

Good point! Adding.
Comment 20 Larry the Git Cow gentoo-dev 2021-07-19 07:59:03 UTC
The bug has been referenced in the following commit(s):

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

commit d23d3f3945b0c25db7da5e2cdaab1ef859eff0ce
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-19 07:58:41 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-19 07:59:01 +0000

    dev-haskell/cabal: fix CABAL_CORE_LIB_GHC_PV for rev-bumped ghc
    
    Fixes: f423849485dc ("dev-lang/ghc: Add sys-libs/ncurses[unicode(+)]")
    Reported-by: Andrew Udvare
    Bug: https://bugs.gentoo.org/802771
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/cabal/cabal-3.2.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 21 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 09:15:55 UTC
*** Bug 802870 has been marked as a duplicate of this bug. ***
Comment 22 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-19 17:40:56 UTC
*** Bug 802891 has been marked as a duplicate of this bug. ***