Bug#1006573: haskell-devscripts: CDBS module incompatible with debhelper-compat (= 10)

Felix Lechner felix.lechner at lease-up.com
Sun Feb 27 22:19:57 GMT 2022


Package: haskell-devscripts
Severity: wishlist

Hi,

In my 'kickoff' sources, which use the CDBS module hlibrary.mk, the
d/compat file must be present. When I delete d/compat and instead
specify debhelper-compat (= 10) in Build-Depends, a d/compat file with
the value '5' is created. That causes follow-on issues like the one at
the bottom of this message.

This bug is merely a wishlist item in case someone plans to fix
hlibrary.mk. The issue goes away with the dh sequencer from
dh-haskell, which may be a better option for other reasons, as well.

Kind regards
Felix Lechner

* * *

➤ debclean
Cleaning in directory /lcl/lechner/lintian/kickoff
 dpkg-buildpackage --rules-target clean -rfakeroot -us -uc -ui
dpkg-buildpackage: info: source package kickoff
dpkg-buildpackage: info: source version 0.1.0
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Felix Lechner
<felix.lechner at lease-up.com>
 debian/rules clean
test -x debian/rules
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
/usr/bin/make -C . CFLAGS="-g -O2
-ffile-prefix-map=/lcl/lechner/lintian/kickoff=.
-fstack-protector-strong -Wformat -Werror=format-security"
CXXFLAGS="-g -O2 -ffile-prefix-map=/lcl/lechner/lintian/kickoff=.
-fstack-protector-strong -Wformat -Werror=format-security"
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" -k
clean
make[1]: Entering directory '/lcl/lechner/lintian/kickoff'
cabal clean
make[1]: Leaving directory '/lcl/lechner/lintian/kickoff'
dh_clean
dh_clean: warning: Please specify the debhelper compat level exactly once.
dh_clean: warning:  * debian/compat requests compat 5.
dh_clean: warning:  * debian/control requests compat 10 via
"debhelper-compat (= 10)"
dh_clean: warning:
dh_clean: warning: Hint: If you just added a build-dependency on
debhelper-compat, then please remember to remove debian/compat
dh_clean: warning:
dh_clean: error: debhelper compat level specified both in
debian/compat and via build-dependency on debhelper-compat
make: *** [/usr/share/cdbs/1/rules/debhelper.mk:211: clean] Error 255
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage --rules-target clean -rfakeroot -us -uc -ui failed



More information about the Pkg-haskell-maintainers mailing list