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"
Created attachment 724840 [details] emerge-info.txt
Created attachment 724843 [details] dev-haskell:text-1.2.4.1:20210718-162054.log
Created attachment 724846 [details] emerge-history.txt
Created attachment 724849 [details] environment
Created attachment 724852 [details] etc.portage.tar.bz2
Created attachment 724855 [details] temp.tar.bz2
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!
Ah, good point. Someone revbumped ghc without keeping CABAL_CORE_LIB_GHC_PV up to date. I'll extend it.
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(-)
I hope markings are fully corrected now.
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(-)
*** Bug 802837 has been marked as a duplicate of this bug. ***
*** Bug 802795 has been marked as a duplicate of this bug. ***
*** Bug 802750 has been marked as a duplicate of this bug. ***
*** Bug 802747 has been marked as a duplicate of this bug. ***
*** Bug 802738 has been marked as a duplicate of this bug. ***
*** Bug 802858 has been marked as a duplicate of this bug. ***
(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.
(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.
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(-)
*** Bug 802870 has been marked as a duplicate of this bug. ***
*** Bug 802891 has been marked as a duplicate of this bug. ***