* Using cabal-3.4.1.0. /usr/bin/ghc -hide-all-packages -package Cabal -package base -package binary -package bytestring -package containers -package deepseq -package directory -package exceptions -package filepath -package haskeline -package mtl -package parsec -package pretty -package process -package stm -package template-haskell -package terminfo -package text -package transformers -package unix -package xhtml --make /var/tmp/portage/dev-haskell/foldl-1.4.12/work/foldl-1.4.12/Setup.hs -j4 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup [1 of 1] Compiling Main ( /var/tmp/portage/dev-haskell/foldl-1.4.12/work/foldl-1.4.12/Setup.hs, /var/tmp/portage/dev-haskell/foldl-1.4.12/work/foldl-1.4.12/Setup.o ) /var/tmp/portage/dev-haskell/foldl-1.4.12/work/foldl-1.4.12/Setup.hs:3:1: error: Could not load module Distribution.Extra.Doctest It is a member of the hidden package cabal-doctest-1.0.9. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-j4-20220914-050006 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.3.1 [2] x86_64-pc-linux-gnu-12.2.1 * clang/llvm (if any): /usr/lib/llvm/14 14.0.6 Python 3.10.7 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.63.0 * The following VMs are available for generation-2: 1) IcedTea JDK 3.16.0 [icedtea-bin-8] 2) Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17] *) Eclipse Temurin JRE 8.345_p01 [openjdk-jre-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 [2] openjdk-jre-bin-8 system-vm [3] openjdk-jre-bin-17 The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit 9152fb2b399f7a8b31ca5c850cba8039ab5f1206 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Sep 16 13:46:48 2022 +0000 2022-09-16 13:46:48 UTC emerge -qpvO dev-haskell/foldl [ebuild N ] dev-haskell/foldl-1.4.12 USE="-doc -hscolour -profile -test"
Created attachment 805579 [details] emerge-info.txt
Created attachment 805582 [details] dev-haskell:foldl-1.4.12:20220916-140926.log
Created attachment 805585 [details] emerge-history.txt
Created attachment 805588 [details] environment
Created attachment 805591 [details] etc.portage.tar.bz2
Created attachment 805594 [details] temp.tar.bz2
I ran into this build failure, but I copied the -r1 ebuild from the ::haskell overlay into my local overlay, and it fixed the issue for me. I would guess that the key change is adding GHC_BOOTSTRAP_PACKAGES=( cabal-doctest ), though the ::haskell version also doesn't have dos2unix in BDEPEND or the mildly complicated src_prepare() that the main-tree version does.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28887796492fb1d5e7a321c7197df3b518242611 commit 28887796492fb1d5e7a321c7197df3b518242611 Author: Jack Todaro <solpeth@posteo.org> AuthorDate: 2022-09-30 22:38:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-01 03:14:36 +0000 dev-haskell/foldl: sync from ::haskell fixing configure failure Closes:https://bugs.gentoo.org/870388 Signed-off-by: Jack Todaro <solpeth@posteo.org> Signed-off-by: Sam James <sam@gentoo.org> dev-haskell/foldl/Manifest | 1 + dev-haskell/foldl/foldl-1.4.12-r1.ebuild | 44 ++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+)