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/fill-values | 4 + .../build-spec/post-build.in | 3 + .../eval/desc | 2 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 3 + .../changelog-file-become-native/eval/desc | 3 + .../changelog-file-become-native/eval/hints | 1 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 3 + .../eval/desc | 3 + .../eval/hints | 1 + .../build-spec/debian/rules | 11 + .../build-spec/fill-values | 3 + .../changelog-file-dch-wrong-name-native/eval/desc | 2 + .../eval/hints | 1 + .../build-spec/debian/rules | 11 + .../build-spec/fill-values | 3 + .../build-spec/orig/ChangeLog | 5 + .../changelog-file-dch-wrong-name/eval/desc | 2 + .../changelog-file-dch-wrong-name/eval/hints | 1 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 3 + .../changelog-file-empty-entry-unrel/eval/desc | 3 + .../changelog-file-empty-entry-unrel/eval/hints | 1 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 3 + .../changelog/changelog-file-empty-entry/eval/desc | 2 + .../changelog-file-empty-entry/eval/hints | 4 + .../build-spec/debian/changelog.in | 11 + .../build-spec/fill-values | 3 + .../eval/desc | 5 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 11 + .../build-spec/fill-values | 3 + .../eval/desc | 5 + .../eval/hints | 0 .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 3 + .../eval/desc | 6 + .../eval/hints | 0 .../build-spec/debian/changelog.in | 11 + .../build-spec/fill-values | 3 + .../eval/desc | 5 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 3 + .../eval/desc | 6 + .../eval/hints | 0 .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 4 + .../eval/desc | 5 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 11 + .../build-spec/fill-values | 4 + .../eval/desc | 5 + .../eval/hints | 2 + .../build-spec/debian/changelog.in | 7 + .../changelog-file-etch-nmu/build-spec/fill-values | 4 + .../changelog/changelog-file-etch-nmu/eval/desc | 5 + .../changelog/changelog-file-etch-nmu/eval/hints | 0 .../changelog-file-etch/build-spec/fill-values | 4 + .../debian/changelog/changelog-file-etch/eval/desc | 4 + .../changelog/changelog-file-etch/eval/hints | 1 + .../build-spec/debian/changelog.in | 13 + .../build-spec/fill-values | 4 + .../eval/desc | 2 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 4 + .../changelog-file-experimental/eval/desc | 2 + .../changelog-file-experimental/eval/hints | 2 + .../build-spec/debian/docs | 1 + .../build-spec/fill-values | 3 + .../build-spec/orig/changelog | 1 + .../changelog-file-extra-upstream/eval/desc | 3 + .../changelog-file-extra-upstream/eval/hints | 0 .../build-spec/debian/changelog.in | 42 +++ .../changelog-file-general/build-spec/debian/rules | 10 + .../changelog-file-general/build-spec/fill-values | 3 + .../changelog/changelog-file-general/eval/desc | 4 + .../changelog/changelog-file-general/eval/hints | 14 + .../changelog-file-general/eval/post-test | 1 + .../build-spec/debian/changelog.in | 8 + .../build-spec/debian/control.in | 16 ++ .../build-spec/fill-values | 3 + .../changelog-file-invalid-date/eval/desc | 4 + .../changelog-file-invalid-date/eval/hints | 2 + .../build-spec/debian/changelog.in | 17 ++ .../build-spec/fill-values | 3 + .../changelog-file-line-too-short/eval/desc | 2 + .../changelog-file-line-too-short/eval/hints | 3 + .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 4 + .../eval/desc | 2 + .../eval/hints | 1 + .../changelog-file-missing/build-spec/debian/rules | 9 + .../changelog-file-missing/build-spec/fill-values | 3 + .../changelog/changelog-file-missing/eval/desc | 2 + .../changelog/changelog-file-missing/eval/hints | 1 + .../build-spec/debian/changelog.in | 14 + .../build-spec/fill-values | 4 + .../changelog-file-new-upstream/eval/desc | 2 + .../changelog-file-new-upstream/eval/hints | 1 + .../build-spec/debian/NEWS | 7 + .../build-spec/debian/rules | 14 + .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 2 + .../build-spec/debian/NEWS | 11 + .../build-spec/fill-values | 3 + .../changelog-file-news-general/eval/desc | 2 + .../changelog-file-news-general/eval/hints | 7 + .../build-spec/debian/NEWS | 6 + .../build-spec/fill-values | 3 + .../changelog-file-news-version/eval/desc | 2 + .../changelog-file-news-version/eval/hints | 1 + .../build-spec/debian/package-news | 6 + .../build-spec/debian/rules | 11 + .../build-spec/fill-values | 3 + .../changelog-file-news-wrong-name/eval/desc | 2 + .../changelog-file-news-wrong-name/eval/hints | 1 + .../build-spec/debian/rules | 8 + .../build-spec/fill-values | 3 + .../changelog-file-no-dch-native/eval/desc | 2 + .../changelog-file-no-dch-native/eval/hints | 1 + .../changelog-file-no-dch/build-spec/debian/rules | 13 + .../changelog-file-no-dch/build-spec/fill-values | 3 + .../build-spec/orig/ChangeLog | 5 + .../changelog/changelog-file-no-dch/eval/desc | 3 + .../changelog/changelog-file-no-dch/eval/hints | 2 + .../build-spec/debian/changelog.in | 45 ++++ .../build-spec/fill-values | 3 + .../eval/desc | 2 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 6 + .../changelog-file-stable/build-spec/fill-values | 4 + .../changelog/changelog-file-stable/eval/desc | 5 + .../changelog/changelog-file-stable/eval/hints | 0 .../build-spec/debian/changelog.in | 12 + .../build-spec/fill-values | 5 + .../changelog-file-strange-date/eval/desc | 3 + .../changelog-file-strange-date/eval/hints | 1 + .../changelog-file-symlink/build-spec/debian/rules | 12 + .../changelog-file-symlink/build-spec/fill-values | 3 + .../changelog/changelog-file-symlink/eval/desc | 2 + .../changelog/changelog-file-symlink/eval/hints | 1 + .../build-spec/doc/changelog.in | 22 ++ .../changelog-file-syntax/build-spec/fill-values | 3 + .../changelog/changelog-file-syntax/eval/desc | 2 + .../changelog/changelog-file-syntax/eval/hints | 2 + .../build-spec/fill-values | 4 + .../build-spec/post-build.in | 24 ++ .../build-spec/private.key | 81 ++++++ .../build-spec/public.key | 41 +++ .../eval/desc | 3 + .../eval/hints | 1 + .../build-spec/debian/changelog.in | 13 + .../build-spec/fill-values | 5 + .../changelog/changelog-file-unreleased/eval/desc | 6 + .../changelog/changelog-file-unreleased/eval/hints | 0 .../build-spec/debian/rules | 11 + .../build-spec/fill-values | 3 + .../build-spec/orig/some-changelog.html | 8 + .../changelog-file-upstream-html-only/eval/desc | 2 + .../changelog-file-upstream-html-only/eval/hints | 1 + .../build-spec/debian/rules | 11 + .../build-spec/fill-values | 3 + .../build-spec/orig/some-changelog | 1 + .../changelog-file-wrong-name-upstream/eval/desc | 2 + .../changelog-file-wrong-name-upstream/eval/hints | 1 + .../build-spec/debian/changelog.in | 10 + .../build-spec/debian/control.in | 16 ++ .../build-spec/fill-values | 3 + .../changelog-file-wrong-weekday/eval/desc | 4 + .../changelog-file-wrong-weekday/eval/hints | 1 + .../profiles/lintian-test/main.profile | 2 + .../main/data/standards-version/ancient-date | 7 + .../changelog-version-bzr/build-spec/fill-values | 4 + .../changelog/changelog-version-bzr/eval/desc | 4 + .../changelog/changelog-version-bzr/eval/hints | 0 .../build-spec/fill-values | 4 + .../changelog-version-non-native-simple/eval/desc | 4 + .../changelog-version-non-native-simple/eval/hints | 0 .../build-spec/fill-values | 4 + .../changelog-version-special-chars/eval/desc | 4 + .../changelog-version-special-chars/eval/hints | 3 + .../build-spec/fill-values | 5 + .../changelog/cruft-native-dash-version/eval/desc | 4 + .../changelog/cruft-native-dash-version/eval/hints | 1 + .../build-spec/debian/changelog.in | 8 + .../date-based-version/build-spec/fill-values | 4 + .../debian/changelog/date-based-version/eval/desc | 4 + .../debian/changelog/date-based-version/eval/hints | 1 + .../fields-version-bad-rc/build-spec/fill-values | 4 + .../changelog/fields-version-bad-rc/eval/desc | 3 + .../changelog/fields-version-bad-rc/eval/hints | 1 + .../build-spec/debian/changelog.in | 7 + .../fields-version-bad/build-spec/debian/rules | 7 + .../fields-version-bad/build-spec/fill-values | 4 + .../debian/changelog/fields-version-bad/eval/desc | 3 + .../debian/changelog/fields-version-bad/eval/hints | 1 + .../build-spec/fill-values | 4 + .../changelog/fields-version-dfsg-native/eval/desc | 3 + .../fields-version-dfsg-native/eval/hints | 1 + .../fields-version-dot-dfsg/build-spec/fill-values | 4 + .../changelog/fields-version-dot-dfsg/eval/desc | 3 + .../changelog/fields-version-dot-dfsg/eval/hints | 1 + .../fields-version-dsfg/build-spec/fill-values | 4 + .../debian/changelog/fields-version-dsfg/eval/desc | 3 + .../changelog/fields-version-dsfg/eval/hints | 1 + .../build-spec/debian/README.Debian | 6 + .../build-spec/debian/changelog.in | 5 + .../build-spec/debian/compat.in | 1 + .../build-spec/debian/control.in | 13 + .../build-spec/debian/copyright | 24 ++ .../build-spec/debian/cron.d.ex | 4 + .../generic-dh-make-2008/build-spec/debian/dirs | 2 + .../generic-dh-make-2008/build-spec/debian/docs | 1 + .../build-spec/debian/emacsen-install.ex | 45 ++++ .../build-spec/debian/emacsen-remove.ex | 15 ++ .../build-spec/debian/emacsen-startup.ex | 25 ++ .../debian/generic-dh-make-2008.default.ex | 10 + .../debian/generic-dh-make-2008.doc-base.EX | 22 ++ .../build-spec/debian/init.d.ex | 157 +++++++++++ .../build-spec/debian/init.d.lsb.ex | 296 +++++++++++++++++++++ .../build-spec/debian/manpage.1.ex | 59 ++++ .../build-spec/debian/manpage.sgml.ex | 156 +++++++++++ .../build-spec/debian/manpage.xml.ex | 291 ++++++++++++++++++++ .../generic-dh-make-2008/build-spec/debian/menu.ex | 2 + .../build-spec/debian/postinst.ex | 41 +++ .../build-spec/debian/postrm.ex | 39 +++ .../build-spec/debian/preinst.ex | 37 +++ .../build-spec/debian/prerm.ex | 40 +++ .../generic-dh-make-2008/build-spec/debian/rules | 91 +++++++ .../build-spec/debian/watch.ex | 23 ++ .../generic-dh-make-2008/build-spec/fill-values | 7 + .../generic-dh-make-2008/build-spec/orig/Makefile | 4 + .../generic-dh-make-2008/build-spec/orig/README | 13 + .../generic-dh-make-2008/build-spec/pre-build.in | 5 + .../changelog/generic-dh-make-2008/eval/desc | 4 + .../changelog/generic-dh-make-2008/eval/hints | 3 + .../changelog/generic-dh-make-2008/eval/post-test | 1 + .../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 + .../legacy-binary/build-spec/debian/control | 42 +++ .../legacy-binary/build-spec/debian/copyright | 15 ++ .../legacy-binary/build-spec/debian/doc-base | 41 +++ .../build-spec/debian/goodbye.desktop | 13 + .../legacy-binary/build-spec/debian/hello.desktop | 14 + .../changelog/legacy-binary/build-spec/debian/menu | 26 ++ .../legacy-binary/build-spec/debian/menu-method | 22 ++ .../legacy-binary/build-spec/debian/postinst | 6 + .../legacy-binary/build-spec/debian/rules | 92 +++++++ .../legacy-binary/build-spec/debian/templates | 16 ++ .../changelog/legacy-binary/build-spec/fill-values | 5 + .../legacy-binary/build-spec/orig/INSTALL | 176 ++++++++++++ .../legacy-binary/build-spec/orig/Makefile | 12 + .../legacy-binary/build-spec/orig/hello.c | 8 + .../debian/changelog/legacy-binary/eval/desc | 2 + .../debian/changelog/legacy-binary/eval/hints | 9 + .../debian/changelog/legacy-binary/eval/post-test | 3 + .../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 ++ .../legacy-etcfiles/build-spec/debian/rules | 64 +++++ .../legacy-etcfiles/build-spec/fill-values | 5 + .../legacy-etcfiles/build-spec/orig/improper | 2 + .../legacy-etcfiles/build-spec/orig/proper | 2 + .../debian/changelog/legacy-etcfiles/eval/desc | 2 + .../debian/changelog/legacy-etcfiles/eval/hints | 1 + .../changelog/legacy-etcfiles/eval/post-test | 1 + .../legacy-fields/build-spec/debian/changelog.in | 10 + .../legacy-fields/build-spec/debian/control | 28 ++ .../legacy-fields/build-spec/debian/rules | 33 +++ .../changelog/legacy-fields/build-spec/fill-values | 5 + .../debian/changelog/legacy-fields/eval/desc | 2 + .../debian/changelog/legacy-fields/eval/hints | 2 + .../debian/changelog/legacy-fields/eval/post-test | 1 + .../build-spec/debian/changelog.in | 78 ++++++ .../legacy-filenames/build-spec/debian/control | 42 +++ .../legacy-filenames/build-spec/debian/doc-base | 11 + .../legacy-filenames/build-spec/debian/rules | 231 ++++++++++++++++ .../legacy-filenames/build-spec/fill-values | 5 + .../legacy-filenames/build-spec/orig/data/ .tif | 2 + .../legacy-filenames/build-spec/orig/data/\".tif" | 1 + .../build-spec/orig/data/Maelstrom Sound | 1 + .../debian/changelog/legacy-filenames/eval/desc | 3 + .../debian/changelog/legacy-filenames/eval/hints | 4 + .../changelog/legacy-filenames/eval/post-test | 3 + .../legacy-foo++/build-spec/debian/README.Debian | 7 + .../legacy-foo++/build-spec/debian/changelog.in | 31 +++ .../legacy-foo++/build-spec/debian/control | 30 +++ .../legacy-foo++/build-spec/debian/copyright | 7 + .../changelog/legacy-foo++/build-spec/debian/rules | 36 +++ .../changelog/legacy-foo++/build-spec/debian/watch | 6 + .../changelog/legacy-foo++/build-spec/fill-values | 5 + .../checks/debian/changelog/legacy-foo++/eval/desc | 2 + .../debian/changelog/legacy-foo++/eval/hints | 4 + .../debian/changelog/legacy-foo++/eval/post-test | 1 + .../legacy-libbaz/build-spec/debian/changelog.in | 6 + .../legacy-libbaz/build-spec/debian/compat.in | 1 + .../legacy-libbaz/build-spec/debian/control | 58 ++++ .../legacy-libbaz/build-spec/debian/copyright | 8 + .../legacy-libbaz/build-spec/debian/dev.postinst | 4 + .../legacy-libbaz/build-spec/debian/dev.prerm | 4 + .../legacy-libbaz/build-spec/debian/lib.postinst | 10 + .../legacy-libbaz/build-spec/debian/lib.prerm | 7 + .../legacy-libbaz/build-spec/debian/lib.shlibs | 8 + .../legacy-libbaz/build-spec/debian/lib.symbols | 3 + .../legacy-libbaz/build-spec/debian/rules | 121 +++++++++ .../build-spec/debian/source.lintian-overrides | 1 + .../changelog/legacy-libbaz/build-spec/fill-values | 6 + .../legacy-libbaz/build-spec/orig/Makefile | 55 ++++ .../changelog/legacy-libbaz/build-spec/orig/baz.c | 6 + .../legacy-libbaz/build-spec/orig/extra.c | 0 .../debian/changelog/legacy-libbaz/eval/desc | 2 + .../debian/changelog/legacy-libbaz/eval/hints | 9 + .../debian/changelog/legacy-libbaz/eval/post-test | 4 + .../build-spec/debian/changelog.in | 57 ++++ .../build-spec/debian/control.in | 18 ++ .../build-spec/debian/postinst | 181 +++++++++++++ .../build-spec/debian/postrm | 47 ++++ .../build-spec/debian/preinst | 18 ++ .../build-spec/debian/prerm | 188 +++++++++++++ .../build-spec/debian/rules | 35 +++ .../build-spec/debian/triggers | 4 + .../build-spec/debian/watch | 11 + .../build-spec/fill-values | 6 + .../changelog/legacy-maintainer-scripts/eval/desc | 2 + .../changelog/legacy-maintainer-scripts/eval/hints | 2 + .../legacy-maintainer-scripts/eval/post-test | 1 + .../build-spec/debian/changelog.in | 33 +++ .../legacy-relations/build-spec/debian/control | 51 ++++ .../legacy-relations/build-spec/debian/rules | 49 ++++ .../build-spec/debian/tmp/DEBIAN/control | 14 + .../legacy-relations/build-spec/fill-values | 5 + .../debian/changelog/legacy-relations/eval/desc | 2 + .../debian/changelog/legacy-relations/eval/hints | 1 + .../changelog/legacy-relations/eval/post-test | 1 + .../build-spec/fill-values | 5 + .../missing-explicit-entry-fp-unrel/eval/desc | 5 + .../missing-explicit-entry-fp-unrel/eval/hints | 0 .../build-spec/fill-values | 5 + .../changelog/missing-explicit-entry-fp/eval/desc | 4 + .../changelog/missing-explicit-entry-fp/eval/hints | 1 + .../build-spec/debian/changelog.in | 9 + .../nmu-local-changelog/build-spec/fill-values | 3 + .../debian/changelog/nmu-local-changelog/eval/desc | 4 + .../changelog/nmu-local-changelog/eval/hints | 0 .../build-spec/debian/changelog.in | 8 + .../nmu-local-version/build-spec/fill-values | 4 + .../debian/changelog/nmu-local-version/eval/desc | 4 + .../debian/changelog/nmu-local-version/eval/hints | 0 .../build-spec/debian/changelog.in | 7 + .../build-spec/fill-values | 4 + .../changelog/nmu-new-upstream-version/eval/desc | 4 + .../changelog/nmu-new-upstream-version/eval/hints | 1 + .../nmu-team-upload/build-spec/debian/changelog.in | 9 + .../nmu-team-upload/build-spec/fill-values | 4 + .../debian/changelog/nmu-team-upload/eval/desc | 3 + .../debian/changelog/nmu-team-upload/eval/hints | 1 + .../package-version-0/build-spec/fill-values | 4 + .../debian/changelog/package-version-0/eval/desc | 4 + .../debian/changelog/package-version-0/eval/hints | 1 + .../build-spec/fill-values | 4 + .../build-spec/post-build.in | 5 + .../sid-and-unstable-match-in-changes/eval/desc | 4 + .../sid-and-unstable-match-in-changes/eval/hints | 0 .../build-spec/debian/changelog.in | 13 + .../spelling-general/build-spec/debian/copyright | 21 ++ .../spelling-general/build-spec/debian/doc-base | 9 + .../build-spec/debian/patches/add-readme | 8 + .../build-spec/debian/patches/nonrel | 6 + .../build-spec/debian/patches/series | 3 + .../build-spec/debian/patches/spelling | 6 + .../spelling-general/build-spec/fill-values | 4 + .../debian/changelog/spelling-general/eval/desc | 2 + .../debian/changelog/spelling-general/eval/hints | 1 + .../build-spec/fill-values | 4 + .../two-dashes-in-non-native-version/eval/desc | 3 + .../two-dashes-in-non-native-version/eval/hints | 1 + 386 files changed, 5107 insertions(+) create mode 100644 t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values create mode 100755 t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in create mode 100644 t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints create mode 100755 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints create mode 100755 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs create mode 100644 t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog create mode 100644 t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in create mode 100755 t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-general/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-general/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints create mode 100755 t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS create mode 100755 t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news create mode 100755 t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints create mode 100755 t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints create mode 100755 t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints create mode 100755 t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values create mode 100755 t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html create mode 100644 t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile create mode 100644 t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date create mode 100644 t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints create mode 100644 t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc create mode 100644 t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints create mode 100644 t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints create mode 100644 t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/date-based-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/date-based-version/eval/hints create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad/eval/desc create mode 100644 t/recipes/checks/debian/changelog/fields-version-bad/eval/hints create mode 100644 t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc create mode 100644 t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints create mode 100644 t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc create mode 100644 t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints create mode 100644 t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc create mode 100644 t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex create mode 100755 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README create mode 100755 t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints create mode 100644 t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/NEWS.Debian create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/conffiles create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/control create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/doc-base create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/goodbye.desktop create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/hello.desktop create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu-method create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/postinst create mode 100755 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/templates create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/INSTALL create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/Makefile create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/hello.c create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-binary/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control create mode 100755 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/improper create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/proper create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/control create mode 100755 t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-fields/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-fields/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-fields/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-fields/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base create mode 100755 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif create mode 100644 "t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/\".tif" create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright create mode 100755 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols create mode 100755 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints create mode 100755 t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postrm create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm create mode 100755 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/control create mode 100755 t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/eval/desc create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/eval/hints create mode 100644 t/recipes/checks/debian/changelog/legacy-relations/eval/post-test create mode 100644 t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc create mode 100644 t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints create mode 100644 t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc create mode 100644 t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints create mode 100644 t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc create mode 100644 t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints create mode 100644 t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/nmu-local-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/nmu-local-version/eval/hints create mode 100644 t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints create mode 100644 t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc create mode 100644 t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints create mode 100644 t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/package-version-0/eval/desc create mode 100644 t/recipes/checks/debian/changelog/package-version-0/eval/hints create mode 100644 t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values create mode 100755 t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in create mode 100644 t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc create mode 100644 t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling create mode 100644 t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/spelling-general/eval/desc create mode 100644 t/recipes/checks/debian/changelog/spelling-general/eval/hints create mode 100644 t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values create mode 100644 t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc create mode 100644 t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints (limited to 't/recipes/checks/debian/changelog') diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values new file mode 100644 index 0000000..a9262a1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-distribution-does-not-match-changes-file +Skeleton: upload-native +Distribution: experimental +Description: Test upload with unstable in changes but experimental in changelog diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in new file mode 100755 index 0000000..10a61dc --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in @@ -0,0 +1,3 @@ +#!/bin/sh + +perl -pi -e 's/^(Distribution:)\s+\S+/$1 unstable/' [% $build_product %] diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc new file mode 100644 index 0000000..d46c519 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-distribution-does-not-match-changes-file +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints new file mode 100644 index 0000000..cede117 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints @@ -0,0 +1 @@ +changelog-distribution-does-not-match-changes-file (binary): changelog-distribution-does-not-match-changes-file experimental != unstable [usr/share/doc/changelog-distribution-does-not-match-changes-file/changelog.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in new file mode 100644 index 0000000..36992ba --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (0.1-2) unstable; urgency=low + + * An earlier non-native version. + + -- [% $author %] Tue, 1 Jan 2008 22:45:57 +0000 diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values new file mode 100644 index 0000000..1d3073c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-become-native +Description: Test for packages where the version suddenly becomes native diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc new file mode 100644 index 0000000..4294061 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-become-native +See-Also: Debian Bug #504070 +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints new file mode 100644 index 0000000..05caab0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints @@ -0,0 +1 @@ +changelog-file-become-native (source): odd-historical-debian-changelog-version 0.1-2 (for native) [debian/changelog:8] diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in new file mode 100644 index 0000000..363fcc6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Version reused, new source package name. + + -- [% $author %] [% $date %] + +[% $source %]-oldname (1.0-3) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values new file mode 100644 index 0000000..0e3cdbf --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-consecutive-debian-revision-unrel +Skeleton: upload-non-native +Description: Check for false positive in non-consecutive-debian-revision diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc new file mode 100644 index 0000000..a78a0ae --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-consecutive-debian-revision-unrel +Test-Against: non-consecutive-debian-revision +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules new file mode 100755 index 0000000..c8b797a --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC_DIR:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_md5sums: + mv $(DOC_DIR)/changelog.gz $(DOC_DIR)/changelog.Debian.gz + dh_md5sums diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values new file mode 100644 index 0000000..37405fe --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-dch-wrong-name-native +Description: Test if Debian changelog has the wrong name diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc new file mode 100644 index 0000000..3595388 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-dch-wrong-name-native +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints new file mode 100644 index 0000000..dae41ee --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints @@ -0,0 +1 @@ +changelog-file-dch-wrong-name-native (binary): wrong-name-for-changelog-of-native-package [usr/share/doc/changelog-file-dch-wrong-name-native/changelog.Debian.gz] diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules new file mode 100755 index 0000000..2d5cd31 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC_DIR:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_md5sums: + mv $(DOC_DIR)/changelog.Debian.gz $(DOC_DIR)/changelog.debian.gz + dh_md5sums diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values new file mode 100644 index 0000000..80de357 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-dch-wrong-name +Skeleton: upload-non-native +Description: Test if Debian changelog has the wrong name diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog new file mode 100644 index 0000000..a935b07 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog @@ -0,0 +1,5 @@ +2011-09-10 Niels Thykier + + * This is a non-Debian ChangeLog. Lintian should not be tricked + to believe this is a Debian changelog. + diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc new file mode 100644 index 0000000..ba278f1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-dch-wrong-name +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints new file mode 100644 index 0000000..b726e93 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints @@ -0,0 +1 @@ +changelog-file-dch-wrong-name (binary): wrong-name-for-debian-changelog-file [usr/share/doc/changelog-file-dch-wrong-name/changelog.debian.gz] diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in new file mode 100644 index 0000000..107f854 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) UNRELEASED; urgency=low + + * . + * + + -- [% $author %] [% $date %] + +[% $source %] (0.1) unstable; urgency=low + + * First upload (Closes: #123456). + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values new file mode 100644 index 0000000..e0f238f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-empty-entry-unrel +Description: Check changelog empty entry (UNRELEASED) diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc new file mode 100644 index 0000000..7e2446f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-empty-entry-unrel +Test-Against: changelog-empty-entry +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints new file mode 100644 index 0000000..2b08d4c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints @@ -0,0 +1 @@ +changelog-file-empty-entry-unrel (binary): debian-changelog-line-too-short . [usr/share/doc/changelog-file-empty-entry-unrel/changelog.gz:3] diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in new file mode 100644 index 0000000..27fbf38 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * . + * + + -- + +[% $source %] (0.1) unstable; urgency=low + + * First upload (Closes: #123456). + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values new file mode 100644 index 0000000..30bc2c8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-empty-entry +Description: Check changelog empty entry diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc new file mode 100644 index 0000000..a884875 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-empty-entry +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints new file mode 100644 index 0000000..a1252e4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints @@ -0,0 +1,4 @@ +changelog-file-empty-entry (binary): syntax-error-in-debian-changelog "found start of entry where expected more change data or trailer" [usr/share/doc/changelog-file-empty-entry/changelog.gz:8] +changelog-file-empty-entry (binary): syntax-error-in-debian-changelog "badly formatted trailer line" [usr/share/doc/changelog-file-empty-entry/changelog.gz:6] +changelog-file-empty-entry (binary): debian-changelog-line-too-short . [usr/share/doc/changelog-file-empty-entry/changelog.gz:3] +changelog-file-empty-entry (binary): changelog-empty-entry [usr/share/doc/changelog-file-empty-entry/changelog.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in new file mode 100644 index 0000000..eb930a3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in @@ -0,0 +1,11 @@ +[% $source %] (1:[% $version %]) unstable; urgency=low + + * This changelog entry introduces a version prefix. + + -- [% $author %] [% $date %] + +[% $source %] (999999) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values new file mode 100644 index 0000000..4150aae --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-epoch-change-without-comment-new +Description: Check changelog for accidental epoch changes diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc new file mode 100644 index 0000000..f91cffa --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-epoch-change-without-comment-new +Test-Against: + epoch-changed-but-upstream-version-did-not-go-backwards + latest-debian-changelog-entry-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints new file mode 100644 index 0000000..5a62f5b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints @@ -0,0 +1 @@ +changelog-file-epoch-change-without-comment-new (source): epoch-change-without-comment 999999 -> 1:1.0 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in new file mode 100644 index 0000000..c3fcc68 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in @@ -0,0 +1,11 @@ +[% $source %] (2:[% $version %]) unstable; urgency=low + + * This changelog entry has the same prefix as before. + + -- [% $author %] [% $date %] + +[% $source %] (2:0) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values new file mode 100644 index 0000000..986d64d --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-epoch-change-without-comment-same +Description: Check changelog for accidental epoch changes (false positive) diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc new file mode 100644 index 0000000..13e9349 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-epoch-change-without-comment-same +Test-Against: + epoch-change-without-comment + epoch-changed-but-upstream-version-did-not-go-backwards +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in new file mode 100644 index 0000000..785572f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] (2:[% $version %]) unstable; urgency=low + + * This changelog entry bumps the epoch and references the word in the + changelog. + + -- [% $author %] [% $date %] + +[% $source %] (1:999999) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values new file mode 100644 index 0000000..2a74c76 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-epoch-change-without-comment-unrel +Description: Check changelog for accidental epoch changes (false positive) diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc new file mode 100644 index 0000000..f2bb59b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc @@ -0,0 +1,6 @@ +Testname: changelog-file-epoch-change-without-comment-unrel +Test-Against: + epoch-change-without-comment + epoch-changed-but-upstream-version-did-not-go-backwards + latest-debian-changelog-entry-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in new file mode 100644 index 0000000..c8a9ab0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in @@ -0,0 +1,11 @@ +[% $source %] (2:[% $version %]) unstable; urgency=low + + * This changelog entry bumps the version. + + -- [% $author %] [% $date %] + +[% $source %] (1:99999999) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values new file mode 100644 index 0000000..9bcb203 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-epoch-change-without-comment +Description: Check changelog for accidental epoch changes diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc new file mode 100644 index 0000000..538582f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-epoch-change-without-comment +Test-Against: + epoch-changed-but-upstream-version-did-not-go-backwards + latest-debian-changelog-entry-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints new file mode 100644 index 0000000..c8fe1d5 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints @@ -0,0 +1 @@ +changelog-file-epoch-change-without-comment (source): epoch-change-without-comment 1:99999999 -> 2:1.0 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in new file mode 100644 index 0000000..c7a1b0c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] (2:[% $version %]) unstable; urgency=low + + * This changelog entry bumps the epoch and the upstream version number + decreased (correctly). + + -- [% $author %] [% $date %] + +[% $source %] (1:9999999) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values new file mode 100644 index 0000000..b39c267 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-epoch-changed-upstream-version-decrease +Description: Check changelog for accidental epoch changes (decrease) diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc new file mode 100644 index 0000000..4239848 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc @@ -0,0 +1,6 @@ +Testname: changelog-file-epoch-changed-upstream-version-decrease +Test-Against: + epoch-change-without-comment + epoch-changed-but-upstream-version-did-not-go-backwards + latest-debian-changelog-entry-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in new file mode 100644 index 0000000..49c0a3d --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] (2:[% $version %]) unstable; urgency=low + + * This changelog entry bumps the epoch and the upstream version number + increased too. + + -- [% $author %] [% $date %] + +[% $source %] (1:0.9-4) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values new file mode 100644 index 0000000..c2167bf --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-non-native +Testname: changelog-file-epoch-changed-upstream-version-increase +Version: 1.0-3 +Description: Check changelog for accidental epoch changes (increase) diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc new file mode 100644 index 0000000..6113173 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-epoch-changed-upstream-version-increase +Test-Against: + epoch-change-without-comment + latest-debian-changelog-entry-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints new file mode 100644 index 0000000..2ac17d4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints @@ -0,0 +1 @@ +changelog-file-epoch-changed-upstream-version-increase (source): epoch-changed-but-upstream-version-did-not-go-backwards 1:0.9-4 -> 2:1.0-3 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in new file mode 100644 index 0000000..a992b11 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in @@ -0,0 +1,11 @@ +[% $source %] (2:[% $version %]) unstable; urgency=low + + * This changelog entry bumps the epoch but not the upstream version number, + + -- [% $author %] [% $date %] + +[% $source %] (1:[% $version %]) unstable; urgency=low + + * Initial upload. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values new file mode 100644 index 0000000..86e8493 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-non-native +Testname: changelog-file-epoch-changed-upstream-version-same +Version: 1.0-3 +Description: Check changelog for accidental epoch changes (same) diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc new file mode 100644 index 0000000..b5c1b45 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-epoch-changed-upstream-version-same +Test-Against: + epoch-change-without-comment + latest-debian-changelog-entry-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints new file mode 100644 index 0000000..8bb66ca --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints @@ -0,0 +1,2 @@ +changelog-file-epoch-changed-upstream-version-same (source): latest-debian-changelog-entry-reuses-existing-version 2:1.0-3 ~ 1:1.0-3 (last used: Fri, 06 Feb 2009 22:22:37 -0800) [debian/changelog:1] +changelog-file-epoch-changed-upstream-version-same (source): epoch-changed-but-upstream-version-did-not-go-backwards 1:1.0-3 -> 2:1.0-3 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in new file mode 100644 index 0000000..71b790a --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Non-maintainer upload. + * Lintian Test Suite. + * Test: [% $testname %] + + -- Russ Allbery [% $date %] diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values new file mode 100644 index 0000000..0239f93 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-file-etch-nmu +Skeleton: upload-non-native +Version: 1.0-1etch1.1 +Description: Test for a code name in an unstable upload diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc new file mode 100644 index 0000000..5904a7d --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-etch-nmu +Test-Against: + malformed-debian-changelog-version + version-refers-to-distribution +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values new file mode 100644 index 0000000..1d1817f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-file-etch +Skeleton: upload-non-native +Version: 1.0-1etch1 +Description: Test for a code name in an unstable upload diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc new file mode 100644 index 0000000..03dd7f8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-file-etch +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints new file mode 100644 index 0000000..8b1b701 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints @@ -0,0 +1 @@ +changelog-file-etch (source): version-refers-to-distribution 1.0-1etch1 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in new file mode 100644 index 0000000..01e7403 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in @@ -0,0 +1,13 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Upload to sid. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (1.0-1) experimental; urgency=low + + * First upload to experimental. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values new file mode 100644 index 0000000..dc465ac --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-non-native +Testname: changelog-file-experimental-false-positive +Version: 1.0-3 +Description: Check experimental to unstable changes false positive diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc new file mode 100644 index 0000000..4e6018a --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-experimental-false-positive +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints new file mode 100644 index 0000000..318b4f2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints @@ -0,0 +1 @@ +changelog-file-experimental-false-positive (source): non-consecutive-debian-revision 1.0-1 -> 1.0-3 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in new file mode 100644 index 0000000..b8b07af --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (1.0-1) experimental; urgency=low + + * First upload to experimental. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values new file mode 100644 index 0000000..562583b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-non-native +Testname: changelog-file-experimental +Version: 1.0-3 +Description: Check experimental to unstable changes diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc new file mode 100644 index 0000000..e48f09b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-experimental +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints new file mode 100644 index 0000000..58aaeee --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints @@ -0,0 +1,2 @@ +changelog-file-experimental (source): non-consecutive-debian-revision 1.0-1 -> 1.0-3 [debian/changelog:1] +changelog-file-experimental (binary): experimental-to-unstable-without-comment [usr/share/doc/changelog-file-experimental/changelog.Debian.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs new file mode 100644 index 0000000..6d10dce --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs @@ -0,0 +1 @@ +changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values new file mode 100644 index 0000000..6d6ac8c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-extra-upstream +Skeleton: upload-non-native +Description: Check a package with ChangeLog and changelog.gz diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog new file mode 100644 index 0000000..2d85e10 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog @@ -0,0 +1 @@ +This is some upstream changelog file. diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc new file mode 100644 index 0000000..8520129 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-extra-upstream +Test-Against: changelog-file-not-compressed +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in new file mode 100644 index 0000000..d73efdd --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in @@ -0,0 +1,42 @@ +[% $source %] (1:[% $version %]) unstable; urgency=low + + + * Test: [% $testname %] + * Upload to experimental. + * improbable-bug-number-in-closes (Closes: #1234) + * Another bug closer without a colon (Closes #555555) + * This line is too long since it contains words and words and words but doesn't + have any wrapping except at column 81. + * http://www.example.com/but-a-really-long-url-does-not-count-as-a-long-line-at-all + See http://www.example.com/but-a-really-long-url-does-not-count-as-a-long-line-at-all + even if preceded by See. + * Misspelled Closes (Close: #666666) + + * Here is another really long in the changelog, and it would be really nice if a + certain program would report its line number correctly. Especially since, + we have an extra empty line in the start of the entry. + + * Below is another very long line (UTF-8), which should have a "visual" width + of ~75 characters, but consists of over 200 bytes. + üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü + + * It might even fix TEMP-1234567-abcdef, though probably not. + * We refer to the epoch bump here. + + -- [% $author %] [% $date %] + +[% $source %] ([% $version %]) unstable; urgency=low + + * Duplicate changelog entry to trigger tags. + + -- Unknown [% $date %] + +[% $source %] (0.1) unstable; urgency=low + + * Used to be a syntax error here. + + -- [% $author %] [% $date %] + +Local variables: +add-log-mailing-address: "rra@debian.org" +End: diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules new file mode 100755 index 0000000..9171128 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +pkg = $(shell dh_listpackages) + +%: + dh $@ + +override_dh_installchangelogs: + install -c -m 644 debian/changelog \ + debian/$(pkg)/usr/share/doc/$(pkg)/changelog.Debian + gzip -1 -n debian/$(pkg)/usr/share/doc/$(pkg)/changelog.Debian diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values new file mode 100644 index 0000000..ec70647 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-general +Skeleton: upload-non-native +Description: General tests for changelog-file tags diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-general/eval/desc new file mode 100644 index 0000000..b5e38e0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-general/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-file-general +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-general/eval/hints new file mode 100644 index 0000000..083916b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-general/eval/hints @@ -0,0 +1,14 @@ +changelog-file-general (source): latest-debian-changelog-entry-without-new-date [debian/changelog:1] +changelog-file-general (source): latest-debian-changelog-entry-reuses-existing-version 1:1.0-1 ~ 1.0-1 (last used: CURRENT) [debian/changelog:1] +changelog-file-general (source): epoch-changed-but-upstream-version-did-not-go-backwards 1.0-1 -> 1:1.0-1 [debian/changelog:1] +changelog-file-general (binary): possible-missing-colon-in-closes Closes #555555 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): misspelled-closes-bug Close: #666666 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): latest-changelog-entry-without-new-date [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): improbable-bug-number-in-closes 1234 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): debian-changelog-line-too-long [usr/share/doc/changelog-file-general/changelog.Debian.gz:8] +changelog-file-general (binary): debian-changelog-line-too-long [usr/share/doc/changelog-file-general/changelog.Debian.gz:15] +changelog-file-general (binary): debian-changelog-file-contains-obsolete-user-emacs-settings [usr/share/doc/changelog-file-general/changelog.Debian.gz:41] +changelog-file-general (binary): changelog-references-temp-security-identifier TEMP-1234567-abcdef [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): changelog-not-compressed-with-max-compression [usr/share/doc/changelog-file-general/changelog.Debian.gz] +changelog-file-general (binary): bogus-mail-host-in-debian-changelog unknown@unknown (for version 1.0-1) [usr/share/doc/changelog-file-general/changelog.Debian.gz:28] +changelog-file-general (binary): bad-intended-distribution intended for experimental but uploaded to unstable [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test b/t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test new file mode 100644 index 0000000..a84cbe8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test @@ -0,0 +1 @@ +s/\(last used: ([^\)]+*)\)/(last used: CURRENT)/ diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in new file mode 100644 index 0000000..fdf11f7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + * Suppress "should close ITP bug" messages. (Closes: #123456) + * Writes out "Sept" and "Thurs"; should be "Sep" and "Thu". + + -- [% $author %] Thurs, 14 Sept 2017 10:47:43 +0000 diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in new file mode 100644 index 0000000..c770eac --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: 4.1.0 +Build-Depends: [% $build_depends %] +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/changelog/changelog-file-invalid-date/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/fill-values new file mode 100644 index 0000000..d0d3f38 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-invalid-date +Description: Test for invalid dates diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc new file mode 100644 index 0000000..d58b493 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-file-invalid-date +Test-Against: + debian-changelog-has-wrong-day-of-week +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints new file mode 100644 index 0000000..472360d --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints @@ -0,0 +1,2 @@ +changelog-file-invalid-date (binary): invalid-date-in-debian-changelog (Thurs -> Thu) [usr/share/doc/changelog-file-invalid-date/changelog.gz:1] +changelog-file-invalid-date (binary): invalid-date-in-debian-changelog (Sept -> Sep) [usr/share/doc/changelog-file-invalid-date/changelog.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in new file mode 100644 index 0000000..b700347 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in @@ -0,0 +1,17 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + * The following lines are too short. + * R³ + * dh 11 + * 12345 + + * The following entries are long enough. + * dh 11. + * 123456 + + * These are false positives. + * 123: + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values new file mode 100644 index 0000000..719e316 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-line-too-short +Skeleton: upload-non-native +Description: Test for short changelog entries diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc new file mode 100644 index 0000000..9681924 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-line-too-short +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints new file mode 100644 index 0000000..92d4bf6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints @@ -0,0 +1,3 @@ +changelog-file-line-too-short (binary): debian-changelog-line-too-short dh 11 [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:7] +changelog-file-line-too-short (binary): debian-changelog-line-too-short R³ [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:6] +changelog-file-line-too-short (binary): debian-changelog-line-too-short 12345 [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:8] diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in new file mode 100644 index 0000000..ea010a2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) stable-proposed-updates; urgency=low + + * New version. + + -- [% $author %] [% $date %] + +[% $source %] (0.9-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] Tue, 1 Jan 2008 22:45:57 +0000 diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values new file mode 100644 index 0000000..2bdf496 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-file-missing-explicit-entry +Skeleton: upload-non-native +Version: 1.2-3+deb9u1 +Description: Test for missing (stable update, etc.) entries diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc new file mode 100644 index 0000000..f2805f3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-missing-explicit-entry +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints new file mode 100644 index 0000000..b24457e --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints @@ -0,0 +1 @@ +changelog-file-missing-explicit-entry (source): changelog-file-missing-explicit-entry 0.9-1 -> 1.2-3 (missing) -> 1.2-3+deb9u1 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules new file mode 100755 index 0000000..a687494 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + + +override_dh_md5sums: + find debian/*/ -type f -a -name 'changelog*' -delete + dh_md5sums diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values new file mode 100644 index 0000000..fb5b402 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-missing +Skeleton: upload-non-native +Description: Test if Debian changelog is missing diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc new file mode 100644 index 0000000..c3c534b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-missing +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints new file mode 100644 index 0000000..de5ad15 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints @@ -0,0 +1 @@ +changelog-file-missing (binary): no-changelog usr/share/doc/changelog-file-missing/changelog.Debian.gz (non-native package) diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in new file mode 100644 index 0000000..18d0420 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in @@ -0,0 +1,14 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * New upstream bugfix release. + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (1.0-1) unstable; urgency=low + + * Old changelog entry to trigger the tag. + + -- [% $author %] Sat, 20 Mar 2010 16:09:18 -0700 + diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values new file mode 100644 index 0000000..c26e446 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-file-new-upstream +Skeleton: upload-non-native +Version: 1.0-2 +Description: Check a new upstream version without a version change diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc new file mode 100644 index 0000000..dca2515 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-new-upstream +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints new file mode 100644 index 0000000..6c35244 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints @@ -0,0 +1 @@ +changelog-file-new-upstream (source): possible-new-upstream-release-without-new-version [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS new file mode 100644 index 0000000..6a69656 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS @@ -0,0 +1,7 @@ +changelog-file-news-and-changelog-not-compressed (1.0) unstable; urgency=low + + Something incredibly important... or maybe this is just a + lintian test for an uncompressed NEWS file. + + -- Niels Thykier Wed, 10 Aug 2011 21:09:24 +0200 + \ No newline at end of file diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules new file mode 100755 index 0000000..f957b51 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +pkg = $(shell dh_listpackages) + +%: + dh $@ + +override_dh_installchangelogs: + install -c -m 644 debian/changelog \ + debian/$(pkg)/usr/share/doc/$(pkg)/changelog + install -c -m 644 debian/NEWS \ + debian/$(pkg)/usr/share/doc/$(pkg)/NEWS.Debian + +override_dh_compress: + diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values new file mode 100644 index 0000000..8fc7c20 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-news-and-changelog-not-compressed +Description: General tests for changelog-file tags diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc new file mode 100644 index 0000000..9d29525 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-news-and-changelog-not-compressed +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints new file mode 100644 index 0000000..2715a6c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints @@ -0,0 +1,2 @@ +changelog-file-news-and-changelog-not-compressed (binary): debian-news-file-not-compressed [usr/share/doc/changelog-file-news-and-changelog-not-compressed/NEWS.Debian] +changelog-file-news-and-changelog-not-compressed (binary): changelog-file-not-compressed [usr/share/doc/changelog-file-news-and-changelog-not-compressed/changelog] diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS new file mode 100644 index 0000000..e5ca0f2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS @@ -0,0 +1,11 @@ +changelog-file-news-general (1.0) UNRELEASED; urgency=high + + * This is a major change, which shouldn't be using an asterisk. It also + has an ISO 8859-1 character: µ and a speling error. + + -- Russ Allbery Fri, 01 Jan 2010 20:57:15 -0800 +changelog-file-news-general (0.9) unstable; urgency=low + + Another entry, this one with a syntax error in the date. + + -- Russ Allbery Fri, 01 Jan 2010 20:57:15 -080 diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values new file mode 100644 index 0000000..7b9e061 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-news-general +Description: General checks for NEWS.Debian diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc new file mode 100644 index 0000000..83f65c2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-news-general +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints new file mode 100644 index 0000000..e04e26e --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints @@ -0,0 +1,7 @@ +changelog-file-news-general (binary): syntax-error-in-debian-news-file "found eof where expected more change data or trailer" [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:12] +changelog-file-news-general (binary): syntax-error-in-debian-news-file "badly formatted trailer line" [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:11] +changelog-file-news-general (binary): spelling-error-in-news-debian speling spelling [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz] +changelog-file-news-general (binary): debian-news-entry-uses-asterisk [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] +changelog-file-news-general (binary): debian-news-entry-has-strange-distribution UNRELEASED [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] +changelog-file-news-general (binary): changelog-news-debian-mismatch Urgency low != high [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] +changelog-file-news-general (binary): changelog-news-debian-mismatch Distribution unstable != UNRELEASED [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS new file mode 100644 index 0000000..a4be560 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS @@ -0,0 +1,6 @@ +changelog-file-news-version (2.0) unstable; urgency=low + + This is some news entry about something. + + -- Russ Allbery Fri, 01 Jan 2010 22:09:12 -0800 + diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values new file mode 100644 index 0000000..6b75823 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-news-version +Description: Check mismatches of the NEWS.Debian version diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc new file mode 100644 index 0000000..ddeddca --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-news-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints new file mode 100644 index 0000000..6f9c9f0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints @@ -0,0 +1 @@ +changelog-file-news-version (binary): debian-news-entry-has-unknown-version 2.0 [usr/share/doc/changelog-file-news-version/NEWS.Debian.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news new file mode 100644 index 0000000..928a48c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news @@ -0,0 +1,6 @@ +changelog-file-wrong-name (1.0) unstable; urgency=low + + Some interesting information. + + -- Niels Thykier Sun, 22 Jul 2012 20:30:00 +0000 + diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules new file mode 100755 index 0000000..952d45a --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG=$(shell dh_listpackages) +DOC=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_installchangelogs: + dh_installchangelogs + gzip -n -9c < debian/package-news > $(DOC)/news.debian.gz diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values new file mode 100644 index 0000000..0e4b849 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-news-wrong-name +Description: Check for NEWS.Debian installed with wrong name diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc new file mode 100644 index 0000000..86a8f41 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-news-wrong-name +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints new file mode 100644 index 0000000..3636bbb --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints @@ -0,0 +1 @@ +changelog-file-news-wrong-name (binary): wrong-name-for-debian-news-file [usr/share/doc/changelog-file-news-wrong-name/news.debian.gz] diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules new file mode 100755 index 0000000..f7139c2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_md5sums: + find debian/*/ -type f -a -iname 'changelog.*' -delete + dh_md5sums diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values new file mode 100644 index 0000000..e3dddde --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-no-dch-native +Description: Test if Debian changelog is missing in native pkg diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc new file mode 100644 index 0000000..6dd8e86 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-no-dch-native +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints new file mode 100644 index 0000000..8172b29 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints @@ -0,0 +1 @@ +changelog-file-no-dch-native (binary): no-changelog usr/share/doc/changelog-file-no-dch-native/changelog.gz (native package) diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules new file mode 100755 index 0000000..9307919 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installchangelogs: + # This is needed for Ubuntu, where debhelper does not install + # upstream changelogs by default + dh_installchangelogs ChangeLog + +override_dh_md5sums: + find debian/*/ -type f -a -iname 'changelog.debian*' -delete + dh_md5sums diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values new file mode 100644 index 0000000..d5a6192 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-no-dch +Skeleton: upload-non-native +Description: Test if Debian changelog is missing diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog new file mode 100644 index 0000000..a935b07 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog @@ -0,0 +1,5 @@ +2011-09-10 Niels Thykier + + * This is a non-Debian ChangeLog. Lintian should not be tricked + to believe this is a Debian changelog. + diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc new file mode 100644 index 0000000..ff7ebdf --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-no-dch +Test-Against: syntax-error-in-debian-changelog +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints new file mode 100644 index 0000000..e09922f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints @@ -0,0 +1,2 @@ +changelog-file-no-dch (binary): syntax-error-in-debian-changelog "not a Debian changelog" [usr/share/doc/changelog-file-no-dch/changelog.gz:1] +changelog-file-no-dch (binary): debian-changelog-file-missing-or-wrong-name diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in new file mode 100644 index 0000000..7242f97 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in @@ -0,0 +1,45 @@ +[% $source %] (3:[% $version %]) unstable; urgency=low + + * Third use of [% $version %]. + * This changelog entry bumps the epoch and references the word in the + changelog. + + -- [% $author %] [% $date %] + +[% $source %] (3:0) unstable; urgency=low + + * Bumping epoch to inject a changelog entry to ensure we check later entries. + + -- [% $author %] Fri, 06 Feb 2010 22:22:37 -0800 + +other ([% $version %]) unstable; urgency=low + + * This has the same version but different source and is thus a + false-positive. + + -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800 + +[% $source %] (2:[% $version %]) unstable; urgency=low + + * Second use of version [% $version %]. True positive. + + -- [% $author %] Fri, 06 Feb 2008 22:22:37 -0800 + +[% $source %] (2:0) unstable; urgency=low + + * Bumping epoch to inject a changelog entry to ensure we check later entries. + + -- [% $author %] Fri, 06 Feb 2007 22:22:37 -0800 + +[% $source %] (1:[% $version %]) unstable; urgency=low + + * Initial use of version [% $version %]. This is a false positive as we should + * stop after 2:[% $version %]. + + -- [% $author %] Fri, 06 Feb 2006 22:22:37 -0800 + +[% $source %] (1:0) unstable; urgency=low + + * Add epoch. + + -- [% $author %] Fri, 06 Feb 2005 22:22:37 -0800 diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values new file mode 100644 index 0000000..5705b4d --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-reuses-existing-version +Description: Check changelog for re-used version numbers diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc new file mode 100644 index 0000000..a253dba --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-reuses-existing-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints new file mode 100644 index 0000000..5016c57 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints @@ -0,0 +1 @@ +changelog-file-reuses-existing-version (source): latest-debian-changelog-entry-reuses-existing-version 3:1.0 ~ 2:1.0 (last used: Fri, 06 Feb 2008 22:22:37 -0800) [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in new file mode 100644 index 0000000..83189f2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) stable-proposed-updates; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values new file mode 100644 index 0000000..e460a9c --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-file-stable +Skeleton: upload-non-native +Version: 1.0-1etch1 +Description: Test a stable-proposed-updates package diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc new file mode 100644 index 0000000..529ce5a --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc @@ -0,0 +1,5 @@ +Testname: changelog-file-stable +Test-Against: + malformed-debian-changelog-version + version-refers-to-distribution +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in new file mode 100644 index 0000000..b527316 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in @@ -0,0 +1,12 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (1.0) unstable; urgency=low + + * The date will fail with some dpkg version see #794674 + + -- [% $author %] The, 15 Apr 2004 23:33:51 +0200 diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values new file mode 100644 index 0000000..dcc2e78 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: changelog-file-strange-date +Version: 2.0 +Description: Test some strange date in changelog +Extra-Build-Depends: dpkg (<< 1.18.2) diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc new file mode 100644 index 0000000..c866224 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-strange-date +See-Also: Debian Bug#794674 +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints new file mode 100644 index 0000000..d8424c8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints @@ -0,0 +1 @@ +changelog-file-strange-date (binary): syntax-error-in-debian-changelog line 12 "couldn't parse date The, 15 Apr 2004 23:33:51 +0200" diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules new file mode 100755 index 0000000..fa478f6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + + +override_dh_md5sums: + DIR=$$(find debian/*/ -type f -a -name 'changelog.gz' \ + -exec dirname {} \; ) ; \ + rm -f $$DIR/changelog.gz ; \ + ln -s ../lintian/changelog.gz $$DIR/changelog.gz + dh_md5sums diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values new file mode 100644 index 0000000..3d57c66 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-symlink +Description: Test if Debian changelog is a symlink diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc new file mode 100644 index 0000000..7278012 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-symlink +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints new file mode 100644 index 0000000..90d61c4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints @@ -0,0 +1 @@ +changelog-file-symlink (binary): debian-changelog-file-is-a-symlink [usr/share/doc/changelog-file-symlink/changelog.gz] diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in new file mode 100644 index 0000000..643d367 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in @@ -0,0 +1,22 @@ +[% $source %] ([% $version %]) [% $distribution %]; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] ([% $prev-version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] Sat, 09 Apr 2016 10:56:49 +0000 + +[% $source %] () unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] Sat, 02 Apr 2016 10:56:49 +0000 diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values new file mode 100644 index 0000000..4f393a2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: deb +Testname: changelog-file-syntax +Description: Test for syntax errors in changelogs diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc new file mode 100644 index 0000000..0e3a67e --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-syntax +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints new file mode 100644 index 0000000..16a73ee --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints @@ -0,0 +1,2 @@ +changelog-file-syntax (binary): syntax-error-in-debian-changelog "found change data where expected next heading or eof" [usr/share/doc/changelog-file-syntax/changelog.gz:17] +changelog-file-syntax (binary): syntax-error-in-debian-changelog "badly formatted heading line" [usr/share/doc/changelog-file-syntax/changelog.gz:15] diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values new file mode 100644 index 0000000..78b1b3f --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: changelog-file-unreleased-signed-changes +Distribution: UNRELEASED +Description: Warn about UNRELEASED distribution in changelog if changes is signed diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in new file mode 100755 index 0000000..95e78e4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +# create a temporary directory +TEMPDIR=`mktemp -d` + +# import public key +gpg --homedir "$TEMPDIR" --import "[% $source_path %]/public.key" + +# import private key +gpg --homedir "$TEMPDIR" --allow-secret-key-import --import "[% $source_path %]/private.key" + +# sign changes file +gpg --homedir "$TEMPDIR" --clearsign "[% $build_product %]" + +# save unsigned changes file elsewhere +mv "[% $build_product %]" "[% $build_product %].unsigned" + +# move signed changes file to expected location +mv "[% $build_product %].asc" "[% $build_product %]" + +# remove the temporary directory +rm -rf "$TEMPDIR" diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key new file mode 100644 index 0000000..dc65e47 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key @@ -0,0 +1,81 @@ +-----BEGIN PGP PRIVATE KEY BLOCK----- + +lQVYBF1S0+wBDACpWPf3IGIsQ1LAGGYsGZP3jj52oB2SBXde/Uk45bo8il2snTse +VUUZcxgHUW+/NZescGYyGIUnfAiWPn+kzObMddg5GXWHG2grt1F2LHdIMdLaHBQi +zIu74JZJ7khnd0OhGdsZVtPQ+ilkh0T/IdcigEcZPG1+0anMsgv+6xZl9+oK6ZBn +4VZE6DC7+0F5fFtx8osSQrjuorYZ9dHrsfeyAHZxTVOV7ge8RBp3sMKz9mBlNUfw +ZcyKk8+7M4KMcL7GfZAK8OmfF6cFdRdk3fuEP/6q8UHWNVBAvv4JAr6KG3ZnpJZX +9jvqOjYkyMpCtNSS3Dkiv8dcOpm+pvR2HsqyyLt4cnozb3Rdz4nLTI2A2wgnHFs2 +rm20Ww4gGblbsh4Ps5Kt8exN1T9cKh/B7TntT2SJKkGp1occAtAAIamv9fSuO81q +ywuW2x0swNeK+JJADIq0iZh9vvXsnupk60j5m/J9R1emjWWlImAmJ6c8KJkO/iab +MLZC2Suu7L/rWgUAEQEAAQAL/iC8Qn6iY2fUAcCBVurKbPhrJjbvH5g090zE4G0f +tz7xrkbqQ93KtOdFAM2VV+kZ1n5uYcroQ4EM8Gn+ndUBCNJYK1pqSfY6fYoJzzTt +RoeNngksaVYKvS4trU+QQK3Dd67CHUDKMHrSiMLWhSdeZsRUEKpXrIDZzZ10g24d +CoDeif7fBFuYSwFZ8uW7nX365IBj1q9Kd44lpNbi1lfd2Jgvj7W6MWCnmRYzAfzG +DfUUuLCHuqbFPuNAzGSPAfrc5itbAyOP2fXdTC+WPbdqFPAU7tjtCl/1FfpzwZsE ++mWG3G+Zspkh7Oz58faOc3Tr86GK/dRNRh36eGJOeUfydQnOLvorPO3S0AC0nHCF +q+NXyf6xOKOKiNe7Acc6ezGOyn2DgTBXhZDE79r4rOvDDNKyW+J8vM3JpGv4a4jy +byc3aMd7AU1ai6vfWtbSyB6FtVQ8uPbUBXk3Eo6fvZ8ge7HfIaCAcxCchSCJJevL +pMYrVOez12uatz/3fTOq4CS7RwYAy7c614xUNTlDzX95UnGelaT4cquGp8hlk9vQ +pM01QtaAGJPk+JNg+0J9e4qWoSEN+4+2ncfgY3Wahjn+jfkk9cAROmxQMt2JvXvI +hpcrcvIuMJSAlyp4+HNd4JUzgFP5LCkxs79QbDNVkCZjGDC3zv9UVdVv82IgFCfe +UwgKhNZZlsQsQatdXs/YiK682JpYnbQLmg5/E5g1rTybbgsiYaYZ3E6Tv4d+FEXN +PvsVbAxZIk3IeFhGUs2EVX8DJrjzBgDUz6N2moRsuQ2SLYFsr0NlfU95qAZk4r+f +TZwNhE6ixjiHqfvUuJrgmkhY46GFzcKpJlmxsiCElYrMf+xzhjCE15XLkFoN/jkA +R9mI97IyiEMqBn+aTvlYmQpRmSV0rEvIRT6Y4jwsG4e7NhtJUP30qUSh2rV42lh4 +BU8mLK+Da1gQtlP4b8XadksdJGIasXvDv3Cna0fd/ZKN4nCc2T5Mz9DGhBM55Il3 +0Z9IBIlzZU8MnKmu7pFJYOVkw3jRXycF/R+TU2BintbbqFszVYw0TMr5+UupyhXh +2JMBHEjhGrZ40YZpDpUA+9KrfJ6RUfCw0pg4XmA7OI0cpisRuZb1cXWZpdEchdYQ +N3u/ofUHwCbd6pv86Udmf3Lteeu1zVFBHACnIdsMEVUvMlaO8j5t3nTLYXudaeLe +WZciXu/3pIU46oWKEbm+XzSl9SiyRRtc4VuB+mMNC5XkkqmaYioVtJ/rv1D6Pq8z +dvEO35poUStLLdphX/2Wq7i7C0FuKGkYyvEdtCJEdW1teSBrZXkgdG8gc2lnbiB0 +ZXN0IHN1aXRlIGZpbGVziQHOBBMBCgA4FiEE7gdcRYTGSROvlMCvozS9hpbIwjwF +Al1S0+wCGwMFCwkIBwMFFQoJCAsFFgMCAQACHgECF4AACgkQozS9hpbIwjzxBwv/ +eQXVIgFfCXXxtKuVuae7dLQhu8CBHJZ5PvXLeCjRj8LcERuiEwJz7JRrSP4i7PLn +zA+vv8WSbYUaJ2Lwg/Gj366U7tlrGVRZUEmHzYj9Bc+qxd3Lf/lZmVP3LavgL89w +OMzObJZOKNbUs9bAmLEf7lJnObMEpSAiPji7vPHc+wvM5TegtwjjQNLu7o3rGuut +ARtAA3BxPTBhjKt0Jb30/TrsNE9ecMoC4xcIyy0HY1FPWwwOHFbvJxevyKv84Nng +RyHErB+8RGqUObhtxNrUkJ7xt+jQvAy2xX8bt2w6nOzG4cST2flEcH+Vbqy1bPD0 +b7hTZFL+dDRq43QzGqgqyNDWmvwM5tFBxbWc4cJKbzynhVDPPC6IqFXPml6EF0PA +y+o3zMMdacYODBezWix33JBH9vDH/9dSG4JE1ORLGZpVpKqOQ0YxFPoLrOpYXUxE +2jSDySTrvsCOOpUYl4D7zgVrP9/EkJ2AK5wlVtpv8D5rHrP6/RK2TlfXJt8S6ilt +nQVYBF1S0+wBDAC25JP4vcHnGINaqyw5sdOAr6+0uCNgqIqdmPgG9ZO0nNJVfZOX +s6Wp1TYgQr1qmWE5wsVt9HoClQGlP+6TdYv7cnylksI5rrxwi1eWr2JPYS7dP0HK +nVVXtuqMdak6eNUFHRfjdc896qL5uuHu3VHEpc/3wfqUms6uhsP60xS3AiuwYd6/ +K/nqtA4sz5dh7gLpxT2EpurGohg+q/cf5YegKzjB2J2JYtFKcyHFhX2QiNIrQpVT +LKQDSDkNykr/wqMpCxJ3cskxKkY7zyColfRa9Vdp4/JNpNkL1IrX2ph+tlQisdJ+ +gcDSvuYz60COJuyFikNVz5+84mfpMCVqYVOt9MGLGSbcQA8IgPOMU4Nv9E63ob/l +pLEZQMFwqrmo1zfdhj/LW/p7uNEJ7V2Z08FnBqn72g4RmYE+QQohLfqAOecwrcyi +TcvEeJGDRwX+kZVyTQcrWhm8rchFxJluat7lYsOWFvgS1j8wvRC8QDWQEaODWNUF +iPVP/bybAeHjXl0AEQEAAQAL/iutqEch7mKGAKzRL3Ux6lyT2KcUyOInLj+YDjf/ +Q0DBqRvgqzRyI3DNailHNxxzt/wG74akedUPB/8SpyQRURaCj5EtXPRQrlFEfe0P +Qq/Jels9ZbWBYKXbmeVknj9IJzua6J8afh1/4V85ygZ1VbdckC/P5EvEMvMMXVaU +PaC9RHjRztQiKQPr72y1QSaSpKB2ygvZnz1D7f1drV2xP/Q5DkuBM5JhhrE8kMau +7D9t5Z+OPcJI6XydLX8FHmc5cL2ZVrGgFBor6Bs4JvCKtXTkPKMTPFDg+cfNPsoi +Q0kunBwGCLOxFRtvCYxuVdOKRD/usnRk7+AlRui5criGTbJSYl67BkpZay28Dqk0 +vakZhXEPv2xrr/GG3ViJXb/DWb72UC9/ii5gOPivLJnC9Fia2g1q1mj6nTlW+ao/ +9qfRWYsqX8lAjL8INjmqOzGN1Uxo0z0kriRKjmFvswZbMYHTk1Ifo4Q80dRUiE+e +Ed7snM+Mg4Klar30jm07KF0hIQYA1P08CsWF+3lNHa4tF+rXoBhMa092QLQ1ClCC +2yqu8t1/pFeCjoJ+81THYBc4oK0XYiLenUYTEEsKCtA/FQoBPjYUY9Ghi5JdSEHi +yPSA1G7i5Lk2Cewzrjikoqq/eiVguiy8ZLxQOM+89vruBQyk8jP2hCaEspcfi5bS +FHlZzK6WZ/ytF+VzTFXZLBddq+GHzYh5wttspro0W5WLIuGLjBi8+zHl74hWDdi/ +9elSmW2+BuTx0bZb6J6YaC7L7EdNBgDb03lChbOB+gxgCDOpgMH5wAbHEacS5aeh +6bmJRsq7Y174voxDjGP92eY+VXyO2GIkcYDihHVTA4NsL4sZPVg7lVliCnyuXR1h +fZ0QF36fjuYidkxnshribWaW4k9+mgBAqtN1rQqkWr2VaQv7E70Mn0yGamLUoowH +Vog1PhIo/YA5m9HpamX4VBhtbFdvxuGAlfFahyTc9HEd8R+djSOKA1suFeAp0zJe +dq91bUt645eP8ayipUtSM6br1kYSi1EF+QE1lHQZ/7kyWJGRAdIb4hwTM+UWJ+3Y +dxuhyyHeoli7j/Z2313+/LxG5QGHVg6Fyc2wk3kQeQO26LTUUMSngLdHvCgzWYds +ohPXyE3TJPL5LT0QOqdZyojk7JHYNZB97uUbZQEMRRWZVlec4pyjhKOyAbcQtkjx +H5ZIhGbwzRdX6eSc2S6dX0D46nij1CLbdasfZVKCt0QtOCmcCp4wzOid0v/R1uxH +fPdA9V4NSdEjIjPtLVXfips9Yxv2ttYpltpoiQG2BBgBCgAgFiEE7gdcRYTGSROv +lMCvozS9hpbIwjwFAl1S0+wCGwwACgkQozS9hpbIwjwKxwv9EQ1CO3xsQP+NKI4i +yEAMCp0zr+3AByiqZONLH7Ggh5ZqlJnwZQaYSFRjvDQQxlegN7MAx14hm1IIzgSO +bk9e3oCc+yktwLD+I+VOOjSjPFJH5LPPyI0p4oFn4q59dgvMXfsAz0F+GgqVy04t +XrDrjRSs6b4erbYFuveJPY+JbZLPG068P3L5sFMHCiY623OzaJXSKuGYHlaOvEBO +97G0NfW7lP8/hWM0tAvgwgISxk6jojA0B3eJTKYwT2hLwmT8bblCmBAyNKyoz+TX +uAcQYXuVY1hScFzpra4BgJ2o0xCjHg+RkAtc6a1B2zmhrXiE1OMbzKnYUsnMUM0K +Mgin9Jk6akhCeheEfMoi0OUZNa3BC/D7puDQjupQ+M2xXSb4JGmOJDSumUcg6GnQ +26JFqamo1H0rXMgFeUd1e9wKsd5FKrt4dZXLGYS5r0hnlgSTJZPmA5y7p89ZKxwC +J/BnNG5qryGpb0uglf9styQZnIPzZXziiU5W/GOtxONWwXs7 +=mtBa +-----END PGP PRIVATE KEY BLOCK----- diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key new file mode 100644 index 0000000..b201834 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key @@ -0,0 +1,41 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQGNBF1S0+wBDACpWPf3IGIsQ1LAGGYsGZP3jj52oB2SBXde/Uk45bo8il2snTse +VUUZcxgHUW+/NZescGYyGIUnfAiWPn+kzObMddg5GXWHG2grt1F2LHdIMdLaHBQi +zIu74JZJ7khnd0OhGdsZVtPQ+ilkh0T/IdcigEcZPG1+0anMsgv+6xZl9+oK6ZBn +4VZE6DC7+0F5fFtx8osSQrjuorYZ9dHrsfeyAHZxTVOV7ge8RBp3sMKz9mBlNUfw +ZcyKk8+7M4KMcL7GfZAK8OmfF6cFdRdk3fuEP/6q8UHWNVBAvv4JAr6KG3ZnpJZX +9jvqOjYkyMpCtNSS3Dkiv8dcOpm+pvR2HsqyyLt4cnozb3Rdz4nLTI2A2wgnHFs2 +rm20Ww4gGblbsh4Ps5Kt8exN1T9cKh/B7TntT2SJKkGp1occAtAAIamv9fSuO81q +ywuW2x0swNeK+JJADIq0iZh9vvXsnupk60j5m/J9R1emjWWlImAmJ6c8KJkO/iab +MLZC2Suu7L/rWgUAEQEAAbQiRHVtbXkga2V5IHRvIHNpZ24gdGVzdCBzdWl0ZSBm +aWxlc4kBzgQTAQoAOBYhBO4HXEWExkkTr5TAr6M0vYaWyMI8BQJdUtPsAhsDBQsJ +CAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEKM0vYaWyMI88QcL/3kF1SIBXwl18bSr +lbmnu3S0IbvAgRyWeT71y3go0Y/C3BEbohMCc+yUa0j+Iuzy58wPr7/Fkm2FGidi +8IPxo9+ulO7ZaxlUWVBJh82I/QXPqsXdy3/5WZlT9y2r4C/PcDjMzmyWTijW1LPW +wJixH+5SZzmzBKUgIj44u7zx3PsLzOU3oLcI40DS7u6N6xrrrQEbQANwcT0wYYyr +dCW99P067DRPXnDKAuMXCMstB2NRT1sMDhxW7ycXr8ir/ODZ4EchxKwfvERqlDm4 +bcTa1JCe8bfo0LwMtsV/G7dsOpzsxuHEk9n5RHB/lW6stWzw9G+4U2RS/nQ0auN0 +MxqoKsjQ1pr8DObRQcW1nOHCSm88p4VQzzwuiKhVz5pehBdDwMvqN8zDHWnGDgwX +s1osd9yQR/bwx//XUhuCRNTkSxmaVaSqjkNGMRT6C6zqWF1MRNo0g8kk677AjjqV +GJeA+84Faz/fxJCdgCucJVbab/A+ax6z+v0Stk5X1ybfEuopbbkBjQRdUtPsAQwA +tuST+L3B5xiDWqssObHTgK+vtLgjYKiKnZj4BvWTtJzSVX2Tl7OlqdU2IEK9aplh +OcLFbfR6ApUBpT/uk3WL+3J8pZLCOa68cItXlq9iT2Eu3T9Byp1VV7bqjHWpOnjV +BR0X43XPPeqi+brh7t1RxKXP98H6lJrOrobD+tMUtwIrsGHevyv56rQOLM+XYe4C +6cU9hKbqxqIYPqv3H+WHoCs4wdidiWLRSnMhxYV9kIjSK0KVUyykA0g5DcpK/8Kj +KQsSd3LJMSpGO88gqJX0WvVXaePyTaTZC9SK19qYfrZUIrHSfoHA0r7mM+tAjibs +hYpDVc+fvOJn6TAlamFTrfTBixkm3EAPCIDzjFODb/ROt6G/5aSxGUDBcKq5qNc3 +3YY/y1v6e7jRCe1dmdPBZwap+9oOEZmBPkEKIS36gDnnMK3Mok3LxHiRg0cF/pGV +ck0HK1oZvK3IRcSZbmre5WLDlhb4EtY/ML0QvEA1kBGjg1jVBYj1T/28mwHh415d +ABEBAAGJAbYEGAEKACAWIQTuB1xFhMZJE6+UwK+jNL2GlsjCPAUCXVLT7AIbDAAK +CRCjNL2GlsjCPArHC/0RDUI7fGxA/40ojiLIQAwKnTOv7cAHKKpk40sfsaCHlmqU +mfBlBphIVGO8NBDGV6A3swDHXiGbUgjOBI5uT17egJz7KS3AsP4j5U46NKM8Ukfk +s8/IjSnigWfirn12C8xd+wDPQX4aCpXLTi1esOuNFKzpvh6ttgW694k9j4ltks8b +Trw/cvmwUwcKJjrbc7NoldIq4ZgeVo68QE73sbQ19buU/z+FYzS0C+DCAhLGTqOi +MDQHd4lMpjBPaEvCZPxtuUKYEDI0rKjP5Ne4BxBhe5VjWFJwXOmtrgGAnajTEKMe +D5GQC1zprUHbOaGteITU4xvMqdhSycxQzQoyCKf0mTpqSEJ6F4R8yiLQ5Rk1rcEL +8Pum4NCO6lD4zbFdJvgkaY4kNK6ZRyDoadDbokWpqajUfStcyAV5R3V73Aqx3kUq +u3h1lcsZhLmvSGeWBJMlk+YDnLunz1krHAIn8Gc0bmqvIalvS6CV/2y3JBmcg/Nl +fOKJTlb8Y63E41bBezs= +=iNsY +-----END PGP PUBLIC KEY BLOCK----- diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc new file mode 100644 index 0000000..00bd85b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-unreleased-signed-changes +See-Also: #873520 +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints new file mode 100644 index 0000000..a4d8b63 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints @@ -0,0 +1 @@ +changelog-file-unreleased-signed-changes (source): unreleased-changelog-distribution [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in new file mode 100644 index 0000000..adaaa2d --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in @@ -0,0 +1,13 @@ +[% $source %] ([% $version %]) [% $distribution %]; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + +[% $source %] (1.0) unstable; urgency=low + + * An older changelog entry to test suppression of errors about the + changelog entry having the same date as the previous one. + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values new file mode 100644 index 0000000..25da1fa --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: changelog-file-unreleased +Version: 2.0 +Distribution: UNRELEASED +Description: Suppress new date warnings for UNRELEASED diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc new file mode 100644 index 0000000..46a21c6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc @@ -0,0 +1,6 @@ +Testname: changelog-file-unreleased +Test-Against: + latest-debian-changelog-entry-without-new-date + unreleased-changelog-distribution +See-Also: Debian Bug#560149 +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules new file mode 100644 index 0000000..12f2c85 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_installchangelogs: + dh_installchangelogs + cp some-changelog.html $(DOC)/changelog.html diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values new file mode 100644 index 0000000..684e84e --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-upstream-html-only +Skeleton: upload-non-native +Description: Check HTML-only upstream changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html new file mode 100644 index 0000000..2a4614a --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html @@ -0,0 +1,8 @@ + + + Hallo World + + +

A wonderful changelog written in HTML

+ + diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc new file mode 100644 index 0000000..5604fd1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-upstream-html-only +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints new file mode 100644 index 0000000..696aa50 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints @@ -0,0 +1 @@ +changelog-file-upstream-html-only (binary): html-changelog-without-text-version [usr/share/doc/changelog-file-upstream-html-only/changelog.html.gz] diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules new file mode 100644 index 0000000..45fbec8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_installchangelogs: + dh_installchangelogs + cp some-changelog $(DOC)/Changes diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values new file mode 100644 index 0000000..2e767c6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: changelog-file-wrong-name-upstream +Skeleton: upload-non-native +Description: Check a wrong name for an upstream changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc new file mode 100644 index 0000000..5ae1b34 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-wrong-name-upstream +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints new file mode 100644 index 0000000..44bf518 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints @@ -0,0 +1 @@ +changelog-file-wrong-name-upstream (binary): wrong-name-for-upstream-changelog [usr/share/doc/changelog-file-wrong-name-upstream/Changes] diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in new file mode 100644 index 0000000..8fcb315 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in @@ -0,0 +1,10 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + * Suppress "should close ITP bug" messages. (Closes: #123456) + + * A bit of wishful thinking that the date below was a Friday. + + -- [% $author %] Fri, 07 Apr 2016 17:00:00 +0000 + diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in new file mode 100644 index 0000000..0818186 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: 3.9.8 +Build-Depends: [% $build_depends %] +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/changelog/changelog-file-wrong-weekday/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values new file mode 100644 index 0000000..0d2c5b7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: changelog-file-wrong-weekday +Description: Test for wrong weekday in changelog date diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc new file mode 100644 index 0000000..3411212 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-file-wrong-weekday +Profile: lintian-test +Options: --include-dir ./lintian-include-dir +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints new file mode 100644 index 0000000..22e8a79 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints @@ -0,0 +1 @@ +changelog-file-wrong-weekday (binary): debian-changelog-has-wrong-day-of-week 2016-04-07 was a Thursday [usr/share/doc/changelog-file-wrong-weekday/changelog.gz:1] diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile new file mode 100644 index 0000000..f0e27cf --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/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/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date new file mode 100644 index 0000000..42f8743 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date @@ -0,0 +1,7 @@ +# Any Standards Version released before this day is "ancient" +# +# Frozen for this test so we do not have to update the test every time +# we update the real "ancient-date" data file. +# +# Format is ANCIENT < Date +ANCIENT < 20 Feb 2014 diff --git a/t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values new file mode 100644 index 0000000..6f39521 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-version-bzr +Version: 0.7+bzr49+repack1-1 +Description: Test for +bzr in version (vs binNMU) +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc new file mode 100644 index 0000000..24eb5bf --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-version-bzr +Check: debian/changelog +Test-Against: + malformed-debian-changelog-version diff --git a/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values new file mode 100644 index 0000000..ba9c466 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-version-non-native-simple +Version: 1-2 +Description: Test for normal versions +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc new file mode 100644 index 0000000..9d8d284 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-version-non-native-simple +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values new file mode 100644 index 0000000..913887b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: changelog-version-special-chars +Version: 2:1.5+important~personal1-stable-7 +Description: Test for weird versions +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc new file mode 100644 index 0000000..a38571b --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc @@ -0,0 +1,4 @@ +Testname: changelog-version-special-chars +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints new file mode 100644 index 0000000..fddb586 --- /dev/null +++ b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints @@ -0,0 +1,3 @@ +changelog-version-special-chars (source): hyphen-in-upstream-part-of-debian-changelog-version 1.5+important~personal1-stable [debian/changelog:1] +changelog-version-special-chars (source): epoch-changed-but-upstream-version-did-not-go-backwards 0.0.1-1 -> 2:1.5+important~personal1-stable-7 [debian/changelog:1] +changelog-version-special-chars (source): epoch-change-without-comment 0.0.1-1 -> 2:1.5+important~personal1-stable-7 [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values new file mode 100644 index 0000000..4bc587e --- /dev/null +++ b/t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: cruft-native-dash-version +Source-Format: 1.0 +Version: 1.0-1 +Description: Test for native packages with dash version diff --git a/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc new file mode 100644 index 0000000..8f1baa5 --- /dev/null +++ b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-native-dash-version +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints new file mode 100644 index 0000000..0a358d5 --- /dev/null +++ b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints @@ -0,0 +1 @@ +cruft-native-dash-version (source): malformed-debian-changelog-version 1.0-1 (for native) [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in new file mode 100644 index 0000000..d6095db --- /dev/null +++ b/t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) [% $distribution %]; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values new file mode 100644 index 0000000..a4fa0ac --- /dev/null +++ b/t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: date-based-version +Version: 20180219-1 +Description: Date-based version number +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/date-based-version/eval/desc b/t/recipes/checks/debian/changelog/date-based-version/eval/desc new file mode 100644 index 0000000..f80c48a --- /dev/null +++ b/t/recipes/checks/debian/changelog/date-based-version/eval/desc @@ -0,0 +1,4 @@ +Testname: date-based-version +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/date-based-version/eval/hints b/t/recipes/checks/debian/changelog/date-based-version/eval/hints new file mode 100644 index 0000000..a39ae26 --- /dev/null +++ b/t/recipes/checks/debian/changelog/date-based-version/eval/hints @@ -0,0 +1 @@ +date-based-version (binary): new-package-uses-date-based-version-number 20180219-1 (better: 0~20180219-1) [usr/share/doc/date-based-version/changelog.Debian.gz:1] diff --git a/t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values new file mode 100644 index 0000000..fae232a --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: fields-version-bad-rc +Version: 1.0+rc3-1 +Description: Test for bad release candidate versions +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc new file mode 100644 index 0000000..bbb03dd --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-version-bad-rc +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints new file mode 100644 index 0000000..7a6da94 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints @@ -0,0 +1 @@ +fields-version-bad-rc (source): rc-version-greater-than-expected-version 1.0+rc3 > 1.0 (consider using 1.0~rc3) [debian/changelog:1] diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in new file mode 100644 index 0000000..2895dec --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) [% $distribution %]; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] [% $date %] + diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules new file mode 100644 index 0000000..ce09a53 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_gencontrol: + dh_gencontrol -- -v1.0-0 diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values new file mode 100644 index 0000000..fddcd45 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: fields-version-bad +Version: 0-.3 +Description: Test for weird versions +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/eval/desc b/t/recipes/checks/debian/changelog/fields-version-bad/eval/desc new file mode 100644 index 0000000..eaa3215 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-version-bad +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/eval/hints b/t/recipes/checks/debian/changelog/fields-version-bad/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-bad/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values new file mode 100644 index 0000000..1246466 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-version-dfsg-native +Version: 1.0.dfsg1 +Description: Use of dfsg in a native package diff --git a/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc new file mode 100644 index 0000000..50df649 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-version-dfsg-native +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values new file mode 100644 index 0000000..412adaa --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: fields-version-dot-dfsg +Skeleton: upload-non-native +Version: 1.0.dfsg1-1 +Description: Use of ".dfsg" diff --git a/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc new file mode 100644 index 0000000..0819a9e --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-version-dot-dfsg +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values new file mode 100644 index 0000000..077bc94 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: fields-version-dsfg +Skeleton: upload-non-native +Version: 1.0+dsfg1-1 +Description: Check for the dsfg typo diff --git a/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc new file mode 100644 index 0000000..da32956 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-version-dsfg +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian new file mode 100644 index 0000000..69112e6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian @@ -0,0 +1,6 @@ +generic-dh-make-2008 for Debian +------------------------------- + + + + -- Russ Allbery Mon, 29 Dec 2008 17:33:59 -0800 diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in new file mode 100644 index 0000000..8d16a3d --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in @@ -0,0 +1,5 @@ +generic-dh-make-2008 ([% $version %]) [% $distribution %]; urgency=low + + * Initial release (Closes: #nnnn) + + -- Russ Allbery Mon, 29 Dec 2008 17:33:59 -0800 diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in new file mode 100644 index 0000000..a668392 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in @@ -0,0 +1,13 @@ +Source: generic-dh-make-2008 +Section: unknown +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 7) +Standards-Version: 3.7.3 +Homepage: + +Package: generic-dh-make-2008 +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright new file mode 100644 index 0000000..31b796a --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Russ Allbery on +Mon, 29 Dec 2008 17:33:59 -0800. + +It was downloaded from + +Upstream Author(s): + + + + +Copyright: + + + + +License: + + + +The Debian packaging is (C) 2008, Russ Allbery and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +# 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/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex new file mode 100644 index 0000000..d00b7d0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the generic-dh-make-2008 package +# +0 4 * * * root [ -x /usr/bin/generic-dh-make-2008_maintenance ] && /usr/bin/generic-dh-make-2008_maintenance diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs @@ -0,0 +1 @@ +README diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex new file mode 100644 index 0000000..393594b --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/generic-dh-make-2008 + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=generic-dh-make-2008 + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex new file mode 100644 index 0000000..c48d194 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/generic-dh-make-2008 + +FLAVOR=$1 +PACKAGE=generic-dh-make-2008 + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/generic-dh-make-2008.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex new file mode 100644 index 0000000..b51657a --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex @@ -0,0 +1,25 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file, e.g. /etc/emacs/site-start.d/50generic-dh-make-2008.el +;; for the Debian generic-dh-make-2008 package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The generic-dh-make-2008 package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/generic-dh-make-2008"))) +;; If package-dir does not exist, the generic-dh-make-2008 package must have +;; removed but not purged, and we should skip the setup. + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)) + (autoload 'generic-dh-make-2008-mode "generic-dh-make-2008-mode" + "Major mode for editing generic-dh-make-2008 files." t) + (add-to-list 'auto-mode-alist '("\\.generic-dh-make-2008$" . generic-dh-make-2008-mode)))) + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex new file mode 100644 index 0000000..d770c6e --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex @@ -0,0 +1,10 @@ +# Defaults for generic-dh-make-2008 initscript +# sourced by /etc/init.d/generic-dh-make-2008 +# installed at /etc/default/generic-dh-make-2008 by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="" diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX new file mode 100644 index 0000000..3b966d1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX @@ -0,0 +1,22 @@ +Document: generic-dh-make-2008 +Title: Debian generic-dh-make-2008 Manual +Author: +Abstract: This manual describes what generic-dh-make-2008 is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.sgml.gz + +Format: postscript +Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.ps.gz + +Format: text +Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.text.gz + +Format: HTML +Index: /usr/share/doc/generic-dh-make-2008/html/index.html +Files: /usr/share/doc/generic-dh-make-2008/html/*.html + + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex new file mode 100644 index 0000000..b464594 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex @@ -0,0 +1,157 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# Further changes by Javier Fernandez-Sanguino +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/generic-dh-make-2008 +NAME=generic-dh-make-2008 +DESC=generic-dh-make-2008 + +test -x $DAEMON || exit 0 + +LOGDIR=/var/log/generic-dh-make-2008 +PIDFILE=/var/run/$NAME.pid +DODTIME=1 # Time to wait for the server to die, in seconds + # If this value is set too low you might not + # let some servers to die gracefully and + # 'restart' will not work + +# Include generic-dh-make-2008 defaults if available +if [ -f /etc/default/generic-dh-make-2008 ] ; then + . /etc/default/generic-dh-make-2008 +fi + +set -e + +running_pid() +{ + # Check if a given process pid's cmdline matches a given name + pid=$1 + name=$2 + [ -z "$pid" ] && return 1 + [ ! -d /proc/$pid ] && return 1 + cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` + # Is this the expected child? + [ "$cmd" != "$name" ] && return 1 + return 0 +} + +running() +{ +# Check if the process is running looking at /proc +# (works for all users) + + # No pidfile, probably no daemon present + [ ! -f "$PIDFILE" ] && return 1 + # Obtain the pid and check it against the binary name + pid=`cat $PIDFILE` + running_pid $pid $DAEMON || return 1 + return 0 +} + +force_stop() { +# Forcefully kill the process + [ ! -f "$PIDFILE" ] && return + if running ; then + kill -15 $pid + # Is it really dead? + [ -n "$DODTIME" ] && sleep "$DODTIME"s + if running ; then + kill -9 $pid + [ -n "$DODTIME" ] && sleep "$DODTIME"s + if running ; then + echo "Cannot kill $LABEL (pid=$pid)!" + exit 1 + fi + fi + fi + rm -f $PIDFILE + return 0 +} + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS + if running ; then + echo "$NAME." + else + echo " ERROR." + fi + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + echo "$NAME." + ;; + force-stop) + echo -n "Forcefully stopping $DESC: " + force_stop + if ! running ; then + echo "$NAME." + else + echo " ERROR." + fi + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart" except that it does nothing if the + # daemon isn't already running. + # check wether $DAEMON is running. If so, restart + start-stop-daemon --stop --test --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON \ + && $0 restart \ + || exit 0 + ;; + restart) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + [ -n "$DODTIME" ] && sleep $DODTIME + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + status) + echo -n "$LABEL is " + if running ; then + echo "running" + else + echo " not running." + exit 1 + fi + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex new file mode 100644 index 0000000..b3559de --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex @@ -0,0 +1,296 @@ +#!/bin/sh +# +# Example init.d script with LSB support. +# +# Please read this init.d carefully and modify the sections to +# adjust it to the program you want to run. +# +# Copyright (c) 2007 Javier Fernandez-Sanguino +# +# This is free software; you may redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, +# or (at your option) any later version. +# +# 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. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License with +# the Debian operating system, in /usr/share/common-licenses/GPL; if +# not, write to the Free Software Foundation, Inc., 59 Temple Place, +# Suite 330, Boston, MA 02111-1307 USA +# +### BEGIN INIT INFO +# Provides: generic-dh-make-2008 +# Required-Start: $network $local_fs +# Required-Stop: +# Should-Start: $named +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: +# Description: +# <...> +# <...> +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +DAEMON=/usr/sbin/generic-dh-make-2008 # Introduce the server's location here +NAME=#PACKAGE # Introduce the short server's name here +DESC=#PACKAGE # Introduce a short description here +LOGDIR=/var/log/generic-dh-make-2008 # Log directory to use + +PIDFILE=/var/run/$NAME.pid + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +# Default options, these can be overriden by the information +# at /etc/default/$NAME +DAEMON_OPTS="" # Additional options given to the server + +DIETIME=10 # Time to wait for the server to die, in seconds + # If this value is set too low you might not + # let some servers to die gracefully and + # 'restart' will not work + +#STARTTIME=2 # Time to wait for the server to start, in seconds + # If this value is set each time the server is + # started (on start or restart) the script will + # stall to try to determine if it is running + # If it is not set and the server takes time + # to setup a pid file the log message might + # be a false positive (says it did not start + # when it actually did) + +LOGFILE=$LOGDIR/$NAME.log # Server logfile +#DAEMONUSER=generic-dh-make-2008 # Users to run the daemons as. If this value + # is set start-stop-daemon will chuid the server + +# Include defaults if available +if [ -f /etc/default/$NAME ] ; then + . /etc/default/$NAME +fi + +# Use this if you want the user to explicitly set 'RUN' in +# /etc/default/ +#if [ "x$RUN" != "xyes" ] ; then +# log_failure_msg "$NAME disabled, please adjust the configuration to your needs " +# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it." +# exit 1 +#fi + +# Check that the user exists (if we set a user) +# Does the user exist? +if [ -n "$DAEMONUSER" ] ; then + if getent passwd | grep -q "^$DAEMONUSER:"; then + # Obtain the uid and gid + DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'` + DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'` + else + log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist." + exit 1 + fi +fi + + +set -e + +running_pid() { +# Check if a given process pid's cmdline matches a given name + pid=$1 + name=$2 + [ -z "$pid" ] && return 1 + [ ! -d /proc/$pid ] && return 1 + cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` + # Is this the expected server + [ "$cmd" != "$name" ] && return 1 + return 0 +} + +running() { +# Check if the process is running looking at /proc +# (works for all users) + + # No pidfile, probably no daemon present + [ ! -f "$PIDFILE" ] && return 1 + pid=`cat $PIDFILE` + running_pid $pid $DAEMON || return 1 + return 0 +} + +start_server() { +# Start the process using the wrapper + if [ -z "$DAEMONUSER" ] ; then + start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS + errcode=$? + else +# if we are using a daemonuser then change the user id + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --chuid $DAEMONUSER \ + --exec $DAEMON -- $DAEMON_OPTS + errcode=$? + fi + return $errcode +} + +stop_server() { +# Stop the process using the wrapper + if [ -z "$DAEMONUSER" ] ; then + killproc -p $PIDFILE $DAEMON + errcode=$? + else +# if we are using a daemonuser then look for process that match + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --user $DAEMONUSER \ + --exec $DAEMON + errcode=$? + fi + + return $errcode +} + +reload_server() { + [ ! -f "$PIDFILE" ] && return 1 + pid=pidofproc $PIDFILE # This is the daemon's pid + # Send a SIGHUP + kill -1 $pid + return $? +} + +force_stop() { +# Force the process to die killing it manually + [ ! -e "$PIDFILE" ] && return + if running ; then + kill -15 $pid + # Is it really dead? + sleep "$DIETIME"s + if running ; then + kill -9 $pid + sleep "$DIETIME"s + if running ; then + echo "Cannot kill $NAME (pid=$pid)!" + exit 1 + fi + fi + fi + rm -f $PIDFILE +} + + +case "$1" in + start) + log_daemon_msg "Starting $DESC " "$NAME" + # Check if it's running first + if running ; then + log_progress_msg "apparently already running" + log_end_msg 0 + exit 0 + fi + if start_server ; then + # NOTE: Some servers might die some time after they start, + # this code will detect this issue if STARTTIME is set + # to a reasonable value + [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time + if running ; then + # It's ok, the server started and is running + log_end_msg 0 + else + # It is not running after we did start + log_end_msg 1 + fi + else + # Either we could not start it + log_end_msg 1 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + if running ; then + # Only stop the server if we see it running + errcode=0 + stop_server || errcode=$? + log_end_msg $errcode + else + # If it's not running don't do anything + log_progress_msg "apparently not running" + log_end_msg 0 + exit 0 + fi + ;; + force-stop) + # First try to stop gracefully the program + $0 stop + if running; then + # If it's still running try to kill it more forcefully + log_daemon_msg "Stopping (force) $DESC" "$NAME" + errcode=0 + force_stop || errcode=$? + log_end_msg $errcode + fi + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + errcode=0 + stop_server || errcode=$? + # Wait some sensible amount, some server need this + [ -n "$DIETIME" ] && sleep $DIETIME + start_server || errcode=$? + [ -n "$STARTTIME" ] && sleep $STARTTIME + running || errcode=$? + log_end_msg $errcode + ;; + status) + + log_daemon_msg "Checking status of $DESC" "$NAME" + if running ; then + log_progress_msg "running" + log_end_msg 0 + else + log_progress_msg "apparently not running" + log_end_msg 1 + exit 1 + fi + ;; + # Use this if the daemon cannot reload + reload) + log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" + log_warning_msg "cannot re-read the config file (use restart)." + ;; + # And this if it cann + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # log_daemon_msg "Reloading $DESC configuration files" "$NAME" + # if running ; then + # reload_server + # if ! running ; then + # Process died after we tried to reload + # log_progress_msg "died on reload" + # log_end_msg 1 + # exit 1 + # fi + # else + # log_progress_msg "server is not running" + # log_end_msg 1 + # exit 1 + # fi + #;; + + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex new file mode 100644 index 0000000..d67baa2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex @@ -0,0 +1,59 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH GENERIC-DH-MAKE-2008 SECTION "December 29, 2008" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +generic-dh-make-2008 \- program to do something +.SH SYNOPSIS +.B generic-dh-make-2008 +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B generic-dh-make-2008 +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBgeneric-dh-make-2008\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +generic-dh-make-2008 was written by . +.PP +This manual page was written by Russ Allbery , +for the Debian project (but may be used by others). diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex new file mode 100644 index 0000000..26b3e0c --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex @@ -0,0 +1,156 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + December 29, 2008"> + + SECTION"> + rra@debian.org"> + + GENERIC-DH-MAKE-2008"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex new file mode 100644 index 0000000..2d01c6f --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex @@ -0,0 +1,291 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A typical entry +in a Makefile or Makefile.am is: + +DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl +XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" + +manpage.1: manpage.xml + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The XSL files are in +docbook-xsl. A description of the parameters you can use can be found in the +docbook-xsl-doc-* packages. Please remember that if you create the nroff +version in one of the debian/rules file targets (such as build), you will need +to include xsltproc and docbook-xsl in your Build-Depends control field. +Alternatively use the xmlto command/package. That will also automatically +pull in xsltproc and docbook-xsl. + +Notes for using docbook2x: docbook2x-man does not automatically create the +AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as + ... . + +To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections +read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be +found in the docbook-xsl-doc-html package. + +Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` + +General documentation about man-pages and man-page-formatting: +man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + +--> + + + + + + + + + + + + + +]> + + + + &dhtitle; + &dhpackage; + + + &dhfirstname; + &dhsurname; + Wrote this manpage for the Debian system. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the Debian system + (but may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + program to do something + + + + &dhpackage; + + + + + + + + + this + + + + + + + + this + that + + + + + &dhpackage; + + + + + + + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; and bar + commands. + This manual page was written for the Debian distribution + because the original program does not have a manual page. + Instead, it has documentation in the GNU + info + 1 + format; see below. + &dhpackage; is a program that... + + + OPTIONS + The program follows the usual GNU command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + + info + 1 + files. + + + + + + + Does this and that. + + + + + + + Show summary of options. + + + + + + + Show version of program. + + + + + + FILES + + + /etc/foo.conf + + The system-wide configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + ${HOME}/.foo.conf + + The per-user configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + + + ENVIONMENT + + + FOO_CONF + + If used, the defined file is used as configuration + file (see also ). + + + + + + DIAGNOSTICS + The following diagnostics may be issued + on stderr: + + + Bad configuration file. Exiting. + + The configuration file seems to contain a broken configuration + line. Use the option, to get more info. + + + + + &dhpackage; provides some return codes, that can + be used in scripts: + + Code + Diagnostic + + 0 + Program exited successfully. + + + 1 + The configuration file seems to be broken. + + + + + + BUGS + The program is currently limited to only work + with the foobar library. + The upstreams BTS can be found + at . + + + SEE ALSO + + + bar + 1 + , + baz + 1 + , + foo.conf + 5 + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + info + 1 + system. + +
+ diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex new file mode 100644 index 0000000..8a67e62 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex @@ -0,0 +1,2 @@ +?package(generic-dh-make-2008):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ + title="generic-dh-make-2008" command="/usr/bin/generic-dh-make-2008" diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex new file mode 100644 index 0000000..b5f5ca7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for generic-dh-make-2008 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex new file mode 100644 index 0000000..1d8a18a --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postrm script for generic-dh-make-2008 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex new file mode 100644 index 0000000..3134ccf --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# preinst script for generic-dh-make-2008 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex new file mode 100644 index 0000000..4e5dd3f --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex @@ -0,0 +1,40 @@ +#!/bin/sh +# prerm script for generic-dh-make-2008 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules new file mode 100755 index 0000000..92aa2b1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules @@ -0,0 +1,91 @@ +#!/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 + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/generic-dh-make-2008.sgml > generic-dh-make-2008.1 + + touch $@ + +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/generic-dh-make-2008. + $(MAKE) DESTDIR=$(CURDIR)/debian/generic-dh-make-2008 install + + +# 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/changelog/generic-dh-make-2008/build-spec/debian/watch.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex new file mode 100644 index 0000000..e62d18f --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex @@ -0,0 +1,23 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php generic-dh-make-2008-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge, for devscripts >= 2.9 +# http://sf.net/generic-dh-make-2008/generic-dh-make-2008-(.*)\.tar\.gz + +# Uncomment to find new files on GooglePages +# http://example.googlepages.com/foo.html generic-dh-make-2008-(.*)\.tar\.gz diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values new file mode 100644 index 0000000..ef7a896 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values @@ -0,0 +1,7 @@ +Testname: generic-dh-make-2008 +Skeleton: upload-builder-only +Author: Russ Allbery +Package-Architecture: any +Dh-Compat-Level: 7 +Description: Generic dh_make template generated in 2008 +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile new file mode 100644 index 0000000..4f762d8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile @@ -0,0 +1,4 @@ +# Stub Makefile that's just enough so that the default rules file doesn't +# error out. + +clean install: diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README new file mode 100644 index 0000000..6a3c009 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README @@ -0,0 +1,13 @@ +dh_make 0.46 test +================= + +This is the results of running dh_make 0.46 on an upstream tarball +containing only this file. 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 and +template packages. diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in new file mode 100755 index 0000000..bbdb5cb --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/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/changelog/generic-dh-make-2008/eval/desc b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc new file mode 100644 index 0000000..ebf79a7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc @@ -0,0 +1,4 @@ +Testname: generic-dh-make-2008 +Check: debian/changelog +See-Also: + Bug#497347 diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints new file mode 100644 index 0000000..0d2065a --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints @@ -0,0 +1,3 @@ +generic-dh-make-2008 (binary): wrong-bug-number-in-closes #nnnn [usr/share/doc/generic-dh-make-2008/changelog.Debian.gz:3] +generic-dh-make-2008 (binary): initial-upload-closes-no-bugs [usr/share/doc/generic-dh-make-2008/changelog.Debian.gz:1] +generic-dh-make-2008 (binary): changelog-is-dh_make-template [usr/share/doc/generic-dh-make-2008/changelog.Debian.gz:1] diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/NEWS.Debian new file mode 100644 index 0000000..945632a --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/README.Debian new file mode 100644 index 0000000..94bcc0a --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/changelog.in new file mode 100644 index 0000000..39301d6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/conffiles new file mode 100644 index 0000000..d1a0843 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/control new file mode 100644 index 0000000..c797357 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/copyright new file mode 100644 index 0000000..1d6806d --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/doc-base new file mode 100644 index 0000000..7e5b38f --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/goodbye.desktop new file mode 100644 index 0000000..f6ce8e3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/hello.desktop new file mode 100644 index 0000000..f795468 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu new file mode 100644 index 0000000..e8972f4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu-method new file mode 100644 index 0000000..9f07bd7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/postinst new file mode 100644 index 0000000..29e1861 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/rules new file mode 100755 index 0000000..a962ea9 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/templates new file mode 100644 index 0000000..3d92861 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/fill-values new file mode 100644 index 0000000..b503871 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/INSTALL new file mode 100644 index 0000000..3b50ea9 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/Makefile new file mode 100644 index 0000000..da1dc55 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/hello.c new file mode 100644 index 0000000..2fb04e1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-binary/eval/desc b/t/recipes/checks/debian/changelog/legacy-binary/eval/desc new file mode 100644 index 0000000..dcf46fa --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-binary/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-binary +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-binary/eval/hints b/t/recipes/checks/debian/changelog/legacy-binary/eval/hints new file mode 100644 index 0000000..c634eb0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-binary/eval/hints @@ -0,0 +1,9 @@ +binary (binary): syntax-error-in-debian-news-file "found eof where expected more change data or trailer" [usr/share/doc/binary/NEWS.Debian.gz:13] +binary (binary): syntax-error-in-debian-news-file "badly formatted trailer line" [usr/share/doc/binary/NEWS.Debian.gz:12] +binary (binary): spelling-error-in-news-debian usefull useful [usr/share/doc/binary/NEWS.Debian.gz] +binary (binary): spelling-error-in-news-debian speling spelling [usr/share/doc/binary/NEWS.Debian.gz] +binary (binary): debian-news-entry-has-strange-distribution UNRELEASED [usr/share/doc/binary/NEWS.Debian.gz:1] +binary (binary): debian-changelog-file-missing-or-wrong-name +binary (binary): changelog-news-debian-mismatch Urgency low != high [usr/share/doc/binary/NEWS.Debian.gz:1] +binary (binary): changelog-news-debian-mismatch Distribution unstable != UNRELEASED [usr/share/doc/binary/NEWS.Debian.gz:1] +binary (binary): changelog-file-not-compressed [usr/share/doc/binary/changelog] diff --git a/t/recipes/checks/debian/changelog/legacy-binary/eval/post-test b/t/recipes/checks/debian/changelog/legacy-binary/eval/post-test new file mode 100644 index 0000000..3deefd5 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/README.Debian new file mode 100644 index 0000000..e289bfb --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/changelog.in new file mode 100644 index 0000000..00cdc77 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles new file mode 100644 index 0000000..76032b7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only new file mode 100644 index 0000000..a4b3895 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control new file mode 100644 index 0000000..f3dbda7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/rules new file mode 100755 index 0000000..97ff09f --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/fill-values new file mode 100644 index 0000000..86deb10 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/improper new file mode 100644 index 0000000..23656f4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/proper new file mode 100644 index 0000000..f3dc68b --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc new file mode 100644 index 0000000..9e1392d --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-etcfiles +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints new file mode 100644 index 0000000..49072d6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (binary): changelog-file-not-compressed [usr/share/doc/etcfiles/changelog] diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/changelog.in new file mode 100644 index 0000000..38fc4e9 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-fields/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/control new file mode 100644 index 0000000..d980a6e --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/rules new file mode 100755 index 0000000..11ad4a7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-fields/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/fill-values new file mode 100644 index 0000000..fe90eb0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-fields/eval/desc b/t/recipes/checks/debian/changelog/legacy-fields/eval/desc new file mode 100644 index 0000000..cdb6b18 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-fields/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-fields +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-fields/eval/hints b/t/recipes/checks/debian/changelog/legacy-fields/eval/hints new file mode 100644 index 0000000..33e2889 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-fields/eval/hints @@ -0,0 +1,2 @@ +fields (binary): debian-changelog-file-missing-or-wrong-name +another-version (binary): no-changelog usr/share/doc/another-version/changelog.Debian.gz (non-native package) diff --git a/t/recipes/checks/debian/changelog/legacy-fields/eval/post-test b/t/recipes/checks/debian/changelog/legacy-fields/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/changelog/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/changelog/legacy-filenames/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in new file mode 100644 index 0000000..b79c4ca --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in @@ -0,0 +1,78 @@ +filenames ([% $version %]) [% $distribution %]; urgency=low + + * /me is doing a correct NMU of this package, bumping the epoch too. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:04:39 +0200 + +filenames (11) unstable; urgency=low + + * Add a README.macos. + + -- Marc 'HE' Brockschmidt Mon, 12 Apr 2004 23:35:24 +0200 + +filenames (10) unstable; urgency=low + + * Some new files to check the checks for the use of /usr/*/X11 and + /usr/X11R6/*. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 17:35:20 +0200 + +filenames (9) unstable; urgency=low + + * Add a two *.ali files, one with the right permission, one with + the more common, but false one. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 00:18:16 +0200 + +filenames (8) unstable; urgency=low + + * Add a real ancient file + + -- Frank Lichtenheld Thu, 8 Apr 2004 22:22:40 +0200 + +filenames (7) unstable; urgency=low + + * Add a dozen symlinks, some correct, some not + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 01:28:42 +0100 + +filenames (6) unstable; urgency=low + + * Add perl files to check if + package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly + issued even after attempting to suppress it in some cases + + -- Frank Lichtenheld Fri, 27 Feb 2004 00:49:44 +0100 + +filenames (5) unstable; urgency=low + + * Added check for too long symlink + + -- Sean 'Shaleh' Perry Wed, 3 Jan 2001 13:20:31 -0800 + +filenames (4) unstable; urgency=low + + * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag. + * Add /usr/lib/menu/README to test the new execption for it. + + -- Richard Braakman Thu, 22 Oct 1998 15:42:52 +0200 + +filenames (3) unstable; urgency=low + + * Don't rely on the installer's umask. + + -- Richard Braakman Thu, 20 Aug 1998 12:45:47 +0200 + +filenames (2) unstable; urgency=low + + * Noted more limitations on what filenames lintian handles. + * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz + to Changes.gz. + + -- Richard Braakman Sat, 4 Jul 1998 15:46:11 +0200 + +filenames (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Sat, 4 Jul 1998 15:25:01 +0200 diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control new file mode 100644 index 0000000..1ff9c50 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control @@ -0,0 +1,42 @@ +Source: filenames +Maintainer: Lintian Maintainer +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets + +Package: filenames +Architecture: any +Description: see how lintian reacts to weird filenames + This package contains files with the most evil names I could find, + except for ones that lintian is explicitly not designed to handle. + . + Lintian does not handle filenames containing newlines, or filenames + that contain the strings " link to ", " -> ", or ": ". The last one + is used as a separator by the file command, the others are used as + separators by tar. + . + Lintian also does not handle filenames that contain backslashes, or + other characters that are mangled by tar's -tv output. + +Package: filename-games +Architecture: all +Depends: filenames +Section: games +Description: Test game filename/location checks + This package contains files with slightly less evil names than + filenames. + . + 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: more-filename-games +Architecture: all +Depends: filenames, filename-games +Section: games +Priority: optional +Description: More test for game filename/location checks + This package contains no evil names, only evil locations. + . + 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/changelog/legacy-filenames/build-spec/debian/doc-base b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base new file mode 100644 index 0000000..e5a611b --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base @@ -0,0 +1,11 @@ +Document: testing +Title: Working doc-base control file +Author: Russ Allbery +Abstract: This control file ensures that we don't get false positives for + correct doc-base files. + . + There isn't anything wrong with this one. +Section: Education + +Format: Text +Files: /usr/share/doc/filenames/README.macosx diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules new file mode 100755 index 0000000..0b9e87c --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules @@ -0,0 +1,231 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +clean: + mkdir -p .svn CVS "{arch}" .arch-ids .bzr + touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp + touch data/.arch-inventory + touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121' + touch 'data/Maelstrom Sound.mine' + touch "data/'\\ " + touch filenames.c~ + +build-arch: + +build-indep: + +build: build-arch build-indep + + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + cp -a data debian/tmp/files + chmod -R go=rX debian/tmp/files + + install -d debian/tmp/usr/lib/filenames + install -m 555 -d debian/tmp/usr/lib/filenames/readonly + touch debian/tmp/usr/lib/filenames/readonly/test + + install -d debian/tmp/usr/lib/menu + install -d debian/tmp/usr/share/menu + touch debian/tmp/usr/lib/menu/README + touch debian/tmp/usr/share/menu/README + touch debian/tmp/usr/lib/menu/menu + touch debian/tmp/usr/share/menu/menu + chmod 644 debian/tmp/usr/lib/menu/* + + install -d debian/tmp/$(VENDORARCH)/foo + mkdir debian/tmp/$(VENDORARCH)/.svn + mkdir debian/tmp/$(VENDORARCH)/CVS + mkdir "debian/tmp/$(VENDORARCH)/{arch}" + mkdir debian/tmp/$(VENDORARCH)/.arch-ids + mkdir debian/tmp/$(VENDORARCH)/.bzr + mkdir debian/tmp/$(VENDORARCH)/.be + mkdir debian/tmp/$(VENDORARCH)/.ditrack + install -d debian/tmp/usr/share/perl5 + echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags + echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt + + touch debian/tmp/$(VENDORARCH)/foo/.packlist + chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist + touch debian/tmp/$(VENDORARCH)/foo/bar.pm + TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm + chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm + + install -d debian/tmp/usr/share/pixmaps + install -d debian/tmp/usr/share/pixmaps/foo + touch debian/tmp/usr/share/pixmaps/license.jpeg + touch debian/tmp/usr/share/pixmaps/licence.jpg + touch debian/tmp/usr/share/pixmaps/copying.xpm + touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg + touch debian/tmp/usr/share/pixmaps/foo/copying.png + touch debian/tmp/usr/share/pixmaps/license.txt + touch debian/tmp/usr/share/pixmaps/license.foo + touch debian/tmp/usr/share/pixmaps/COPYING + + install -d debian/tmp/usr/share/linda/overrides + echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames + + install -d debian/tmp/usr/share/doc/filenames + touch debian/tmp/usr/share/doc/filenames/README.macosx + + echo foo > debian/tmp/usr/share/doc/filenames/bokmÃ¥l + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\Ã¥l + echo foo > debian/tmp/usr/share/doc/filenames/bokmål + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål + + echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db + echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store + echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian + + touch debian/tmp/usr/share/doc/filenames/news.debian + gzip -n debian/tmp/usr/share/doc/filenames/news.debian + touch debian/tmp/usr/share/doc/filenames/NEWS.Debian + + echo foo > debian/tmp/usr/share/doc/filenames/link-one + ln debian/tmp/usr/share/doc/filenames/link-one \ + debian/tmp/usr/share/doc/filenames/link-two + + install -d debian/tmp/usr/share/doc/filenames/examples + touch debian/tmp/usr/share/doc/filenames/examples/__init__.py + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + + install -d debian/tmp/usr/lib/ada/adalib/ + touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali + chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali + chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali + + install -d debian/tmp/usr/bin/X11/ + touch debian/tmp/usr/bin/X11/testxbin + install -d debian/tmp/usr/X11R6/bin + touch debian/tmp/usr/X11R6/bin/testxbin2 + install -d debian/tmp/usr/include/X11 + touch debian/tmp/usr/include/X11/foo.h + + install -d debian/tmp/usr/bin/mh + touch debian/tmp/usr/bin/mh/read + chmod 755 debian/tmp/usr/bin/mh/read + install -d debian/tmp/usr/bin/bin + touch debian/tmp/usr/bin/bin/bad + chmod 755 debian/tmp/usr/bin/bin/bad + + install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes + gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes + ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz + + install -d debian/tmp/var/www + echo foo > debian/tmp/var/www/foo + + install -d debian/tmp/srv/foo + touch debian/tmp/srv/foo/bar + install -d debian/tmp/opt/foo + touch debian/tmp/opt/foo/bar + + install -d debian/tmp/etc/gconf/schemas + touch debian/tmp/etc/gconf/schemas/test.schema + + install -d debian/tmp/usr/lib/sgml + touch debian/tmp/usr/lib/sgml/package + + install -d debian/tmp/usr/share/gnome/apps/System + touch debian/tmp/usr/share/gnome/apps/System/foo.desktop + + install -d debian/tmp/usr/share/filenames + touch debian/tmp/usr/share/filenames/jquery.js + touch debian/tmp/usr/share/filenames/jquery.lite.js + touch debian/tmp/usr/share/filenames/jquery.min.js + touch debian/tmp/usr/share/filenames/jquery.pack.js + touch debian/tmp/usr/share/filenames/mochikit.js + touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js + touch debian/tmp/usr/share/filenames/prototype.js + touch debian/tmp/usr/share/filenames/prototype.js.gz + touch debian/tmp/usr/share/filenames/scriptaculous.js + touch debian/tmp/usr/share/filenames/yahoo-dom-event.js + touch debian/tmp/usr/share/filenames/yahoo-min.js + + ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz + ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok + ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong + ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong + ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok + ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong + ln -s test debian/tmp/usr/lib/filenames/symlink3ok + ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong + ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong + ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok + ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong + ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong + ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong + ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong + ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn + ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn + ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn + ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong + +# devhelp tests. Files in /usr/share/gtk-doc/html or /usr/share/devhelp/books +# are okay. Files elsewhere are okay iff their parent path is symlinked into +# one of those paths. + install -d debian/tmp/usr/share/devhelp/books/filenames + echo 'Not really XML' > debian/tmp/usr/share/devhelp/books/filenames/a.devhelp + echo 'Not really XML' > debian/tmp/usr/share/devhelp/books/filenames/.devhelp2 + gzip -n -9 debian/tmp/usr/share/devhelp/books/filenames/.devhelp2 + install -d debian/tmp/usr/share/gtk-doc/html/filenames + echo 'Not really XML' > debian/tmp/usr/share/gtk-doc/html/filenames/b.devhelp + gzip -n -9 debian/tmp/usr/share/gtk-doc/html/filenames/b.devhelp + install -d debian/tmp/usr/share/doc/filenames/good-devhelp + echo 'Not really XML' > debian/tmp/usr/share/doc/filenames/good-devhelp/.devhelp2 + install -d debian/tmp/usr/share/doc/filenames/bad-devhelp + echo 'Not really XML' > debian/tmp/usr/share/doc/filenames/bad-devhelp/c.devhelp + gzip -n -9 debian/tmp/usr/share/doc/filenames/bad-devhelp/c.devhelp + ln -s ../../doc/filenames/good-devhelp debian/tmp/usr/share/gtk-doc/html/good + ln -s ../doc/filenames/bad-devhelp debian/tmp/usr/share/gtk-doc/html/bad + + install -d debian/tmp/usr/share/doc-base + install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames + + dpkg-gencontrol -pfilenames -Pdebian/tmp + dpkg --build debian/tmp .. + + install -d debian/filename-games debian/filename-games/DEBIAN + install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin + echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game + chmod 755 debian/filename-games/usr/bin/test-game + dpkg-gencontrol -pfilename-games -Pdebian/filename-games + dpkg --build debian/filename-games .. + + install -d debian/more-filename-games debian/more-filename-games/DEBIAN + install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin + echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game + echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game + chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game + dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games + dpkg --build debian/more-filename-games .. + +binary: binary-arch binary-indep + +.PHONY: build-indep build-arch build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values new file mode 100644 index 0000000..062a1ea --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: legacy-filenames +Source: filenames +Version: 1:12-0.1 +Description: Legacy test "filenames" diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif new file mode 100644 index 0000000..07fd914 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif @@ -0,0 +1,2 @@ +This filename was inspired by the ".tif used by fnlib. The real package +uses space.tif. diff --git "a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/\".tif" "b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/\".tif" new file mode 100644 index 0000000..e005775 --- /dev/null +++ "b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/\".tif" @@ -0,0 +1 @@ +This filename is really used, by fnlib. diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound new file mode 100644 index 0000000..4110410 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound @@ -0,0 +1 @@ +This filename occurs in the maelstrom package. diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/eval/desc b/t/recipes/checks/debian/changelog/legacy-filenames/eval/desc new file mode 100644 index 0000000..b528ba4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/eval/desc @@ -0,0 +1,3 @@ +Testname: legacy-filenames +Test-Against: epoch-change-without-comment +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/eval/hints b/t/recipes/checks/debian/changelog/legacy-filenames/eval/hints new file mode 100644 index 0000000..7ff07b2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/eval/hints @@ -0,0 +1,4 @@ +filenames (source): odd-historical-debian-changelog-version 11 (for non-native) [debian/changelog:7] +filenames (binary): wrong-name-for-debian-news-file [usr/share/doc/filenames/news.debian.gz] +filenames (binary): debian-news-file-not-compressed [usr/share/doc/filenames/NEWS.Debian] +filenames (binary): debian-changelog-file-is-a-symlink [usr/share/doc/filenames/changelog.gz] diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test b/t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test new file mode 100644 index 0000000..571e35d --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test @@ -0,0 +1,3 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ +s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g +/package-installs-packlist/ d diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian new file mode 100644 index 0000000..87bfcdf --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in new file mode 100644 index 0000000..3da7954 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in @@ -0,0 +1,31 @@ +foo++ ([% $version %]) [% $distribution %]; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: 'ä' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control new file mode 100644 index 0000000..3e86b96 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control @@ -0,0 +1,30 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar, + Frank , Yama@gotchi, Josip, + I am afraid of spam and think this helps +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses non-UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more 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/changelog/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright new file mode 100644 index 0000000..e2d6d93 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules new file mode 100755 index 0000000..63bb4db --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch new file mode 100644 index 0000000..26f9a3c --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values new file mode 100644 index 0000000..86d43bc --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: legacy-foo++ +Source: foo++ +Version: 5 +Description: Legacy test "foo++" diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/eval/desc b/t/recipes/checks/debian/changelog/legacy-foo++/eval/desc new file mode 100644 index 0000000..1907a84 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-foo++ +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/eval/hints b/t/recipes/checks/debian/changelog/legacy-foo++/eval/hints new file mode 100644 index 0000000..2775f3f --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/eval/hints @@ -0,0 +1,4 @@ +foo++ (source): latest-debian-changelog-entry-without-new-date [debian/changelog:1] +foo++ (binary): latest-changelog-entry-without-new-date [usr/share/doc/foo++/changelog.gz:1] +foo++ (binary): debian-changelog-has-wrong-day-of-week 2003-04-14 was a Monday [usr/share/doc/foo++/changelog.gz:1] +foo++ (binary): bogus-mail-host-in-debian-changelog he@unknown (for version 5) [usr/share/doc/foo++/changelog.gz:1] diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test b/t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in new file mode 100644 index 0000000..91a6bb5 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +libbaz ([% $version %]) [% $distribution %]; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control new file mode 100644 index 0000000..1506687 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + 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: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + 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: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + 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: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + 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: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + 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/changelog/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright new file mode 100644 index 0000000..a874c87 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright @@ -0,0 +1,8 @@ +This package 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. + +However, this has an OpenSSL exception. diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst new file mode 100644 index 0000000..683e3cc --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm new file mode 100644 index 0000000..683e3cc --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst new file mode 100644 index 0000000..ec0b98a --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm new file mode 100644 index 0000000..50e37c3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs new file mode 100644 index 0000000..b88e288 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols new file mode 100644 index 0000000..72f9d8a --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules new file mode 100755 index 0000000..fa99bc8 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides new file mode 100644 index 0000000..6008d27 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values new file mode 100644 index 0000000..7effe4f --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-non-native +Testname: legacy-libbaz +Source: libbaz +Version: 1-1 +Default-Build-Depends: debhelper (>= 9.20151004~) +Description: Legacy test "libbaz" diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile new file mode 100644 index 0000000..657dc2a --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c new file mode 100644 index 0000000..4d5fc45 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc new file mode 100644 index 0000000..4b301de --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-libbaz +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints new file mode 100644 index 0000000..186319e --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints @@ -0,0 +1,9 @@ +libbaz2-dev (binary): initial-upload-closes-no-bugs [usr/share/doc/libbaz2-dev/changelog:1] +libbaz2-dev (binary): debian-changelog-file-missing-or-wrong-name +libbaz2-dev (binary): debian-changelog-file-is-a-symlink [usr/share/doc/libbaz2-dev/changelog] +libbaz2-dev (binary): changelog-file-not-compressed [usr/share/doc/libbaz2-dev/changelog] +libbaz2-dbg (binary): no-changelog usr/share/doc/libbaz2-dbg/changelog.Debian.gz (non-native package) +libbaz2 (binary): debian-changelog-file-missing-or-wrong-name +libbaz2 (binary): debian-changelog-file-is-a-symlink [usr/share/doc/libbaz2/changelog.gz] +libbaz1 (binary): initial-upload-closes-no-bugs [usr/share/doc/libbaz1/changelog.gz:1] +libbaz1 (binary): debian-changelog-file-missing-or-wrong-name diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test new file mode 100755 index 0000000..29dc3f4 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test @@ -0,0 +1,4 @@ +/: hardening-.*/ d +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ +s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g +/: file-references-package-build-path / d diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..a12fc8c --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in @@ -0,0 +1,57 @@ +maintainer-scripts ([% $version %]) [% $distribution %]; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..63dd2db --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group +Uploaders: Anyone but Jeroen +Build-Depends: [% $build_depends %] +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: [% $package_architecture %] +Depends: test +Description: test lintian's maintainer script 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. It may + be an empty package. diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..e56ed3b --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell /dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '</dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..6058978 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm new file mode 100644 index 0000000..076ecaf --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat </dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules new file mode 100755 index 0000000..5fcef00 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers new file mode 100644 index 0000000..f627094 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch new file mode 100644 index 0000000..430eea3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=5 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values new file mode 100644 index 0000000..c281e87 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-non-native +Testname: legacy-maintainer-scripts +Source: maintainer-scripts +Version: 7+dfsg-0.1 +Description: Legacy test "maintainer-scripts" +Extra-Build-Depends: dash (>= 0.5.10.2) diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc new file mode 100644 index 0000000..d41ac19 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-maintainer-scripts +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints new file mode 100644 index 0000000..1bae29f --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints @@ -0,0 +1,2 @@ +maintainer-scripts (source): odd-historical-debian-changelog-version 6.1 (for non-native) [debian/changelog:8] +maintainer-scripts (binary): bogus-mail-host-in-debian-changelog jeroen@mordor (for version 6.1) [usr/share/doc/maintainer-scripts/changelog.gz:8] diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in new file mode 100644 index 0000000..9a82ea7 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in @@ -0,0 +1,33 @@ +relations ([% $version %]) [% $distribution %]; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/control new file mode 100644 index 0000000..6cd1c04 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/rules new file mode 100755 index 0000000..5027f33 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control new file mode 100644 index 0000000..87e7fe6 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/t/recipes/checks/debian/changelog/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/fill-values new file mode 100644 index 0000000..7e4661b --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: legacy-relations +Source: relations +Version: 5 +Description: Legacy test "relations" diff --git a/t/recipes/checks/debian/changelog/legacy-relations/eval/desc b/t/recipes/checks/debian/changelog/legacy-relations/eval/desc new file mode 100644 index 0000000..5093618 --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-relations +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/legacy-relations/eval/hints b/t/recipes/checks/debian/changelog/legacy-relations/eval/hints new file mode 100644 index 0000000..f3ccfcb --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/eval/hints @@ -0,0 +1 @@ +relations (binary): no-changelog usr/share/doc/relations/changelog.gz (native package) diff --git a/t/recipes/checks/debian/changelog/legacy-relations/eval/post-test b/t/recipes/checks/debian/changelog/legacy-relations/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/changelog/legacy-relations/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values new file mode 100644 index 0000000..806df46 --- /dev/null +++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: missing-explicit-entry-fp-unrel +Skeleton: upload-non-native +Version: 1.13.7-0.1 +Prev-Version: 1.13.2-1 +Description: Test for false positive of missing changelog entry, with a source NMU on a new upstream version. diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc new file mode 100644 index 0000000..e6b2d13 --- /dev/null +++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc @@ -0,0 +1,5 @@ +Testname: missing-explicit-entry-fp-unrel +Test-Against: + changelog-file-missing-explicit-entry +Check: debian/changelog +See-Also: Debian Bug #942411 diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values new file mode 100644 index 0000000..ced3c4e --- /dev/null +++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: missing-explicit-entry-fp +Skeleton: upload-non-native +Version: 1.2-0+deb9u1 +Prev-Version: 0.9-1 +Description: Test for missing (stable update, etc.) entries, false positive, exception on 0. diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc new file mode 100644 index 0000000..b0514b1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc @@ -0,0 +1,4 @@ +Testname: missing-explicit-entry-fp +Test-Against: + changelog-file-missing-explicit-entry +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in new file mode 100644 index 0000000..8deb337 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Local package. + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery [% $date %] diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values new file mode 100644 index 0000000..2f60c73 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: nmu-local-changelog +Description: Test suppression of NMU tags for local packages diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc new file mode 100644 index 0000000..4140200 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc @@ -0,0 +1,4 @@ +Testname: nmu-local-changelog +Test-Against: malformed-debian-changelog-version +See-Also: Debian Bug#501523 +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in new file mode 100644 index 0000000..8eba4c0 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery [% $date %] diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values new file mode 100644 index 0000000..e04302d --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: nmu-local-version +Version: 1.0local1 +Description: Test suppression of NMU tags for local packages diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/eval/desc b/t/recipes/checks/debian/changelog/nmu-local-version/eval/desc new file mode 100644 index 0000000..1cffe96 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-local-version/eval/desc @@ -0,0 +1,4 @@ +Testname: nmu-local-version +Test-Against: malformed-debian-changelog-version +See-Also: Debian Bug#501523 +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/eval/hints b/t/recipes/checks/debian/changelog/nmu-local-version/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in new file mode 100644 index 0000000..4017019 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Non-maintainer upload. + * Lintian Test Suite. + * Test: [% $testname %] + + -- Thadeu Lima de Souza Cascardo [% $date %] diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values new file mode 100644 index 0000000..409b82b --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: nmu-new-upstream-version +Version: 3.1-0.1 +Description: Test for new upstream NMU versions +Skeleton: upload-non-native diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc new file mode 100644 index 0000000..7f8b8b3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc @@ -0,0 +1,4 @@ +Testname: nmu-new-upstream-version +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in new file mode 100644 index 0000000..6745296 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Team upload. + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery [% $date %] diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values new file mode 100644 index 0000000..0da98e2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: nmu-team-upload +Version: 1.0+nmu1 +Description: Test for versioning of a team upload diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc new file mode 100644 index 0000000..c867e9e --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc @@ -0,0 +1,3 @@ +Testname: nmu-team-upload +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values b/t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values new file mode 100644 index 0000000..d0d3daa --- /dev/null +++ b/t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: source-native +Testname: package-version-0 +Version: 0 +Description: Test a package with version 0 diff --git a/t/recipes/checks/debian/changelog/package-version-0/eval/desc b/t/recipes/checks/debian/changelog/package-version-0/eval/desc new file mode 100644 index 0000000..98ff4b3 --- /dev/null +++ b/t/recipes/checks/debian/changelog/package-version-0/eval/desc @@ -0,0 +1,4 @@ +Testname: package-version-0 +Test-Against: + malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/package-version-0/eval/hints b/t/recipes/checks/debian/changelog/package-version-0/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/changelog/package-version-0/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values new file mode 100644 index 0000000..373fa4c --- /dev/null +++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: sid-and-unstable-match-in-changes +Skeleton: upload-native +Distribution: sid +Description: Test if Debian changelog is missing diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in new file mode 100755 index 0000000..0048c4d --- /dev/null +++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +perl -pi -e 's/(Distribution:\s*)sid/$1unstable/' "[% $build_product %]" diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc new file mode 100644 index 0000000..7f785c9 --- /dev/null +++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc @@ -0,0 +1,4 @@ +Testname: sid-and-unstable-match-in-changes +Test-Against: + changelog-distribution-does-not-match-changes-file +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in new file mode 100644 index 0000000..2d380f5 --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in @@ -0,0 +1,13 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + * This line has a speling error. + - This line has the same speling error, but we should only + get one tag for it. + * Corrected spelling: abov -> above. + * Corrected typo: abov -> above. + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright new file mode 100644 index 0000000..30cbe5c --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright @@ -0,0 +1,21 @@ +This duplicate duplicate word should not trigger. (re. #897402) + +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2010 Russ Allbery + +This text should not generate a spelling error for "ment": + + computer software documentation," as such terms are used in + 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- + ment only as a commercial end item. Consistent with 48 C.F.R. + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), + +But deafult is still a spelling error. + +This text should not generate a spelling error for the duplicate "a" (re. #844166) + + following Attribution Information: (a) a copyright notice including the name diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base new file mode 100644 index 0000000..3839a9b --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base @@ -0,0 +1,9 @@ +Document: spelling-general +Title: Check for debian doc-base spelling errors +Author: Russ Allbery +Abstract: This control file exercises, picky, speling error checks for + Debian doc-base files, such as meta-package. +Section: Programming + +Format: text +Files: /usr/share/doc/spelling-general/copyright diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme new file mode 100644 index 0000000..b1647ba --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme @@ -0,0 +1,8 @@ +This is a deliberate speling error. duplicate + +duplicate + +--- upstream.orig/README ++++ upstream/README +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel new file mode 100644 index 0000000..48e7740 --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; description mentions typo) + +--- upstream.orig/nonrel ++++ upstream/nonrel +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series new file mode 100644 index 0000000..0bfb03d --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series @@ -0,0 +1,3 @@ +add-readme +spelling +nonrel diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling new file mode 100644 index 0000000..29b9cfd --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; filename match) + +--- upstream.orig/spelling ++++ upstream/spelling +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values new file mode 100644 index 0000000..1c8c790 --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: spelling-general +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) +Description: General checks for spelling errors diff --git a/t/recipes/checks/debian/changelog/spelling-general/eval/desc b/t/recipes/checks/debian/changelog/spelling-general/eval/desc new file mode 100644 index 0000000..c42796e --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/eval/desc @@ -0,0 +1,2 @@ +Testname: spelling-general +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/spelling-general/eval/hints b/t/recipes/checks/debian/changelog/spelling-general/eval/hints new file mode 100644 index 0000000..70278a2 --- /dev/null +++ b/t/recipes/checks/debian/changelog/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (binary): spelling-error-in-changelog speling spelling [usr/share/doc/spelling-general/changelog.Debian.gz] diff --git a/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values new file mode 100644 index 0000000..073f011 --- /dev/null +++ b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-non-native +Testname: two-dashes-in-non-native-version +Version: 4.6.2-1-1 +Description: Two dashes in a non-native version diff --git a/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc new file mode 100644 index 0000000..2c2a6d1 --- /dev/null +++ b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc @@ -0,0 +1,3 @@ +Testname: two-dashes-in-non-native-version +Test-Against: malformed-debian-changelog-version +Check: debian/changelog diff --git a/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints new file mode 100644 index 0000000..c5e0665 --- /dev/null +++ b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints @@ -0,0 +1 @@ +two-dashes-in-non-native-version (source): hyphen-in-upstream-part-of-debian-changelog-version 4.6.2-1 [debian/changelog:1] -- cgit v1.2.3