Bug#1009883: dh_haskell_install_ghc_registration: does not support directories
On Thu, 21 Apr 2022, Felix Lechner wrote: As for this bug, I was aware that I broke the directory feature but, like you, was also not sure right away about how to handle it properly. The directory feature for package registrations is described in the documentation. [1] Kind regards Felix Lechner [1] https://downloads.haskell.org/cabal/Cabal-3.0.0.0/doc/users-guide/installing-packages.html#cmdoption-setup-register-gen-pkg-config Actually, as best as I can tell, the old code only supported files as well, so I don't think this was a regression. It looks as though the correct approach might be to just install each file that's in the directory. If you don't have time to look into it, I might take a stab at it. Thanks, Scott
Bug#1009883: dh_haskell_install_ghc_registration: does not support directories
Hi Scott, > It's not quite clear to me how a directory is supposed to be handled First off, thank you for your bug reports. I recently rewrote the Haskell tooling to allow the use of Debhelper's dh sequencer with all features. Unfortunately, I recently started using another OS and may not be able to iron out all the kinks in the new code. As for this bug, I was aware that I broke the directory feature but, like you, was also not sure right away about how to handle it properly. The directory feature for package registrations is described in the documentation. [1] Kind regards Felix Lechner [1] https://downloads.haskell.org/cabal/Cabal-3.0.0.0/doc/users-guide/installing-packages.html#cmdoption-setup-register-gen-pkg-config
Bug#1009883: dh_haskell_install_ghc_registration: does not support directories
Package: haskell-devscripts Severity: normal Dear Maintainer, While attempting to update haskell-attoparsec to upstream release 0.14.4, it was observed that this version of attoparsec produces a *directory* and not a *file* for its GHC registration. This currently fails because of bug #1009873, but after that is fixed, this will still fail because dh_haskell_install_dhc_registration is searching for: "Creating package registration file" where attoparsec produces: "Creating package registration directory" And thus will result in "Cannot get package registration file." once the aforementioned bug is fixed. It's not quite clear to me how a directory is supposed to be handled (install each file in the directory?), but perhaps someone with more familiarity with GHC registrations might know. Thanks, Scott