Bug#1010025: ghc: Haddock fails with internal error when calculating transitive dependencies

2022-04-26 Thread Scott Talbert

On Tue, 26 Apr 2022, Felix Lechner wrote:


On Tue, Apr 26, 2022 at 7:23 AM Scott Talbert  wrote:


it's a core package and I'm new here


I'm also not the right person to merge it, but I think Debian may be
getting a new GHC version soon. Was the fix applied upstream?


It was merged in haskell/cabal [1].  Not sure if it has trickled down into 
a ghc source release yet.


Scott

[1] 
https://github.com/haskell/cabal/commit/7ffcd512430e264d3e7d26a93fa8d8508497e82d



Bug#1010025: ghc: Haddock fails with internal error when calculating transitive dependencies

2022-04-26 Thread Felix Lechner
Hi Scott,

On Tue, Apr 26, 2022 at 7:23 AM Scott Talbert  wrote:
>
> it's a core package and I'm new here

I'm also not the right person to merge it, but I think Debian may be
getting a new GHC version soon. Was the fix applied upstream?

Kind regards
Felix Lechner



Bug#1010025: ghc: Haddock fails with internal error when calculating transitive dependencies

2022-04-26 Thread Scott Talbert

On Sat, 23 Apr 2022, Felix Lechner wrote:


Hi Scott,


Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: dlist-0.8.0.8, hashable-1.3.0.0,
transformers-compat-0.6.5


Can you please try to see if the error goes away when those
prerequisites are made available?

I believe they are in:

   libghc-dlist-doc
   libghc-hashable-doc
   libghc-transformers-compat-doc


Adding those BD's makes the warning about missing links go away, but 
doesn't fix the internal error.  There's an upstream fix that seems to fix 
the error, though.  I've created a merge request[1] with a cherry-pick of 
the upstream fix.  I sent a MR since it's a core package and I'm new here, 
but it seems like a fairly straighforward fix.  Let me know if anyone has 
any objections.


Thanks,
Scott

[1] https://salsa.debian.org/haskell-team/DHG_packages/-/merge_requests/18



Bug#1010025: ghc: Haddock fails with internal error when calculating transitive dependencies

2022-04-24 Thread Felix Lechner
Hi Scott,

> Warning: The documentation for the following packages are not installed. No
> links will be generated to these packages: dlist-0.8.0.8, hashable-1.3.0.0,
> transformers-compat-0.6.5

Can you please try to see if the error goes away when those
prerequisites are made available?

I believe they are in:

libghc-dlist-doc
libghc-hashable-doc
libghc-transformers-compat-doc

Thanks!

Kind regards
Felix Lechner



Bug#1010025: ghc: Haddock fails with internal error when calculating transitive dependencies

2022-04-22 Thread Scott Talbert
Package: ghc
Version: 8.8.4-3
Severity: normal

Dear Maintainer,

While attempting to package doctest-parallel for Debian, the following 
error was encountered during build:

Preprocessing library 'spectests-modules' for doctest-parallel-0.2..
Running Haddock on library 'spectests-modules' for doctest-parallel-0.2..
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: dlist-0.8.0.8, hashable-1.3.0.0,
transformers-compat-0.6.5
Warning: --source-* options are ignored when --hyperlinked-source is enabled.
CallStack (from HasCallStack):
  withTempDirectoryEx, called at 
libraries/Cabal/Cabal/Distribution/Simple/Haddock.hs:273:11 in 
Cabal-3.0.1.0:Distribution.Simple.Haddock
  haddock, called at libraries/Cabal/Cabal/Distribution/Simple.hs:636:35 in 
Cabal-3.0.1.0:Distribution.Simple
  haddockHook, called at 
libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:139:5 in 
Cabal-3.0.1.0:Distribution.Simple.UserHooks
  cmd_hook, called at libraries/Cabal/Cabal/Distribution/Simple.hs:497:9 in 
Cabal-3.0.1.0:Distribution.Simple
  cmd_hook, called at libraries/Cabal/Cabal/Distribution/Simple.hs:516:4 in 
Cabal-3.0.1.0:Distribution.Simple
  hookedActionWithArgs, called at 
libraries/Cabal/Cabal/Distribution/Simple.hs:495:5 in 
Cabal-3.0.1.0:Distribution.Simple
  hookedAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:360:3 in 
Cabal-3.0.1.0:Distribution.Simple
  haddockAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:187:50 
in Cabal-3.0.1.0:Distribution.Simple
  defaultMainHelper, called at 
libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in 
Cabal-3.0.1.0:Distribution.Simple
  defaultMain, called at Setup.lhs:3:10 in main:Main
hlibrary.setup: internal error when calculating transitive package
dependencies.
Debug info: []

 at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 106.

Debian::Debhelper::Buildsystem::Haskell::Recipes::run_quiet("debian/hlibrary.setup",
 "haddock", "--builddir=dist-ghc", "--with-haddock=/usr/bin/haddock", 
"--with-ghc=ghc", "--verbose=2", "--html", "--hoogle", ...) called at 
/usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 130

Debian::Debhelper::Buildsystem::Haskell::Recipes::run("debian/hlibrary.setup", 
"haddock", "--builddir=dist-ghc", "--with-haddock=/usr/bin/haddock", 
"--with-ghc=ghc", "--verbose=2", "--html", "--hoogle", ...) called at 
/usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 723
Debian::Debhelper::Buildsystem::Haskell::Recipes::haddock_recipe() 
called at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:152: build-ghc-stamp] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit 
status 2

This is likely related to the fact that doctest-parallel contains 
internal dependencies.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-1-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghc depends on:
ii  dpkg  1.21.7
ii  gcc   4:11.2.0-2
ii  libbsd-dev0.11.6-1
ii  libc6 2.33-7
ii  libc6-dev 2.33-7
ii  libffi-dev3.4.2-4
ii  libffi8   3.4.2-4
ii  libgmp-dev2:6.2.1+dfsg-3
ii  libgmp10  2:6.2.1+dfsg-3
ii  libncurses-dev [libncurses5-dev]  6.3-2
ii  libncurses5-dev   6.3-2
ii  libtinfo6 6.3-2

ghc recommends no packages.

Versions of packages ghc suggests:
ii  ghc-doc  8.8.4-3
ii  ghc-prof 8.8.4-3
pn  haskell-doc  
pn  llvm-11  
ii  perl 5.34.0-4

-- no debconf information