From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../build-spec/debian/control.in | 17 ++ .../build-spec/debian/rules | 7 + .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 1 + .../build-spec/debian/control.in | 17 ++ .../build-spec/debian/rules | 7 + .../build-spec/fill-values | 3 + .../control-file-rules-requires-root-no/eval/desc | 2 + .../control-file-rules-requires-root-no/eval/hints | 1 + .../debhelper-compat-old/build-spec/debian/rules | 7 + .../debhelper-compat-old/build-spec/fill-values | 3 + .../debian/rules/debhelper-compat-old/eval/desc | 4 + .../debian/rules/debhelper-compat-old/eval/hints | 1 + .../profiles/lintian-test/main.profile | 2 + .../lintian-test/main/data/debhelper/compat-level | 3 + .../build-spec/debian/rules | 7 + .../build-spec/fill-values | 3 + .../rules/debhelper-deb-build-options/eval/desc | 2 + .../rules/debhelper-deb-build-options/eval/hints | 1 + .../debhelper-dh-compat/build-spec/debian/rules | 8 + .../debhelper-dh-compat/build-spec/fill-values | 3 + .../debian/rules/debhelper-dh-compat/eval/desc | 4 + .../debian/rules/debhelper-dh-compat/eval/hints | 1 + .../profiles/lintian-test/main.profile | 2 + .../lintian-test/main/data/debhelper/compat-level | 3 + .../build-spec/debian/compat.in | 1 + .../build-spec/debian/control.in | 33 ++++ .../debhelper-no-depends/build-spec/debian/rules | 24 +++ .../debhelper-no-depends/build-spec/fill-values | 5 + .../debian/rules/debhelper-no-depends/eval/desc | 5 + .../debian/rules/debhelper-no-depends/eval/hints | 1 + .../profiles/lintian-test/main.profile | 2 + .../lintian-test/main/data/debhelper/compat-level | 2 + .../build-spec/debian/rules | 12 ++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 2 + .../build-spec/debian/rules | 17 ++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 7 + .../build-spec/debian/rules | 14 ++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 4 + .../curly-braces/build-spec/debian/rules | 4 + .../curly-braces/build-spec/fill-values | 3 + .../rules/dh-sequencer/curly-braces/eval/desc | 5 + .../rules/dh-sequencer/curly-braces/eval/hints | 1 + .../dependency/build-spec/debian/rules | 10 ++ .../dh-sequencer/dependency/build-spec/fill-values | 3 + .../debian/rules/dh-sequencer/dependency/eval/desc | 5 + .../rules/dh-sequencer/dependency/eval/hints | 0 .../double-quotes/build-spec/debian/rules | 4 + .../double-quotes/build-spec/fill-values | 3 + .../rules/dh-sequencer/double-quotes/eval/desc | 5 + .../rules/dh-sequencer/double-quotes/eval/hints | 1 + .../environment-prefix/build-spec/debian/rules | 4 + .../environment-prefix/build-spec/fill-values | 3 + .../dh-sequencer/environment-prefix/eval/desc | 6 + .../dh-sequencer/environment-prefix/eval/hints | 1 + .../explicit-targets/build-spec/debian/rules | 11 ++ .../explicit-targets/build-spec/fill-values | 3 + .../rules/dh-sequencer/explicit-targets/eval/desc | 5 + .../rules/dh-sequencer/explicit-targets/eval/hints | 1 + .../no-dh-sequencer/build-spec/debian/compat.in | 1 + .../no-dh-sequencer/build-spec/debian/rules | 76 +++++++++ .../no-dh-sequencer/build-spec/fill-values | 6 + .../no-dh-sequencer/build-spec/pre-build.in | 5 + .../rules/dh-sequencer/no-dh-sequencer/eval/desc | 3 + .../rules/dh-sequencer/no-dh-sequencer/eval/hints | 1 + .../parentheses/build-spec/debian/rules | 4 + .../parentheses/build-spec/fill-values | 3 + .../rules/dh-sequencer/parentheses/eval/desc | 5 + .../rules/dh-sequencer/parentheses/eval/hints | 1 + .../single-quotes/build-spec/debian/rules | 4 + .../single-quotes/build-spec/fill-values | 3 + .../rules/dh-sequencer/single-quotes/eval/desc | 5 + .../rules/dh-sequencer/single-quotes/eval/hints | 1 + .../with-comments/build-spec/debian/rules | 6 + .../with-comments/build-spec/fill-values | 3 + .../rules/dh-sequencer/with-comments/eval/desc | 5 + .../rules/dh-sequencer/with-comments/eval/hints | 1 + .../build-spec/debian/README.Debian | 6 + .../build-spec/debian/changelog.in | 6 + .../build-spec/debian/compat.in | 1 + .../build-spec/debian/control.in | 12 ++ .../build-spec/debian/copyright | 10 ++ .../generic-dh-make-2005/build-spec/debian/rules | 100 ++++++++++++ .../generic-dh-make-2005/build-spec/fill-values | 8 + .../generic-dh-make-2005/build-spec/orig/README | 9 ++ .../generic-dh-make-2005/build-spec/pre-build.in | 5 + .../debian/rules/generic-dh-make-2005/eval/desc | 2 + .../debian/rules/generic-dh-make-2005/eval/hints | 4 + .../rules/generic-dh-make-2005/eval/post-test | 1 + .../generic-empty/build-spec/debian/changelog.in | 2 + .../generic-empty/build-spec/debian/control.in | 5 + .../rules/generic-empty/build-spec/debian/rules | 9 ++ .../rules/generic-empty/build-spec/fill-values | 4 + .../rules/generic-empty/build-spec/orig/README | 4 + .../rules/generic-empty/build-spec/pre-build | 6 + .../checks/debian/rules/generic-empty/eval/desc | 2 + .../checks/debian/rules/generic-empty/eval/hints | 4 + .../legacy-binary/build-spec/debian/NEWS.Debian | 12 ++ .../legacy-binary/build-spec/debian/README.Debian | 5 + .../legacy-binary/build-spec/debian/changelog.in | 47 ++++++ .../legacy-binary/build-spec/debian/conffiles | 1 + .../rules/legacy-binary/build-spec/debian/control | 42 +++++ .../legacy-binary/build-spec/debian/copyright | 15 ++ .../rules/legacy-binary/build-spec/debian/doc-base | 41 +++++ .../build-spec/debian/goodbye.desktop | 13 ++ .../legacy-binary/build-spec/debian/hello.desktop | 14 ++ .../rules/legacy-binary/build-spec/debian/menu | 26 +++ .../legacy-binary/build-spec/debian/menu-method | 22 +++ .../rules/legacy-binary/build-spec/debian/postinst | 6 + .../rules/legacy-binary/build-spec/debian/rules | 92 +++++++++++ .../legacy-binary/build-spec/debian/templates | 16 ++ .../rules/legacy-binary/build-spec/fill-values | 5 + .../rules/legacy-binary/build-spec/orig/INSTALL | 176 +++++++++++++++++++++ .../rules/legacy-binary/build-spec/orig/Makefile | 12 ++ .../rules/legacy-binary/build-spec/orig/hello.c | 8 + .../checks/debian/rules/legacy-binary/eval/desc | 2 + .../checks/debian/rules/legacy-binary/eval/hints | 4 + .../debian/rules/legacy-binary/eval/post-test | 3 + .../legacy-debconf/build-spec/debian/changelog.in | 6 + .../legacy-debconf/build-spec/debian/compat.in | 1 + .../rules/legacy-debconf/build-spec/debian/control | 52 ++++++ .../legacy-debconf/build-spec/debian/copyright | 10 ++ .../debian/debconf-test-noscripts.templates | 3 + .../debian/debconf-test-postinst.postinst | 10 ++ .../build-spec/debian/debconf-test-postinst.postrm | 7 + .../debian/debconf-test-postinst.templates | 3 + .../build-spec/debian/debconf-test-preinst.postrm | 7 + .../build-spec/debian/debconf-test-preinst.preinst | 13 ++ .../debian/debconf-test-preinst.templates | 3 + .../build-spec/debian/debconf-test.config | 24 +++ .../build-spec/debian/debconf-test.postinst | 10 ++ .../build-spec/debian/debconf-test.templates | 101 ++++++++++++ .../build-spec/debian/debconf-test.templates.de | 3 + .../build-spec/debian/debconf-test.templates.in | 0 .../build-spec/debian/debconf-udeb.postinst | 9 ++ .../build-spec/debian/debconf-udeb.templates | 3 + .../build-spec/debian/po/POTFILES.in | 2 + .../legacy-debconf/build-spec/debian/po/de.po | 66 ++++++++ .../legacy-debconf/build-spec/debian/po/fr.po | 60 +++++++ .../legacy-debconf/build-spec/debian/po/lang.po | 15 ++ .../legacy-debconf/build-spec/debian/po/nds.po | 15 ++ .../legacy-debconf/build-spec/debian/po/output | 1 + .../legacy-debconf/build-spec/debian/po/pt_BR.po | 15 ++ .../build-spec/debian/po/sample-file.po | 1 + .../build-spec/debian/po/templates.pot | 61 +++++++ .../legacy-debconf/build-spec/debian/pycompat | 1 + .../legacy-debconf/build-spec/debian/pyversions | 1 + .../rules/legacy-debconf/build-spec/debian/rules | 64 ++++++++ .../rules/legacy-debconf/build-spec/fill-values | 6 + .../checks/debian/rules/legacy-debconf/eval/desc | 2 + .../checks/debian/rules/legacy-debconf/eval/hints | 2 + .../debian/rules/legacy-debconf/eval/post-test | 1 + .../build-spec/debian/README.Debian | 5 + .../legacy-etcfiles/build-spec/debian/changelog.in | 7 + .../legacy-etcfiles/build-spec/debian/conffiles | 5 + .../build-spec/debian/conffiles.only | 2 + .../legacy-etcfiles/build-spec/debian/control | 20 +++ .../rules/legacy-etcfiles/build-spec/debian/rules | 64 ++++++++ .../rules/legacy-etcfiles/build-spec/fill-values | 5 + .../rules/legacy-etcfiles/build-spec/orig/improper | 2 + .../rules/legacy-etcfiles/build-spec/orig/proper | 2 + .../checks/debian/rules/legacy-etcfiles/eval/desc | 2 + .../checks/debian/rules/legacy-etcfiles/eval/hints | 1 + .../debian/rules/legacy-etcfiles/eval/post-test | 1 + .../legacy-fields/build-spec/debian/changelog.in | 10 ++ .../rules/legacy-fields/build-spec/debian/control | 28 ++++ .../rules/legacy-fields/build-spec/debian/rules | 33 ++++ .../rules/legacy-fields/build-spec/fill-values | 5 + .../checks/debian/rules/legacy-fields/eval/desc | 2 + .../checks/debian/rules/legacy-fields/eval/hints | 1 + .../debian/rules/legacy-fields/eval/post-test | 1 + .../legacy-scripts/build-spec/debian/changelog.in | 41 +++++ .../legacy-scripts/build-spec/debian/control.in | 16 ++ .../legacy-scripts/build-spec/debian/copyright | 5 + .../build-spec/debian/patches/00list | 11 ++ .../build-spec/debian/patches/00list.sparc | 1 + .../build-spec/debian/patches/00options | 1 + .../patches/02_i_dont_have_a_description.patch | 7 + .../patches/03_specified_without_dpatch.dpatch | 5 + .../04_i_dont_have_a_description_either.patch | 7 + .../legacy-scripts/build-spec/debian/postinst | 14 ++ .../rules/legacy-scripts/build-spec/debian/postrm | 9 ++ .../rules/legacy-scripts/build-spec/debian/preinst | 15 ++ .../rules/legacy-scripts/build-spec/debian/rules | 105 ++++++++++++ .../build-spec/debian/scripts.conffiles | 6 + .../rules/legacy-scripts/build-spec/debian/watch | 8 + .../rules/legacy-scripts/build-spec/fill-values | 6 + .../rules/legacy-scripts/build-spec/orig/csh-foo | 2 + .../rules/legacy-scripts/build-spec/orig/envfoo | 4 + .../rules/legacy-scripts/build-spec/orig/fish-foo | 2 + .../legacy-scripts/build-spec/orig/gccbug.dpatch | 39 +++++ .../legacy-scripts/build-spec/orig/guile-bizarre | 6 + .../legacy-scripts/build-spec/orig/init-lsb-broken | 34 ++++ .../legacy-scripts/build-spec/orig/init-lsb-other | 22 +++ .../legacy-scripts/build-spec/orig/init-no-lsb | 17 ++ .../legacy-scripts/build-spec/orig/init-skeleton | 150 ++++++++++++++++++ .../legacy-scripts/build-spec/orig/jruby-broken | 2 + .../rules/legacy-scripts/build-spec/orig/lefty-foo | 2 + .../rules/legacy-scripts/build-spec/orig/make-foo | 3 + .../legacy-scripts/build-spec/orig/perl-bizarre-1 | 11 ++ .../legacy-scripts/build-spec/orig/perl-bizarre-2 | 7 + .../legacy-scripts/build-spec/orig/perl-bizarre-3 | 6 + .../rules/legacy-scripts/build-spec/orig/perlfoo | 3 + .../rules/legacy-scripts/build-spec/orig/phpenvfoo | 7 + .../rules/legacy-scripts/build-spec/orig/phpfoo | 7 + .../rules/legacy-scripts/build-spec/orig/rubyfoo | 4 + .../rules/legacy-scripts/build-spec/orig/sh-broken | 2 + .../legacy-scripts/build-spec/orig/suidperlfoo | 3 + .../rules/legacy-scripts/build-spec/orig/tkfoo | 31 ++++ .../rules/legacy-scripts/build-spec/orig/wishfoo | 4 + .../legacy-scripts/build-spec/orig/xsession-test | 3 + .../rules/legacy-scripts/build-spec/pre-build | 5 + .../checks/debian/rules/legacy-scripts/eval/desc | 2 + .../checks/debian/rules/legacy-scripts/eval/hints | 2 + .../debian/rules/legacy-scripts/eval/post-test | 1 + .../rules/permissions-775/build-spec/fill-values | 4 + .../rules/permissions-775/build-spec/pre-build | 5 + .../checks/debian/rules/permissions-775/eval/desc | 4 + .../checks/debian/rules/permissions-775/eval/hints | 0 .../build-spec/debian/rules | 37 +++++ .../rules-build-dep-pattern/build-spec/fill-values | 3 + .../debian/rules/rules-build-dep-pattern/eval/desc | 3 + .../rules/rules-build-dep-pattern/eval/hints | 1 + .../build-spec/debian/rules | 10 ++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 4 + .../build-spec/debian/rules | 9 ++ .../build-spec/fill-values | 3 + .../eval/desc | 4 + .../eval/hints | 0 .../build-spec/debian/rules | 7 + .../build-spec/fill-values | 3 + .../eval/desc | 4 + .../eval/hints | 0 .../build-spec/debian/rules | 29 ++++ .../build-spec/fill-values | 3 + .../eval/desc | 4 + .../eval/hints | 0 .../build-spec/debian/rules | 7 + .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 1 + .../rules/rules-dh-order/build-spec/debian/rules | 34 ++++ .../rules/rules-dh-order/build-spec/fill-values | 3 + .../checks/debian/rules/rules-dh-order/eval/desc | 2 + .../checks/debian/rules/rules-dh-order/eval/hints | 5 + .../build-spec/debian/rules | 29 ++++ .../build-spec/fill-values | 3 + .../rules-dh-unused-target-nonempty/eval/desc | 3 + .../rules-dh-unused-target-nonempty/eval/hints | 1 + .../rules-dh-unused-target/build-spec/debian/rules | 29 ++++ .../rules-dh-unused-target/build-spec/fill-values | 3 + .../debian/rules/rules-dh-unused-target/eval/desc | 4 + .../debian/rules/rules-dh-unused-target/eval/hints | 0 .../rules-general/build-spec/debian/compat.in | 1 + .../rules-general/build-spec/debian/control.in | 16 ++ .../rules/rules-general/build-spec/debian/rules | 23 +++ .../rules/rules-general/build-spec/fill-values | 5 + .../checks/debian/rules/rules-general/eval/desc | 2 + .../checks/debian/rules/rules-general/eval/hints | 8 + .../rules-ignore-define/build-spec/debian/rules | 10 ++ .../rules-ignore-define/build-spec/fill-values | 3 + .../debian/rules/rules-ignore-define/eval/desc | 4 + .../debian/rules/rules-ignore-define/eval/hints | 0 .../build-spec/debian/Makefile | 3 + .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 3 + .../rules/rules-ignores-error-clean-fp/eval/desc | 3 + .../rules/rules-ignores-error-clean-fp/eval/hints | 0 .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 3 + .../build-spec/orig/Makefile | 3 + .../rules/rules-ignores-error-clean/eval/desc | 2 + .../rules/rules-ignores-error-clean/eval/hints | 1 + .../build-spec/debian/compat.in | 1 + .../build-spec/debian/rules | 5 + .../build-spec/fill-values | 6 + .../rules-including-deprecated-makefiles/eval/desc | 3 + .../eval/hints | 1 + .../build-spec/debian/rules | 3 + .../build-spec/debian/rules.mk | 2 + .../build-spec/fill-values | 3 + .../rules-missing-targets-with-includes/eval/desc | 4 + .../rules-missing-targets-with-includes/eval/hints | 0 .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 4 + .../eval/desc | 2 + .../eval/hints | 4 + .../build-spec/debian/control.in | 27 ++++ .../rules-missing-targets/build-spec/debian/rules | 5 + .../rules-missing-targets/build-spec/fill-values | 4 + .../debian/rules/rules-missing-targets/eval/desc | 2 + .../debian/rules/rules-missing-targets/eval/hints | 2 + .../rules-not-makefile/build-spec/debian/rules | 13 ++ .../rules-not-makefile/build-spec/fill-values | 3 + .../debian/rules/rules-not-makefile/eval/desc | 2 + .../debian/rules/rules-not-makefile/eval/hints | 1 + .../build-spec/debian/rules | 18 +++ .../build-spec/fill-values | 3 + .../eval/desc | 5 + .../eval/hints | 0 .../build-spec/debian/rules | 10 ++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 4 + .../build-spec/debian/rules | 11 ++ .../build-spec/fill-values | 3 + .../rules-parses-dpkg-parsechangelog/eval/desc | 2 + .../rules-parses-dpkg-parsechangelog/eval/hints | 6 + .../build-spec/debian/rules | 6 + .../build-spec/fill-values | 3 + .../rules/rules-sanitize-all-buildflag/eval/desc | 2 + .../rules/rules-sanitize-all-buildflag/eval/hints | 1 + .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 2 + .../build-spec/debian/rules | 12 ++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 6 + .../build-spec/debian/rules | 7 + .../rules-special-variables/build-spec/fill-values | 3 + .../debian/rules/rules-special-variables/eval/desc | 2 + .../rules/rules-special-variables/eval/hints | 2 + .../rules-symlink/build-spec/debian/rules.real | 4 + .../rules/rules-symlink/build-spec/fill-values | 3 + .../rules/rules-symlink/build-spec/pre-build | 6 + .../checks/debian/rules/rules-symlink/eval/desc | 2 + .../checks/debian/rules/rules-symlink/eval/hints | 1 + .../build-spec/debian/rules | 7 + .../build-spec/fill-values | 3 + .../rules-unnecessary-get-orig-source/eval/desc | 2 + .../rules-unnecessary-get-orig-source/eval/hints | 1 + .../build-spec/debian/control.in | 16 ++ .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 3 + .../eval/desc | 4 + .../eval/hints | 1 + .../build-spec/debian/compat.in | 1 + .../build-spec/debian/control.in | 16 ++ .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 4 + .../rules-unnecessary-source-date-epoch/eval/desc | 2 + .../rules-unnecessary-source-date-epoch/eval/hints | 3 + .../rules-variable-targets/build-spec/debian/rules | 9 ++ .../rules-variable-targets/build-spec/fill-values | 3 + .../debian/rules/rules-variable-targets/eval/desc | 3 + .../debian/rules/rules-variable-targets/eval/hints | 0 357 files changed, 3366 insertions(+) create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc create mode 100644 t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints create mode 100644 t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc create mode 100644 t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints create mode 100644 t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile create mode 100644 t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level create mode 100755 t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc create mode 100644 t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints create mode 100755 t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc create mode 100644 t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints create mode 100644 t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile create mode 100644 t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in create mode 100755 t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile create mode 100644 t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level create mode 100755 t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints create mode 100755 t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints create mode 100755 t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc create mode 100644 t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in create mode 100755 t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values create mode 100755 t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc create mode 100644 t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright create mode 100755 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README create mode 100755 t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints create mode 100644 t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test create mode 100644 t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in create mode 100755 t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README create mode 100755 t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build create mode 100644 t/recipes/checks/debian/rules/generic-empty/eval/desc create mode 100644 t/recipes/checks/debian/rules/generic-empty/eval/hints create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/doc-base create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/hello.desktop create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu-method create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/postinst create mode 100755 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/templates create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/INSTALL create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/Makefile create mode 100644 t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/hello.c create mode 100644 t/recipes/checks/debian/rules/legacy-binary/eval/desc create mode 100644 t/recipes/checks/debian/rules/legacy-binary/eval/hints create mode 100644 t/recipes/checks/debian/rules/legacy-binary/eval/post-test create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions create mode 100755 t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/eval/desc create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/eval/hints create mode 100644 t/recipes/checks/debian/rules/legacy-debconf/eval/post-test create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control create mode 100755 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints create mode 100644 t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test create mode 100644 t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control create mode 100755 t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/legacy-fields/eval/desc create mode 100644 t/recipes/checks/debian/rules/legacy-fields/eval/hints create mode 100644 t/recipes/checks/debian/rules/legacy-fields/eval/post-test create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst create mode 100755 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo create mode 100755 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo create mode 100755 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1 create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2 create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3 create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo create mode 100755 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test create mode 100755 t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/eval/desc create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/eval/hints create mode 100644 t/recipes/checks/debian/rules/legacy-scripts/eval/post-test create mode 100644 t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values create mode 100755 t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build create mode 100644 t/recipes/checks/debian/rules/permissions-775/eval/desc create mode 100644 t/recipes/checks/debian/rules/permissions-775/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-order/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-order/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in create mode 100755 t/recipes/checks/debian/rules/rules-general/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-general/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-general/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-ignore-define/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-ignore-define/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile create mode 100755 t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in create mode 100755 t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-missing-targets/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-not-makefile/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-not-makefile/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-special-variables/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-special-variables/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real create mode 100644 t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values create mode 100755 t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build create mode 100644 t/recipes/checks/debian/rules/rules-symlink/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-symlink/eval/hints create mode 100755 t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in create mode 100755 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in create mode 100755 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints create mode 100644 t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values create mode 100644 t/recipes/checks/debian/rules/rules-variable-targets/eval/desc create mode 100644 t/recipes/checks/debian/rules/rules-variable-targets/eval/hints (limited to 't/recipes/checks/debian/rules') diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in new file mode 100644 index 0000000..9b17d19 --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in @@ -0,0 +1,17 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: binary-targets +Homepage: https://lintian.debian.org/ + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +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. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules new file mode 100644 index 0000000..3d706f5 --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values new file mode 100644 index 0000000..f97b076 --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: control-file-rules-requires-root-binary-targets +Description: Test for "Rules-Requires-Root: binary-targets" diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc new file mode 100644 index 0000000..78f3775 --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc @@ -0,0 +1,2 @@ +Testname: control-file-rules-requires-root-binary-targets +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints new file mode 100644 index 0000000..fedc8bd --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints @@ -0,0 +1 @@ +control-file-rules-requires-root-binary-targets (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7] diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in new file mode 100644 index 0000000..503994d --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in @@ -0,0 +1,17 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +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. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules new file mode 100644 index 0000000..3d706f5 --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values new file mode 100644 index 0000000..7359a3f --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: control-file-rules-requires-root-no +Description: Test for "Rules-Requires-Root: no" diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc new file mode 100644 index 0000000..3b22695 --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc @@ -0,0 +1,2 @@ +Testname: control-file-rules-requires-root-no +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints new file mode 100644 index 0000000..f1f23af --- /dev/null +++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints @@ -0,0 +1 @@ +control-file-rules-requires-root-no (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7] diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules new file mode 100644 index 0000000..3d706f5 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values new file mode 100644 index 0000000..97909d8 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debhelper-compat-old +Description: Test for old debian/compat file diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc new file mode 100644 index 0000000..769274c --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc @@ -0,0 +1,4 @@ +Testname: debhelper-compat-old +Options: --include-dir ./lintian-include-dir +Profile: lintian-test +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints new file mode 100644 index 0000000..d7b6688 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints @@ -0,0 +1 @@ +debhelper-compat-old (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7] diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile new file mode 100644 index 0000000..f0e27cf --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile @@ -0,0 +1,2 @@ +Profile: lintian-test/main +Extends: debian/main diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level new file mode 100644 index 0000000..d91eeb3 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level @@ -0,0 +1,3 @@ +@include-parent +deprecated=1 +recommended=100 diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules new file mode 100755 index 0000000..69a9f01 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +export DEB_BUILD_OPTIONS=nocheck +export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,-fortify + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values new file mode 100644 index 0000000..39b1f51 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debhelper-deb-build-options +Description: Test the value of DEB_BUILD_OPTIONS diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc new file mode 100644 index 0000000..f8ef095 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc @@ -0,0 +1,2 @@ +Testname: debhelper-deb-build-options +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints new file mode 100644 index 0000000..00e0056 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints @@ -0,0 +1 @@ +debhelper-deb-build-options (source): debian-rules-sets-DEB_BUILD_OPTIONS [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules new file mode 100755 index 0000000..111f495 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DH_COMPAT=10 + +%: + dh $@ + +DH_COMPAT=8 diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values new file mode 100644 index 0000000..31ffc38 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debhelper-dh-compat +Description: Test the value of DH_COMPAT diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc new file mode 100644 index 0000000..72261d3 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc @@ -0,0 +1,4 @@ +Testname: debhelper-dh-compat +Profile: lintian-test +Options: --include-dir ./lintian-include-dir +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints new file mode 100644 index 0000000..cd1a705 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints @@ -0,0 +1 @@ +debhelper-dh-compat (source): debian-rules-sets-DH_COMPAT [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile new file mode 100644 index 0000000..f0e27cf --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile @@ -0,0 +1,2 @@ +Profile: lintian-test/main +Extends: debian/main diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level new file mode 100644 index 0000000..d91eeb3 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level @@ -0,0 +1,3 @@ +@include-parent +deprecated=1 +recommended=100 diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in new file mode 100644 index 0000000..6a7a04d --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in @@ -0,0 +1,33 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Rules-Requires-Root: no + +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. It may + be an empty package. + +Package: debhelper-pre-depends +Architecture: [% $package_architecture %] +Pre-Depends: ${misc:Depends} +Description: [% $description %] extra string + 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. Extra + string to not to trigger duplicated description tags. It may + be an empty package. + +Package: debhelper-suggests +Architecture: [% $package_architecture %] +Suggests: ${misc:Depends} +Description: [% $description %] another extra string + 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. Extra + string. It may be an empty package. diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules new file mode 100755 index 0000000..a622013 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f +%: + dh $@ + +binary: binary-arch binary-indep +binary-arch: +binary-indep: + -dh_clideps + -dh_gstscancodecs + dh_lisp || true + # Should trigger a versioned dependency requirement for dpatch + -dh_dpatch_patch +# We don't warn about commands inside make conditionals, so none of these +# get any warnings. +ifeq "$(USE_DH_PYTHON3)" "y" + dh_python3 +else + ifeq "$(USE_PYSUPPORT)" "y" + dh_pysupport + endif +endif + dh binary-indep + -dh_strip_nondeterminism + -dh_scour diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values new file mode 100644 index 0000000..7857128 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: debhelper-no-depends +Dh-Compat-Level: 9 +Description: Test dependency requirements for debhelper +# Overrides the "data/debhelper/compat-level" diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc new file mode 100644 index 0000000..5d1b514 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc @@ -0,0 +1,5 @@ +Testname: debhelper-no-depends +Profile: lintian-test +Options: --include-dir ./lintian-include-dir +Check: debian/rules +# Overrides the "data/debhelper/compat-level" diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints new file mode 100644 index 0000000..f4bb314 --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints @@ -0,0 +1 @@ +debhelper-no-depends (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile new file mode 100644 index 0000000..f0e27cf --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile @@ -0,0 +1,2 @@ +Profile: lintian-test/main +Extends: debian/main diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level new file mode 100644 index 0000000..67c590a --- /dev/null +++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level @@ -0,0 +1,2 @@ +@include-parent +pedantic=8 diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules new file mode 100755 index 0000000..38cb607 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BADFLAGS_MAINT_APPEND = -Wl,--as-needed + +export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--no-as-needed -lfoo, -Wl,-as-needed -lsuffix +export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--as-needed -Wl,--no-as-needed -lsuffix + +%: + dh $@ + +override_dh_autoreconf: + -dh_autoreconf --as-needed diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values new file mode 100644 index 0000000..54f985e --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debian-rules-uses-as-needed-linker-flag +Description: Test for --as-needed in debian/rules. diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc new file mode 100644 index 0000000..5afa7c8 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-rules-uses-as-needed-linker-flag +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints new file mode 100644 index 0000000..f7f3eac --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints @@ -0,0 +1,2 @@ +debian-rules-uses-as-needed-linker-flag (source): debian-rules-uses-as-needed-linker-flag [debian/rules:3] +debian-rules-uses-as-needed-linker-flag (source): debian-rules-uses-as-needed-linker-flag [debian/rules:12] diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules new file mode 100755 index 0000000..88fd899 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + # Good + echo $(shell py3versions -s) + echo $(shell py3versions -vs) + echo $(shell py3versions -sv) + echo $(shell py3versions -v) + + # Bad + echo $(shell py3versions -i) + echo $(shell py3versions -vi) + echo $(shell py3versions --installed) + echo $(shell py3versions --verbose --installed) diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values new file mode 100644 index 0000000..cf63f8e --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debian-rules-uses-installed-python-versions +Description: Tests for py3versions -i diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc new file mode 100644 index 0000000..86dc9f4 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-rules-uses-installed-python-versions +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints new file mode 100644 index 0000000..baeea5d --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints @@ -0,0 +1,7 @@ +debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -vs [debian/rules:9] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -sv [debian/rules:10] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -s [debian/rules:8] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions -vi [debian/rules:15] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions -i [debian/rules:14] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions --verbose --installed [debian/rules:17] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions --installed [debian/rules:16] diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules new file mode 100755 index 0000000..d92a6d5 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + # Good + echo $(shell py3versions -v) + + # Bad + echo $(shell py3versions -s) + echo $(shell py3versions -vs) + echo $(shell py3versions -sv) + echo $(shell py3versions --supported) diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values new file mode 100644 index 0000000..ee784f1 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debian-rules-uses-supported-python-versions-without-python-all-build-depends +Description: Tests for py3versions -s without python3-all build-depends diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc new file mode 100644 index 0000000..2068b7e --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-rules-uses-supported-python-versions-without-python-all-build-depends +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints new file mode 100644 index 0000000..06b59c5 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints @@ -0,0 +1,4 @@ +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -vs [debian/rules:12] +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -sv [debian/rules:13] +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -s [debian/rules:11] +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions --supported [debian/rules:14] diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules new file mode 100644 index 0000000..000210b --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh ${@} diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values new file mode 100644 index 0000000..eb6c44c --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: curly-braces +Skeleton: source-native +Description: Uses dh sequencer with curly variable notation (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc new file mode 100644 index 0000000..c37f999 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc @@ -0,0 +1,5 @@ +Testname: curly-braces +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: Debian Bug#947115 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules new file mode 100644 index 0000000..76cf643 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export USER=fake +export HOME=$(CURDIR)/debian/fake-home + +$(CURDIR)/debian/fake-home: + mkdir $(CURDIR)/debian/fake-home + +%: $(CURDIR)/debian/fake-home + dh $@ diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values new file mode 100644 index 0000000..3fc8de8 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: double-quotes +Skeleton: source-native +Description: Uses dh sequencer with explicit dependency (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc new file mode 100644 index 0000000..1c1cef1 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc @@ -0,0 +1,5 @@ +Testname: dependency +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: #968108 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules new file mode 100644 index 0000000..5875e30 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh "$@" diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values new file mode 100644 index 0000000..443e7fc --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: double-quotes +Skeleton: source-native +Description: Uses dh sequencer with double quotes around variable (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc new file mode 100644 index 0000000..10cff19 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc @@ -0,0 +1,5 @@ +Testname: double-quotes +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: https://salsa.debian.org/lintian/lintian/merge_requests/288 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules new file mode 100644 index 0000000..6ad65cc --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + PREFIX=/usr dh $@ diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values new file mode 100644 index 0000000..cc67457 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: environment-prefix +Skeleton: source-native +Description: Uses dh sequencer with a prefix setting an environment variable (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc new file mode 100644 index 0000000..13dab36 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc @@ -0,0 +1,6 @@ +Testname: environment-prefix +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: + Bug#981712 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules new file mode 100644 index 0000000..f7b25c5 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +.PHONY: binary binary-arch binary-indep build build-arch build-indep clean install +binary-arch build build-arch build-indep clean install: + dh $@ + +binary binary-indep: + dh $@ + +build-stamp: + dh $@ diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values new file mode 100644 index 0000000..50af747 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: explicit-targets +Skeleton: source-native +Description: Uses dh sequencer but not the % target wildcard diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc new file mode 100644 index 0000000..7e1ff3d --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc @@ -0,0 +1,5 @@ +Testname: explicit-targets +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: Debian Bug#930679 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules new file mode 100755 index 0000000..c3ff202 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values new file mode 100644 index 0000000..90a87b4 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: no-dh-sequencer +Skeleton: upload-native +Package-Architecture: any +Dh-Compat-Level: 7 +Description: Uses standard debhelper targets but not the dh sequencer +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in new file mode 100755 index 0000000..bbdb5cb --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in @@ -0,0 +1,5 @@ +#!/bin/sh + +# not using any templates, but dh_clean requires compat + +echo "[% $dh_compat_level %]" > "$1/debian/compat" diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc new file mode 100644 index 0000000..29c542e --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc @@ -0,0 +1,3 @@ +Testname: no-dh-sequencer +Check: debian/rules/dh-sequencer +See-Also: Debian Bug#930679 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints new file mode 100644 index 0000000..a2ff5e0 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints @@ -0,0 +1 @@ +no-dh-sequencer (source): no-dh-sequencer [debian/rules] diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules new file mode 100644 index 0000000..0ceea36 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $(@) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values new file mode 100644 index 0000000..07d9a39 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: parentheses +Skeleton: source-native +Description: Uses dh sequencer with parentheses around variable name (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc new file mode 100644 index 0000000..95b6225 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc @@ -0,0 +1,5 @@ +Testname: parentheses +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: Debian Bug#947115 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules new file mode 100644 index 0000000..2822991 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh '$@' diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values new file mode 100644 index 0000000..4add931 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: single-quotes +Skeleton: source-native +Description: Uses dh sequencer with single quotes around variable (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc new file mode 100644 index 0000000..895f051 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc @@ -0,0 +1,5 @@ +Testname: single-quotes +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: https://salsa.debian.org/lintian/lintian/merge_requests/288 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules new file mode 100644 index 0000000..f547287 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +%: + # this comment should not trigger a false positive + # neither should this one + dh $(@) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values new file mode 100644 index 0000000..933afac --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: with-comments +Skeleton: source-native +Description: Uses dh sequencer but with comments inside the Makefile recipe (false positive) diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc new file mode 100644 index 0000000..6a234e4 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc @@ -0,0 +1,5 @@ +Testname: with-comments +Check: debian/rules/dh-sequencer +Test-Against: + no-dh-sequencer +See-Also: Debian Bug#960485 diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian new file mode 100644 index 0000000..5ce4495 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian @@ -0,0 +1,6 @@ +dh-test for Debian +------------------ + + + + -- Frank Lichtenheld , Thu, 4 Aug 2005 23:09:00 +0200 diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in new file mode 100644 index 0000000..580f946 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +generic-dh-make-2005 ([% $version %]) [% $distribution %]; urgency=low + + * Initial release Closes: #nnnn (nnnn is the bug number of your ITP) + + -- Frank Lichtenheld Thu, 4 Aug 2005 23:09:00 +0200 + diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in new file mode 100644 index 0000000..4cbbc4e --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in @@ -0,0 +1,12 @@ +Source: generic-dh-make-2005 +Section: unknown +Priority: optional +Maintainer: Frank Lichtenheld +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.2 + +Package: generic-dh-make-2005 +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: + diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright new file mode 100644 index 0000000..2bcce49 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Frank Lichtenheld on +Thu, 4 Aug 2005 23:09:00 +0200. + +It was downloaded from + +Copyright Holder: + +License: + + diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules new file mode 100755 index 0000000..ee4bffb --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules @@ -0,0 +1,100 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. +# $(MAKE) + #docbook-to-man debian/dh-test.sgml > dh-test.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/dh-test. +# $(MAKE) install DESTDIR=$(CURDIR)/debian/dh-test + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman +# dh_dhelp + #dh_suidregister # originally there, but no longer supported + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values new file mode 100644 index 0000000..01371b6 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values @@ -0,0 +1,8 @@ +Testname: generic-dh-make-2005 +Skeleton: upload-builder-only +Author: Frank Lichtenheld +Version: 1-1 +Package-Architecture: any +Dh-Compat-Level: 7 +Description: Generic dh_make template generated in 2005 +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README new file mode 100644 index 0000000..e6a5a27 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README @@ -0,0 +1,9 @@ +This is something close to the results of running dh_make on a basically +empty upstream tarball in 2005, but with the example files removed. It's +a useful test for the various dh_make template and boilerplate tags, as +well as many tags for ways of doing things dh_make used to promote but are +now deprecated or old debhelper commands that are now deprecated. + +Please don't modify anything about the files in this package; instead, add +new tags as needed when Lintian adds new checks. This test case is +intended to continue to be a test of Lintian's handling of old packages. diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in new file mode 100755 index 0000000..bbdb5cb --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in @@ -0,0 +1,5 @@ +#!/bin/sh + +# not using any templates, but dh_clean requires compat + +echo "[% $dh_compat_level %]" > "$1/debian/compat" diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc new file mode 100644 index 0000000..0608338 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc @@ -0,0 +1,2 @@ +Testname: generic-dh-make-2005 +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints new file mode 100644 index 0000000..ccb5124 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints @@ -0,0 +1,4 @@ +generic-dh-make-2005 (source): debian-rules-should-not-set-CFLAGS-from-noopt [debian/rules] +generic-dh-make-2005 (source): debian-rules-missing-required-target build-indep [debian/rules] +generic-dh-make-2005 (source): debian-rules-missing-required-target build-arch [debian/rules] +generic-dh-make-2005 (source): debian-rules-ignores-make-clean-error [debian/rules:47] diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in new file mode 100644 index 0000000..7a4298d --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in @@ -0,0 +1,2 @@ +[% $source %] ([% $version %]) unstable; + -- a <> Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in new file mode 100644 index 0000000..575773e --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in @@ -0,0 +1,5 @@ +Source: [% $source %] +Maintainer: a + +Package: [% $source %] +Architecture: [% $package_architecture %] diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules new file mode 100755 index 0000000..62da96d --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +build: +binary: + install -d debian/generic-empty debian/generic-empty/DEBIAN + dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty + dpkg --build debian/generic-empty .. + +clean: + rm -rf debian/generic-empty diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values b/t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values new file mode 100644 index 0000000..26d9bdc --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: generic-empty +Package-Architecture: all +Description: Pathological empty package diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README b/t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README new file mode 100644 index 0000000..ed1b149 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README @@ -0,0 +1,4 @@ +This is the smallest possible Debian package that I can get +dpkg-buildpackage to build (with the exception of this documentation). +It tests Lintian handling of packages that are missing everything one +would normally expect to have. diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build b/t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build new file mode 100755 index 0000000..1a3929a --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build @@ -0,0 +1,6 @@ +#!/bin/sh +# +# Remove as many files from the package as possible. + +rm -f "$1/debian/compat" +rm -f "$1/debian/copyright" diff --git a/t/recipes/checks/debian/rules/generic-empty/eval/desc b/t/recipes/checks/debian/rules/generic-empty/eval/desc new file mode 100644 index 0000000..24610e0 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/eval/desc @@ -0,0 +1,2 @@ +Testname: generic-empty +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/generic-empty/eval/hints b/t/recipes/checks/debian/rules/generic-empty/eval/hints new file mode 100644 index 0000000..c6a9a40 --- /dev/null +++ b/t/recipes/checks/debian/rules/generic-empty/eval/hints @@ -0,0 +1,4 @@ +generic-empty (source): debian-rules-missing-required-target build-indep [debian/rules] +generic-empty (source): debian-rules-missing-required-target build-arch [debian/rules] +generic-empty (source): debian-rules-missing-required-target binary-indep [debian/rules] +generic-empty (source): debian-rules-missing-required-target binary-arch [debian/rules] diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian new file mode 100644 index 0000000..29f561c --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: ü. + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/README.Debian new file mode 100644 index 0000000..94bcc0a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/changelog.in new file mode 100644 index 0000000..39301d6 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/changelog.in @@ -0,0 +1,47 @@ +binary ([% $version %]) [% $distribution %]; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles new file mode 100644 index 0000000..d1a0843 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control new file mode 100644 index 0000000..c797357 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/copyright new file mode 100644 index 0000000..1d6806d --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated nätionäl äncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/doc-base new file mode 100644 index 0000000..7e5b38f --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad ® character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop new file mode 100644 index 0000000..f6ce8e3 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/hello.desktop new file mode 100644 index 0000000..f795468 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu new file mode 100644 index 0000000..e8972f4 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu-method new file mode 100644 index 0000000..9f07bd7 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/postinst new file mode 100644 index 0000000..29e1861 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/rules new file mode 100755 index 0000000..a962ea9 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/templates new file mode 100644 index 0000000..3d92861 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-binary/build-spec/fill-values new file mode 100644 index 0000000..b503871 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: legacy-binary +Source: binary +Version: 4-1.1 +Description: Legacy test "binary" diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/INSTALL new file mode 100644 index 0000000..3b50ea9 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/Makefile new file mode 100644 index 0000000..da1dc55 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/hello.c new file mode 100644 index 0000000..2fb04e1 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/t/recipes/checks/debian/rules/legacy-binary/eval/desc b/t/recipes/checks/debian/rules/legacy-binary/eval/desc new file mode 100644 index 0000000..bf4eb52 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-binary +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/legacy-binary/eval/hints b/t/recipes/checks/debian/rules/legacy-binary/eval/hints new file mode 100644 index 0000000..76fa038 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/eval/hints @@ -0,0 +1,4 @@ +binary (source): debian-rules-missing-required-target build-indep [debian/rules] +binary (source): debian-rules-missing-required-target binary-indep [debian/rules] +binary (source): debian-rules-ignores-make-clean-error [debian/rules:14] +binary (source): debian-rules-calls-pwd [debian/rules:9] diff --git a/t/recipes/checks/debian/rules/legacy-binary/eval/post-test b/t/recipes/checks/debian/rules/legacy-binary/eval/post-test new file mode 100644 index 0000000..3deefd5 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-binary/eval/post-test @@ -0,0 +1,3 @@ +s/arch-dep-package-has-big-usr-share .*kB .*%/arch-dep-package-has-big-usr-share/ +/: hardening-.*/ d +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in new file mode 100644 index 0000000..f5e308e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +debconf ([% $version %]) [% $distribution %]; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control new file mode 100644 index 0000000..bf9f4e9 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper (>= 4), dpatch +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + 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. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + 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. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + 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. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright new file mode 100644 index 0000000..84843ee --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates new file mode 100644 index 0000000..93f8071 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst new file mode 100644 index 0000000..56ab871 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst new file mode 100644 index 0000000..bf6f074 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config new file mode 100644 index 0000000..9e32d06 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst new file mode 100644 index 0000000..b387037 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates new file mode 100644 index 0000000..811bb6c --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de new file mode 100644 index 0000000..f9ea121 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst new file mode 100644 index 0000000..4ce41f0 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates new file mode 100644 index 0000000..5d7cf5a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..d0c82f0 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po new file mode 100644 index 0000000..86c5796 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po new file mode 100644 index 0000000..c74deb2 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output new file mode 100644 index 0000000..c3df1a5 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po new file mode 100644 index 0000000..8dcc0ff --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..914c77f --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions new file mode 100644 index 0000000..6f290b0 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules new file mode 100755 index 0000000..933901a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values new file mode 100644 index 0000000..186615f --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-native +Testname: legacy-debconf +Source: debconf +Version: 1~rc1 +Description: Legacy test "debconf" +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/rules/legacy-debconf/eval/desc b/t/recipes/checks/debian/rules/legacy-debconf/eval/desc new file mode 100644 index 0000000..87b1b86 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-debconf +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/legacy-debconf/eval/hints b/t/recipes/checks/debian/rules/legacy-debconf/eval/hints new file mode 100644 index 0000000..fee3d99 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/eval/hints @@ -0,0 +1,2 @@ +debconf (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:58] +debconf (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:54] diff --git a/t/recipes/checks/debian/rules/legacy-debconf/eval/post-test b/t/recipes/checks/debian/rules/legacy-debconf/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-debconf/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian new file mode 100644 index 0000000..e289bfb --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in new file mode 100644 index 0000000..00cdc77 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +etcfiles ([% $version %]) [% $distribution %]; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles new file mode 100644 index 0000000..76032b7 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only new file mode 100644 index 0000000..a4b3895 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control new file mode 100644 index 0000000..f3dbda7 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + 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. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules new file mode 100755 index 0000000..97ff09f --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values new file mode 100644 index 0000000..86deb10 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: legacy-etcfiles +Source: etcfiles +Version: 1 +Description: Legacy test "etcfiles" diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper new file mode 100644 index 0000000..23656f4 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper new file mode 100644 index 0000000..f3dc68b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc new file mode 100644 index 0000000..e11916e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-etcfiles +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints new file mode 100644 index 0000000..0a58f09 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (source): debian-rules-missing-required-target binary-arch [debian/rules] diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in new file mode 100644 index 0000000..38fc4e9 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in @@ -0,0 +1,10 @@ +fields ([% $version %]) [% $distribution %]; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control new file mode 100644 index 0000000..d980a6e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + 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. It may + be an empty package. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + 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. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules new file mode 100755 index 0000000..11ad4a7 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values new file mode 100644 index 0000000..fe90eb0 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: legacy-fields +Source: fields +Version: 1.5-.3 +Description: Legacy test "fields" diff --git a/t/recipes/checks/debian/rules/legacy-fields/eval/desc b/t/recipes/checks/debian/rules/legacy-fields/eval/desc new file mode 100644 index 0000000..e29ae38 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-fields +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/legacy-fields/eval/hints b/t/recipes/checks/debian/rules/legacy-fields/eval/hints new file mode 100644 index 0000000..4ec1eba --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/eval/hints @@ -0,0 +1 @@ +fields (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] diff --git a/t/recipes/checks/debian/rules/legacy-fields/eval/post-test b/t/recipes/checks/debian/rules/legacy-fields/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-fields/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..935c633 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in @@ -0,0 +1,41 @@ +scripts ([% $version %]) [% $distribution %]; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..75a521f --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Build-Depends-Indep: dpatch +Standards-Version: 3.2.1 + +Package: scripts +Architecture: [% $package_architecture %] +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + 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. diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright new file mode 100644 index 0000000..ad8a119 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list new file mode 100644 index 0000000..3b9d37e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list @@ -0,0 +1,11 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..7c5baf1 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..8fa75a2 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..0799557 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules new file mode 100755 index 0000000..ee3677e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/usr/src/scripts + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/ + install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/ + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles new file mode 100644 index 0000000..01a371a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch new file mode 100644 index 0000000..dba5815 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values new file mode 100644 index 0000000..8a68457 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: legacy-scripts +Source: scripts +Version: 6ds-1ubuntu0.5.10.1 +Package-Architecture: all +Skeleton: upload-non-native +Description: Legacy test "scripts" diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo new file mode 100644 index 0000000..eaf47a1 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo new file mode 100755 index 0000000..e005037 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo new file mode 100644 index 0000000..7f59139 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch new file mode 100755 index 0000000..65cbf37 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch @@ -0,0 +1,39 @@ +#! /bin/sh -e + +# DP: Use sensible-editor instead of vi as fallback editor + +# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being +# a valid dpatch, so don't warn about it if it's in /usr/src. + +dir= +if [ $# -eq 3 -a "$2" = '-d' ]; then + pdir="-d $3" + dir="$3/" +elif [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) + patch $pdir -f --no-backup-if-mismatch -p0 < $0 + ;; + -unpatch) + patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 + ;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +esac +exit 0 + +--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100 ++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100 +@@ -134,7 +134,7 @@ + # If they don't have a preferred editor set, then use + if [ -z "$VISUAL" ]; then + if [ -z "$EDITOR" ]; then +- EDIT=vi ++ EDIT=/usr/bin/sensible-editor + else + EDIT="$EDITOR" + fi diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre new file mode 100644 index 0000000..70e2c74 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken new file mode 100644 index 0000000..e4dfa92 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other new file mode 100644 index 0000000..adb4795 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb new file mode 100644 index 0000000..6b994dd --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton new file mode 100644 index 0000000..c868508 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken new file mode 100644 index 0000000..56f574d --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo new file mode 100644 index 0000000..52c003e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo new file mode 100644 index 0000000..6b787b5 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1 new file mode 100644 index 0000000..fc632c8 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2 new file mode 100644 index 0000000..afd9cfe --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3 new file mode 100644 index 0000000..44baf75 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo new file mode 100644 index 0000000..5b27ed0 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo new file mode 100644 index 0000000..cbbfb2e --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo new file mode 100644 index 0000000..e0595e6 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo new file mode 100644 index 0000000..8024605 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken new file mode 100644 index 0000000..7b79074 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo new file mode 100644 index 0000000..bcbc471 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo new file mode 100755 index 0000000..533595a --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo new file mode 100644 index 0000000..035c9ad --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test new file mode 100644 index 0000000..ca49d72 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build new file mode 100755 index 0000000..b5649a8 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build @@ -0,0 +1,5 @@ +#!/bin/sh + +DIR="$1" + +rm -f "$DIR/debian/compat" diff --git a/t/recipes/checks/debian/rules/legacy-scripts/eval/desc b/t/recipes/checks/debian/rules/legacy-scripts/eval/desc new file mode 100644 index 0000000..e56bb23 --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-scripts +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/legacy-scripts/eval/hints b/t/recipes/checks/debian/rules/legacy-scripts/eval/hints new file mode 100644 index 0000000..cb1cdbd --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/eval/hints @@ -0,0 +1,2 @@ +scripts (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +scripts (source): binary-arch-rules-but-pkg-is-arch-indep [debian/rules] diff --git a/t/recipes/checks/debian/rules/legacy-scripts/eval/post-test b/t/recipes/checks/debian/rules/legacy-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/rules/legacy-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values b/t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values new file mode 100644 index 0000000..709e867 --- /dev/null +++ b/t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: source-native +Testname: permissions-775 +Package-Architecture: all +Description: Test in which debian/rules has group write permissions. diff --git a/t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build b/t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build new file mode 100755 index 0000000..393800f --- /dev/null +++ b/t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build @@ -0,0 +1,5 @@ +#!/bin/sh + +packagedir=$1 + +chmod 775 "$packagedir/debian/rules" diff --git a/t/recipes/checks/debian/rules/permissions-775/eval/desc b/t/recipes/checks/debian/rules/permissions-775/eval/desc new file mode 100644 index 0000000..47f7801 --- /dev/null +++ b/t/recipes/checks/debian/rules/permissions-775/eval/desc @@ -0,0 +1,4 @@ +Testname: permissions-775 +Check: debian/rules +Test-Against: debian-rules-not-executable +See-Also: Bug#945869, Bug#945869 diff --git a/t/recipes/checks/debian/rules/permissions-775/eval/hints b/t/recipes/checks/debian/rules/permissions-775/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules new file mode 100755 index 0000000..dbb0df1 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh build-arch + touch $@ + +build: build-arch build-indep + +# From deejayd 0.8.2-1 +clean: $(PYVERS:%=clean-python%) + +clean-python%: + dh_testdir + dh_testroot + + rm -f build-python* + python$* setup.py clean --all + find $(CURDIR) -name '*pyc' -exec rm -f {} \; + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh install + touch $@ + +binary-arch: install + dh $@ + +binary-indep: install + dh $@ + +binary: binary-arch binary-indep +.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values new file mode 100644 index 0000000..7760bbe --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-build-dep-pattern +Description: Check recognition of pattern dependencies diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc new file mode 100644 index 0000000..075298a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc @@ -0,0 +1,3 @@ +Testname: rules-build-dep-pattern +See-Also: Bug#536405 +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints new file mode 100644 index 0000000..9827600 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints @@ -0,0 +1 @@ +rules-build-dep-pattern (source): rules-require-build-prerequisite (does not satisfy python2:any | python2-dev:any | python2.7:any | python2.7-dev:any | python3:any | python3-dev:any | python3-all:any | python3-all-dev:any | python3.4:any | python3.4-dev:any | python3.5:any | python3.5-dev:any | python3.6:any | python3.6-dev:any | python3.7:any | python3.7-dev:any) [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules new file mode 100755 index 0000000..0407d98 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_strip: + dh_strip prefix --ddeb-migration=foo suffix + dh_strip prefix --dbgsym-migration=foo suffix + dh_strip prefix --dbgsym-migration='apostrophe' suffix + dh_strip prefix --dbgsym-migration='apostrophe << 1' suffix diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values new file mode 100644 index 0000000..b6b29b8 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-debug-symbol-migration-possibly-complete +Description: Test for --dbgsym-migration etc. diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc new file mode 100644 index 0000000..fbb156b --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-debug-symbol-migration-possibly-complete +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints new file mode 100644 index 0000000..39d2436 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints @@ -0,0 +1,4 @@ +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --ddeb-migration=foo [debian/rules:7] +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration=foo [debian/rules:8] +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration='apostrophe' [debian/rules:9] +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration='apostrophe << 1' [debian/rules:10] diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules new file mode 100755 index 0000000..6f702fe --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + /bin/true +endif diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values new file mode 100644 index 0000000..2e8d239 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a +Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive) diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc new file mode 100644 index 0000000..9443f92 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a +Test-Against: + override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules new file mode 100755 index 0000000..11bd6cc --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Empty target follows +override_dh_auto_test: diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values new file mode 100644 index 0000000..17ed76d --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b +Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive) diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc new file mode 100644 index 0000000..e174c5a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b +Test-Against: + override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules new file mode 100755 index 0000000..91dd51c --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + dh_auto_test + dh_auto_test # Comment + mkdir ignore/ + rm -rf ignore/ + -dh_auto_test -- SUFFIX=1 + @dh_auto_test -- SUFFIX=1 + -cp -r ignore ignore/ + FOO=mydir dh_auto_test -- BAR=2 + : Disabled + echo "Disabled" + @echo "Disabled" + -echo "Disabled" + -mv -v ignore ignore/ + [ true ] || echo ignore + ENV="var" \ + ENV="var" \ + dh_auto_test || true + rm -f missing + test true && echo "foo" + rmdir missing || true + ln -sf foo bar + true + /bin/true diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values new file mode 100644 index 0000000..b4bb0d6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c +Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive) diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc new file mode 100644 index 0000000..e9756fe --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c +Test-Against: + override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules new file mode 100755 index 0000000..b46c122 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + /bin/sync diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values new file mode 100644 index 0000000..afa76a3 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-auto-test-does-not-check-deb-build-options +Description: Test for missing checks for DEB_BUILD_PROFILES diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc new file mode 100644 index 0000000..ec297d9 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-dh-auto-test-does-not-check-deb-build-options +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints new file mode 100644 index 0000000..8d657b1 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints @@ -0,0 +1 @@ +rules-dh-auto-test-does-not-check-deb-build-options (source): override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS [debian/rules:6] diff --git a/t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules new file mode 100755 index 0000000..8ea3133 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f +%: + dh $@ + +# Test for calling debhelper commands out of order. We take advantage here +# of the fact checks/rules doesn't care what target the commands are called +# from by using several uncalled targets. + +reverse: + dh_builddeb + dh_gencontrol + dh_installdeb + dh_shlibdeps + dh_makeshlibs + +shared-order: + dh_shlibdeps + dh_makeshlibs + dh_installdeb + dh_gencontrol + dh_builddeb + +multiple-package: + dh_makeshlibs -pfoo + dh_shlibdeps -pfoo + dh_installdeb -pfoo + dh_gencontrol -pfoo + dh_builddeb -pfoo + + dh_makeshlibs -pbar + dh_gencontrol -pbar + dh_installdeb -pbar + dh_shlibdeps -pbar + dh_builddeb -pbar diff --git a/t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values new file mode 100644 index 0000000..fae0b62 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-order +Description: Test order of dh command invocations diff --git a/t/recipes/checks/debian/rules/rules-dh-order/eval/desc b/t/recipes/checks/debian/rules/rules-dh-order/eval/desc new file mode 100644 index 0000000..2ce04c4 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-order/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-dh-order +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-order/eval/hints b/t/recipes/checks/debian/rules/rules-dh-order/eval/hints new file mode 100644 index 0000000..b0d36b0 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-order/eval/hints @@ -0,0 +1,5 @@ +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_shlibdeps [debian/rules:13] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:18] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:14] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_installdeb [debian/rules:12] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_gencontrol [debian/rules:11] diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules new file mode 100755 index 0000000..79fc28b --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +build: build-stamp +build-arch: +build-indep: + +build-stamp: + dh build + touch $@ + +clean: + dh $@ + +install: install-stamp +install-stamp: build-stamp + dh install + touch $@ + +binary-arch: install + dh $@ + # This target is not empty, but it should be + -install foo bar + +binary-indep: install + dh $@ + +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values new file mode 100644 index 0000000..5307261 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-unused-target-nonempty +Description: Allow dh in unused targets, but nothing else diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc new file mode 100644 index 0000000..55593d3 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc @@ -0,0 +1,3 @@ +Testname: rules-dh-unused-target-nonempty +See-Also: <20080806175819.GV11882@mail-vs.djpig.de> +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints new file mode 100644 index 0000000..4a6f8cd --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints @@ -0,0 +1 @@ +rules-dh-unused-target-nonempty (source): binary-arch-rules-but-pkg-is-arch-indep [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules new file mode 100755 index 0000000..ca3e9b5 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh build-arch + touch $@ + +build: build-arch build-indep + +clean: + dh $@ + +install: install-stamp +install-stamp: build-stamp + dh install + touch $@ + +binary-arch: install + dh $@ + +binary-indep: install + dh $@ + +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values new file mode 100644 index 0000000..bdeaa0e --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-dh-unused-target +Description: Allow dh in unused targets diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc new file mode 100644 index 0000000..5700bcb --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-dh-unused-target +Test-Against: binary-arch-rules-but-pkg-is-arch-indep +See-Also: <20080806175819.GV11882@mail-vs.djpig.de> +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in new file mode 100644 index 0000000..4b34442 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends-Indep: [% $build_depends %], python +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +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. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/rules new file mode 100755 index 0000000..e1f72bf --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes +DH_EXTRA_ADDONS = systemd + +%: + dh $@ + +clean: + dh_clean + echo $(DEB_BUILD_OPTS) $(PWD) + @echo $(_) + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + +override_dh_shlibdeps: + dh_shlibdeps -V "liblintian0 (>= 0.0.1)" diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-general/build-spec/fill-values new file mode 100644 index 0000000..f3cc7ce --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-general/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: rules-general +Package-Architecture: all +Description: Test various debian/rules checks +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/rules/rules-general/eval/desc b/t/recipes/checks/debian/rules/rules-general/eval/desc new file mode 100644 index 0000000..8adced2 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-general/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-general +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-general/eval/hints b/t/recipes/checks/debian/rules/rules-general/eval/hints new file mode 100644 index 0000000..8587a20 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-general/eval/hints @@ -0,0 +1,8 @@ +rules-general (source): missing-build-depends-for-clean-target-in-debian-rules (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +rules-general (source): debian-rules-uses-special-shell-variable [debian/rules:15] +rules-general (source): debian-rules-uses-deb-build-opts [debian/rules:14] +rules-general (source): debian-rules-updates-control-automatically [debian/rules:6] +rules-general (source): debian-rules-should-not-use-DH_EXTRA_ADDONS systemd [debian/rules:7] +rules-general (source): debian-rules-passes-version-info-to-dh_shlibdeps [debian/rules:23] +rules-general (source): debian-rules-is-dh_make-template [debian/rules:17] +rules-general (source): debian-rules-calls-pwd [debian/rules:14] diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules new file mode 100755 index 0000000..3445f5c --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +%: + dh $@ + +binary-arch: + # EMPTY + +define checkdir + test -f debian/rules +endef diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values new file mode 100644 index 0000000..84cbc2b --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-ignore-define +Description: Ignore define blocks when checking rule files diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/eval/desc b/t/recipes/checks/debian/rules/rules-ignore-define/eval/desc new file mode 100644 index 0000000..eab87e6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignore-define/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-ignore-define +Test-Against: binary-arch-rules-but-pkg-is-arch-indep +See-Also: Debian Bug#510869 +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/eval/hints b/t/recipes/checks/debian/rules/rules-ignore-define/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile new file mode 100644 index 0000000..959feb8 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile @@ -0,0 +1,3 @@ +all: + +distclean: diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules new file mode 100755 index 0000000..63556d9 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_clean: + $(MAKE) -Cdebian distclean + + diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values new file mode 100644 index 0000000..e882565 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-ignores-error-clean-fp +Description: Check against Lintian false-positive error diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc new file mode 100644 index 0000000..5e15233 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc @@ -0,0 +1,3 @@ +Testname: rules-ignores-error-clean-fp +Test-Against: debian-rules-ignores-make-clean-error +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules new file mode 100755 index 0000000..b86584f --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_clean: + -$(MAKE) distclean + + diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values new file mode 100644 index 0000000..e9f8da3 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-ignores-error-clean +Description: Check for rules ignoring clean error diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile new file mode 100644 index 0000000..959feb8 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile @@ -0,0 +1,3 @@ +all: + +distclean: diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc new file mode 100644 index 0000000..e41f791 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-ignores-error-clean +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints new file mode 100644 index 0000000..ef99bcf --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints @@ -0,0 +1 @@ +rules-ignores-error-clean (source): debian-rules-ignores-make-clean-error [debian/rules:6] diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules new file mode 100755 index 0000000..3f98954 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values new file mode 100644 index 0000000..78c210e --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-native +Testname: rules-including-deprecated-makefiles +Dh-Compat-Level: 10 +Description: Test for debian/rules with deprecated included file +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) +Extra-Build-Depends: cdbs diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc new file mode 100644 index 0000000..e43aa61 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc @@ -0,0 +1,3 @@ +Testname: rules-including-deprecated-makefiles +Test-Conflicts: dh-buildinfo +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints new file mode 100644 index 0000000..c3f7ceb --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints @@ -0,0 +1 @@ +rules-including-deprecated-makefiles (source): debian-rules-uses-deprecated-makefile /usr/share/cdbs/1/rules/simple-patchsys.mk [debian/rules:4] diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules new file mode 100755 index 0000000..512e7e1 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f + + include debian/rules.mk diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk new file mode 100644 index 0000000..4e68614 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk @@ -0,0 +1,2 @@ +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values new file mode 100644 index 0000000..9d39a99 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-missing-targets-with-includes +Description: Test a debian/rules with targets included from another file diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc new file mode 100644 index 0000000..81a5355 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-missing-targets-with-includes +Test-Against: debian-rules-missing-required-target +See-Also: Debian Bug#607281 +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules new file mode 100755 index 0000000..e92755b --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +# This should trigger a missing $type targets, since +# we know the makefile does not implement them. +include /usr/share/javahelper/java-vars.mk + +clean build binary: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values new file mode 100644 index 0000000..36d2a17 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: rules-missing-targets-with-known-includes +Description: Test for debian/rules with known included file +Extra-Build-Depends: javahelper diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc new file mode 100644 index 0000000..34b9af5 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-missing-targets-with-known-includes +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints new file mode 100644 index 0000000..a8a5c95 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints @@ -0,0 +1,4 @@ +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target build-indep [debian/rules] +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target build-arch [debian/rules] +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target binary-indep [debian/rules] +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target binary-arch [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in new file mode 100644 index 0000000..8aa2a58 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in @@ -0,0 +1,27 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: any +Depends: ${misc:Depends}, [% $source %]-data +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. It may + be an empty package. + +Package: [% $source %]-data +Architecture: all +Depends: ${misc:Depends}, +Description: [% $description %] - data + 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. It may + be an empty package. + . + Data package. diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules new file mode 100644 index 0000000..3e3c60f --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +# Missing build-arch/build-indep :) +build clean binary binary-arch binary-indep: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values new file mode 100644 index 0000000..e98756d --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: rules-missing-targets +Version: 1.0+dfsg-1 +Skeleton: upload-non-native +Description: Test for missing targets in debian/rules diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/eval/desc b/t/recipes/checks/debian/rules/rules-missing-targets/eval/desc new file mode 100644 index 0000000..c0f6a2e --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-missing-targets +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/eval/hints b/t/recipes/checks/debian/rules/rules-missing-targets/eval/hints new file mode 100644 index 0000000..5c57705 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-missing-targets/eval/hints @@ -0,0 +1,2 @@ +rules-missing-targets (source): debian-rules-missing-required-target build-indep [debian/rules] +rules-missing-targets (source): debian-rules-missing-required-target build-arch [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules new file mode 100755 index 0000000..97e5f8d --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules @@ -0,0 +1,13 @@ +#!/bin/sh +# This should be a makefile. +exec dh "$@" + +# fake targets to trick lintian into believing the +# required targets are present (removed unrelated errors). +binary: +binary-arch: +binary-indep: +build: +build-arch: +build-indep: +clean: diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values new file mode 100644 index 0000000..33a94d1 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-not-makefile +Description: Check if the rules file is a makefile diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/eval/desc b/t/recipes/checks/debian/rules/rules-not-makefile/eval/desc new file mode 100644 index 0000000..8f22a2e --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-not-makefile/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-not-makefile +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/eval/hints b/t/recipes/checks/debian/rules/rules-not-makefile/eval/hints new file mode 100644 index 0000000..492bf1f --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-not-makefile/eval/hints @@ -0,0 +1 @@ +rules-not-makefile (source): debian-rules-not-a-makefile [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules new file mode 100755 index 0000000..c4d25dc --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_clean: + true + dh_clean # This rule is a false positive + +override_dh_fixperms: + true + $(overridden_command) # This rule is a false positive + +override_dh_fixperms-indep: + dh_fixperms + +override_dh_fixperms-arch: + dh_fixperms diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values new file mode 100644 index 0000000..64e6684 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-override-dh-foo-does-not-call-dh-foo-unrel +Description: Test for missing calls to dh_foo in override_dh_foo (false positives) diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc new file mode 100644 index 0000000..5518f3b --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc @@ -0,0 +1,5 @@ +Testname: rules-override-dh-foo-does-not-call-dh-foo-unrel +Test-Against: + override_dh_clean-does-not-call-dh_clean + override_dh_fixperms-does-not-call-dh_fixperms +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules new file mode 100755 index 0000000..9270348 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Empty targets +override_dh_clean: +override_dh_fixperms: +override_dh_fixperms-indep: +override_dh_fixperms-arch: diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values new file mode 100644 index 0000000..d652d91 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-override-dh-foo-does-not-call-dh-foo +Description: Test for missing calls to dh_foo in override_dh_foo diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc new file mode 100644 index 0000000..92a9b16 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-override-dh-foo-does-not-call-dh-foo +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints new file mode 100644 index 0000000..171356a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints @@ -0,0 +1,4 @@ +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:9] +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:8] +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:10] +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_clean-does-not-call-dh_clean [debian/rules:7] diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules new file mode 100644 index 0000000..9ea710e --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +DATE = $(shell dpkg-parsechangelog -SDate) +SOURCE = $(shell dpkg-parsechangelog -SSource) +SOURCE2 = $(shell dpkg-parsechangelog | grep ^Source | cut -d" " -f2) +VERSION = $(shell dpkg-parsechangelog -SVersion) +VERSION2 = $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p') +TIMESTAMP = $(shell dpkg-parsechangelog -STimestamp) + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values new file mode 100644 index 0000000..1f930fb --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-parses-dpkg-parsechangelog +Description: Test for debian/rules manually parsing dpkg-parsechangelog diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc new file mode 100644 index 0000000..33856af --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-parses-dpkg-parsechangelog +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints new file mode 100644 index 0000000..88e06d0 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints @@ -0,0 +1,6 @@ +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:8] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:7] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:6] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:5] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:4] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules new file mode 100755 index 0000000..eef8ddc --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = sanitize=+all + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values new file mode 100644 index 0000000..1fac498 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-sanitize-all-buildflag +Description: Test for sanitize=+all diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc new file mode 100644 index 0000000..606ce75 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-sanitize-all-buildflag +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints new file mode 100644 index 0000000..8602693 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints @@ -0,0 +1 @@ +rules-sanitize-all-buildflag (source): debian-rules-should-not-use-sanitize-all-buildflag [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules new file mode 100755 index 0000000..77454fa --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DEB_HOST_ARCH = invalid +export DEB_BUILD_ARCH := invalid +export DEB_TARGET_ARCH ?= false-positive + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values new file mode 100644 index 0000000..7d7bc0a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-sets-dpkg-architecture-variable +Description: Test for unnecessary dpkg-architecture assignments diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc new file mode 100644 index 0000000..bc0cb7a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-sets-dpkg-architecture-variable +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints new file mode 100644 index 0000000..e636d4b --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints @@ -0,0 +1,2 @@ +rules-sets-dpkg-architecture-variable (source): debian-rules-sets-dpkg-architecture-variable DEB_HOST_ARCH [debian/rules:3] +rules-sets-dpkg-architecture-variable (source): debian-rules-sets-dpkg-architecture-variable DEB_BUILD_ARCH [debian/rules:4] diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules new file mode 100755 index 0000000..fbbdc99 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zxz -z 9 + dh_builddeb -- -z9 -Z xz + dh_builddeb -- -z8 -Z xz + dh_builddeb -- -z9 -Zgzip + dh_builddeb -- -Zxz -Sextreme -z9 + dh_builddeb -- -Zxz -z9 -Sextreme diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values new file mode 100644 index 0000000..683fab9 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-should-not-use-custom-compression-settings +Description: Test for over-eager tarball compression etc. diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc new file mode 100644 index 0000000..8f09d8f --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-should-not-use-custom-compression-settings +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints new file mode 100644 index 0000000..09e88f1 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints @@ -0,0 +1,6 @@ +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z9 -Zgzip [debian/rules:10] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z9 -Z xz [debian/rules:8] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z8 -Z xz [debian/rules:9] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -z9 -Sextreme [debian/rules:12] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -Sextreme -z9 [debian/rules:11] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -z 9 [debian/rules:7] diff --git a/t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules new file mode 100644 index 0000000..fe1e7a6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +DEB_CFLAGS_APPEND:= -Wl,--as-needed + +%: + dh $@ + diff --git a/t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values new file mode 100644 index 0000000..6ca7a03 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-special-variables +Description: Test for debian/rules using special variables diff --git a/t/recipes/checks/debian/rules/rules-special-variables/eval/desc b/t/recipes/checks/debian/rules/rules-special-variables/eval/desc new file mode 100644 index 0000000..3fc89d6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-special-variables/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-special-variables +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-special-variables/eval/hints b/t/recipes/checks/debian/rules/rules-special-variables/eval/hints new file mode 100644 index 0000000..198af25 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-special-variables/eval/hints @@ -0,0 +1,2 @@ +rules-special-variables (source): debian-rules-uses-wrong-environment-variable [debian/rules:3] +rules-special-variables (source): debian-rules-uses-as-needed-linker-flag [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real b/t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real new file mode 100644 index 0000000..2d33f6a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values new file mode 100644 index 0000000..e68b709 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-symlink +Description: Test for debian/rules being a symlink diff --git a/t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build b/t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build new file mode 100755 index 0000000..c887d2c --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build @@ -0,0 +1,6 @@ +#!/bin/sh +# Create d/rules as a symlink. + +ROOT_DIR="$1" + +ln -fs rules.real "${ROOT_DIR}/debian/rules" diff --git a/t/recipes/checks/debian/rules/rules-symlink/eval/desc b/t/recipes/checks/debian/rules/rules-symlink/eval/desc new file mode 100644 index 0000000..858059c --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-symlink/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-symlink +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-symlink/eval/hints b/t/recipes/checks/debian/rules/rules-symlink/eval/hints new file mode 100644 index 0000000..02f26f1 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-symlink/eval/hints @@ -0,0 +1 @@ +rules-symlink (source): debian-rules-is-symlink [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules new file mode 100755 index 0000000..6749484 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +get-orig-source: + uscan --noconf --force-download --rename --download-current-version --destdir=.. diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values new file mode 100644 index 0000000..898d615 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-unnecessary-get-orig-source +Description: Test for unnecessary get-orig-source targets diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc new file mode 100644 index 0000000..067529a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-unnecessary-get-orig-source +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints new file mode 100644 index 0000000..accab16 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints @@ -0,0 +1 @@ +rules-unnecessary-get-orig-source (source): debian-rules-contains-unnecessary-get-orig-source-target [debian/rules] diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in new file mode 100644 index 0000000..dea8a56 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: python +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %], dpkg-dev (>= 1.18.8), debhelper (>= 10.10) +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: all +Depends: ${misc:Depends} +Description: Test package + 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. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules new file mode 100755 index 0000000..ec2dec6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s) + +export SOURCE_DATE_EPOCH = $(shell date +%s) + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values new file mode 100644 index 0000000..76255aa --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-unnecessary-source-date-epoch-unrel +Description: Test for unnecessary SOURCE_DATE_EPOCH assignments (false positive) diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc new file mode 100644 index 0000000..ae35f68 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc @@ -0,0 +1,4 @@ +Testname: rules-unnecessary-source-date-epoch-unrel +Test-Against: + unnecessary-source-date-epoch-assignment +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints new file mode 100644 index 0000000..eb59578 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints @@ -0,0 +1 @@ +rules-unnecessary-source-date-epoch-unrel (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in new file mode 100644 index 0000000..163f8bc --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: python +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: dpkg-dev (>= 1.18.7), debhelper (>= 10.9) +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${misc:Depends} +Description: Test package + 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. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules new file mode 100755 index 0000000..ec2dec6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s) + +export SOURCE_DATE_EPOCH = $(shell date +%s) + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values new file mode 100644 index 0000000..b8dc1b6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: rules-unnecessary-source-date-epoch +Dh-Compat-Level: 10 +Description: Test for unnecessary SOURCE_DATE_EPOCH assignments diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc new file mode 100644 index 0000000..d1cf5d7 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc @@ -0,0 +1,2 @@ +Testname: rules-unnecessary-source-date-epoch +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints new file mode 100644 index 0000000..4c1864a --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints @@ -0,0 +1,3 @@ +rules-unnecessary-source-date-epoch (source): unnecessary-source-date-epoch-assignment [debian/rules:5] +rules-unnecessary-source-date-epoch (source): unnecessary-source-date-epoch-assignment [debian/rules:3] +rules-unnecessary-source-date-epoch (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3] diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules new file mode 100644 index 0000000..bdb1c68 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + + TARGETS := build clean binary binary-arch binary-indep build-arch build-indep + +$(TARGETS): + dh $@ + +.PHONY: $(TARGETS) + diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values new file mode 100644 index 0000000..45c7abb --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: rules-variable-targets +Description: Test against missing targets in debian/rules diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/eval/desc b/t/recipes/checks/debian/rules/rules-variable-targets/eval/desc new file mode 100644 index 0000000..00b2ccc --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-variable-targets/eval/desc @@ -0,0 +1,3 @@ +Testname: rules-variable-targets +Test-Against: debian-rules-missing-recommended-target +Check: debian/rules diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/eval/hints b/t/recipes/checks/debian/rules/rules-variable-targets/eval/hints new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3