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.
Found an easy way to identify the problem:
On focal: /launchpad. net/~hets/ +archive/ ubuntu/ hets/+files/ libghc- list-dev_ 0.6.2-4. 20.4_amd64. deb list-dev_ 0.6.2-4. 20.4_amd64. deb 6.2-CBzPU1mwmz6 8Yae32Ju0Tg library-dirs
---------
cd /tmp
wget https:/
dpkg -i libghc-
ghc-pkg --global field List-0.
works.
On jammy: /launchpad. net/~hets/ +archive/ ubuntu/ hets/+files/ libghc- list-dev_ 0.6.2-5. 22.4_amd64. deb list-dev_ 0.6.2-5. 22.4_amd64. deb 6.2-CBzPU1mwmz6 8Yae32Ju0Tg library-dirs
---------
cd /tmp
wget https:/
dpkg -i libghc-
ghc-pkg --global field List-0.
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.