[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#944260: lintian: Add a detection/tag for when compat is >> 10 and cdbs in build-depends



package: lintian

Since Debhelper >= 10.9.2 and higher (and therefore compat >= 11), there is a known issue in CDBS (refer to bug #885407 [1]) with the use of dh_systemd_enable instead of dh_installsystemd.  This has been on the record since 2017 with the last activity on the bug over a year ago without a fix for this.  As such, any packages with DH compat >> 10 will fail to work when CDBS is the system in use (and in the build-dependencies with its rules included in debian/rules).

Therefore, I propose that a Warning indicator be added to Lintian checking source packages, etc. for any cases where the compat level is defined as >> 10, and where CDBS is in the build dependencies, defining something similar to the following:

"The use of CDBS with compat levels higher than 10 is not permitted.  CDBS is not compatible with Debhelper compatibility higher than 10 due to the deprecation of dh_systemd_enable in favor of dh_installsystemd and CDBS not being updated with this change (refer to Debian Bug #885407).  Source packages should not define cdbs as a build dependency if using a compat level higher than 10."

This may also require a policy decision/change in the future, but in my opinion for now Lintian should throw a warning (or at least an Informational level notice) about CDBS not working with later compat.


Thomas


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885407


Reply to: