Comment 1 for bug 1986483

Revision history for this message
Jens Elkner (jelmd) wrote :

Found an easy way to identify the problem:

On focal:
---------
cd /tmp
wget https://launchpad.net/~hets/+archive/ubuntu/hets/+files/libghc-list-dev_0.6.2-4.20.4_amd64.deb
dpkg -i libghc-list-dev_0.6.2-4.20.4_amd64.deb
ghc-pkg --global field List-0.6.2-CBzPU1mwmz68Yae32Ju0Tg library-dirs

works.

On jammy:
---------
cd /tmp
wget https://launchpad.net/~hets/+archive/ubuntu/hets/+files/libghc-list-dev_0.6.2-5.22.4_amd64.deb
dpkg -i libghc-list-dev_0.6.2-5.22.4_amd64.deb
ghc-pkg --global field List-0.6.2-CBzPU1mwmz68Yae32Ju0Tg library-dirs

fails.

So it seems, that /usr/bin/dh_haskell_depends needs to be adjusted to remove the trailing -$ID when getting any field from a package.