Nilesh Patra pushed to branch master at lintian / lintian
Commits:
99613c95 by Nilesh Patra at 2026-02-07T11:46:44+05:30
Add tests to detect buildsystem with cdbs along with/without debhelper
- - - - -
11 changed files:
- +
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/debian/compat
- +
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/debian/control.in
- +
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/debian/rules
- +
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/fill-values
- + t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/eval/desc
- + t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/eval/hints
- +
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/build-spec/debian/control.in
- +
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/build-spec/debian/rules
- +
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/build-spec/fill-values
- + t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/eval/desc
- + t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/eval/hints
Changes:
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/debian/compat
=====================================
@@ -0,0 +1 @@
+10
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/debian/control.in
=====================================
@@ -0,0 +1,14 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: cdbs:any, debhelper (>= 10)
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Description: [% $description %]
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package.
+Depends: ${misc:Depends}
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/debian/rules
=====================================
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/build-spec/fill-values
=====================================
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: package-uses-cdbs-with-dh-mk
+Description: Test for packages not using debhelper but cdbs instead
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/eval/desc
=====================================
@@ -0,0 +1,2 @@
+Testname: package-uses-cdbs-with-dh-mk
+Check: debhelper
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-with-dh-mk/eval/hints
=====================================
@@ -0,0 +1,3 @@
+package-uses-cdbs-with-dh-mk (source):
package-uses-old-debhelper-compat-version 10
+package-uses-cdbs-with-dh-mk (source): debian-build-system
cdbs-with-debhelper.mk [debian/rules]
+package-uses-cdbs-with-dh-mk (source): debhelper-compat-level 10
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/build-spec/debian/control.in
=====================================
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: cdbs:any
+Rules-Requires-Root: binary-targets
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Description: [% $description %]
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package.
+Depends: ${misc:Depends}
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/build-spec/debian/rules
=====================================
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/buildvars.mk
+
+clean::
+build::
+binary::
+ mkdir -p debian/tmp/DEBIAN
+ cd debian/tmp && \
+ find * -type f ! -regex "DEBIAN/.*" -print0 | \
+ LC_ALL=C sort -z | xargs -0r md5sum > DEBIAN/md5sums
+ chown -R 0:0 debian/tmp
+ chmod -R u+w,go=rX debian/tmp
+ dpkg-gencontrol
+ dpkg --build debian/tmp ..
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/build-spec/fill-values
=====================================
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: package-uses-cdbs-without-dh-mk
+Description: Test for packages not using debhelper but cdbs instead
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/eval/desc
=====================================
@@ -0,0 +1,2 @@
+Testname: package-uses-cdbs-without-dh-mk
+Check: debhelper
=====================================
t/recipes/checks/debhelper/package-uses-cdbs-without-dh-mk/eval/hints
=====================================
@@ -0,0 +1,2 @@
+package-uses-cdbs-without-dh-mk (source): package-does-not-use-debhelper
[debian/rules]
+package-uses-cdbs-without-dh-mk (source): debian-build-system
cdbs-without-debhelper.mk [debian/rules]
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/99613c9523d55bf75b410639bf8d4b7e637b544d
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/99613c9523d55bf75b410639bf8d4b7e637b544d
You're receiving this email because of your account on salsa.debian.org.