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 --- .../two-patches/build-spec/debian/patches/patch1 | 0 .../two-patches/build-spec/debian/patches/patch2 | 0 .../two-patches/build-spec/debian/patches/series | 5 + .../count/two-patches/build-spec/fill-values | 3 + .../debian/patches/count/two-patches/eval/desc | 2 + .../debian/patches/count/two-patches/eval/hints | 1 + .../debian/patches/applied-upstream.patch | 15 +++ .../dep3/applied-upstream/build-spec/fill-values | 3 + .../debian/patches/dep3/applied-upstream/eval/desc | 5 + .../patches/dep3/applied-upstream/eval/hints | 1 + .../build-spec/debian/patches/silent.patch | 14 ++ .../empty-forwarded-no-bug/build-spec/fill-values | 3 + .../patches/dep3/empty-forwarded-no-bug/eval/desc | 3 + .../patches/dep3/empty-forwarded-no-bug/eval/hints | 1 + .../build-spec/debian/patches/not-forwarded.patch | 15 +++ .../dep3/forwarded-no/build-spec/fill-values | 3 + .../debian/patches/dep3/forwarded-no/eval/desc | 3 + .../debian/patches/dep3/forwarded-no/eval/hints | 1 + .../debian/patches/no-forwarding-needed.patch | 15 +++ .../forwarded-not-needed/build-spec/fill-values | 3 + .../patches/dep3/forwarded-not-needed/eval/desc | 5 + .../patches/dep3/forwarded-not-needed/eval/hints | 1 + .../debian/patches/13_document_modifiers.diff | 41 ++++++ .../dep3/origin-upstream/build-spec/fill-values | 3 + .../debian/patches/dep3/origin-upstream/eval/desc | 5 + .../debian/patches/dep3/origin-upstream/eval/hints | 1 + .../debian/patches/no-forwarding-needed.patch | 17 +++ .../dep3/pseudo-header/build-spec/fill-values | 3 + .../debian/patches/dep3/pseudo-header/eval/desc | 5 + .../debian/patches/dep3/pseudo-header/eval/hints | 1 + .../legacy-scripts/build-spec/debian/changelog.in | 41 ++++++ .../legacy-scripts/build-spec/debian/control.in | 16 +++ .../legacy-scripts/build-spec/debian/copyright | 5 + .../build-spec/debian/patches/00list | 11 ++ .../build-spec/debian/patches/00list.sparc | 1 + .../build-spec/debian/patches/00options | 1 + .../patches/02_i_dont_have_a_description.patch | 7 + .../patches/03_specified_without_dpatch.dpatch | 5 + .../04_i_dont_have_a_description_either.patch | 7 + .../legacy-scripts/build-spec/debian/postinst | 14 ++ .../dpatch/legacy-scripts/build-spec/debian/postrm | 9 ++ .../legacy-scripts/build-spec/debian/preinst | 15 +++ .../dpatch/legacy-scripts/build-spec/debian/rules | 105 +++++++++++++++ .../build-spec/debian/scripts.conffiles | 6 + .../dpatch/legacy-scripts/build-spec/debian/watch | 8 ++ .../dpatch/legacy-scripts/build-spec/fill-values | 6 + .../dpatch/legacy-scripts/build-spec/orig/csh-foo | 2 + .../dpatch/legacy-scripts/build-spec/orig/envfoo | 4 + .../dpatch/legacy-scripts/build-spec/orig/fish-foo | 2 + .../legacy-scripts/build-spec/orig/gccbug.dpatch | 39 ++++++ .../legacy-scripts/build-spec/orig/guile-bizarre | 6 + .../legacy-scripts/build-spec/orig/init-lsb-broken | 34 +++++ .../legacy-scripts/build-spec/orig/init-lsb-other | 22 +++ .../legacy-scripts/build-spec/orig/init-no-lsb | 17 +++ .../legacy-scripts/build-spec/orig/init-skeleton | 150 +++++++++++++++++++++ .../legacy-scripts/build-spec/orig/jruby-broken | 2 + .../legacy-scripts/build-spec/orig/lefty-foo | 2 + .../dpatch/legacy-scripts/build-spec/orig/make-foo | 3 + .../legacy-scripts/build-spec/orig/perl-bizarre-1 | 11 ++ .../legacy-scripts/build-spec/orig/perl-bizarre-2 | 7 + .../legacy-scripts/build-spec/orig/perl-bizarre-3 | 6 + .../dpatch/legacy-scripts/build-spec/orig/perlfoo | 3 + .../legacy-scripts/build-spec/orig/phpenvfoo | 7 + .../dpatch/legacy-scripts/build-spec/orig/phpfoo | 7 + .../dpatch/legacy-scripts/build-spec/orig/rubyfoo | 4 + .../legacy-scripts/build-spec/orig/sh-broken | 2 + .../legacy-scripts/build-spec/orig/suidperlfoo | 3 + .../dpatch/legacy-scripts/build-spec/orig/tkfoo | 31 +++++ .../dpatch/legacy-scripts/build-spec/orig/wishfoo | 4 + .../legacy-scripts/build-spec/orig/xsession-test | 3 + .../dpatch/legacy-scripts/build-spec/pre-build | 5 + .../debian/patches/dpatch/legacy-scripts/eval/desc | 2 + .../patches/dpatch/legacy-scripts/eval/hints | 5 + .../patches/dpatch/legacy-scripts/eval/post-test | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/00list | 12 ++ .../build-spec/debian/patches/00list.sparc | 1 + .../build-spec/debian/patches/00options | 1 + .../patches/02_i_dont_have_a_description.patch | 7 + .../patches/03_specified_without_dpatch.dpatch | 5 + .../04_i_dont_have_a_description_either.patch | 7 + .../build-spec/debian/patches/05_dep3.diff | 7 + .../build-spec/fill-values | 4 + .../patch-systems-dpatch-description/eval/desc | 2 + .../patch-systems-dpatch-description/eval/hints | 5 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/README | 1 + .../build-spec/debian/patches/README.patches | 1 + .../build-spec/debian/patches/file-commented-out | 1 + .../debian/patches/file-mentioned-in-vendor-series | 1 + .../debian/patches/file-not-referenced-in-series | 1 + .../build-spec/debian/patches/series | 6 + .../build-spec/debian/patches/some-file | 11 ++ .../build-spec/debian/patches/some-other-file | 12 ++ .../build-spec/debian/patches/subdir/README | 1 + .../patches/subdir/file-not-referenced-in-series-2 | 1 + .../build-spec/debian/patches/vendorname.series | 1 + .../build-spec/diff/README | 1 + .../build-spec/fill-values | 4 + .../dpatch/patch-systems-quilt-general/eval/desc | 2 + .../dpatch/patch-systems-quilt-general/eval/hints | 2 + .../legacy-debconf/build-spec/debian/changelog.in | 6 + .../legacy-debconf/build-spec/debian/compat.in | 1 + .../legacy-debconf/build-spec/debian/control | 52 +++++++ .../legacy-debconf/build-spec/debian/copyright | 10 ++ .../debian/debconf-test-noscripts.templates | 3 + .../debian/debconf-test-postinst.postinst | 10 ++ .../build-spec/debian/debconf-test-postinst.postrm | 7 + .../debian/debconf-test-postinst.templates | 3 + .../build-spec/debian/debconf-test-preinst.postrm | 7 + .../build-spec/debian/debconf-test-preinst.preinst | 13 ++ .../debian/debconf-test-preinst.templates | 3 + .../build-spec/debian/debconf-test.config | 24 ++++ .../build-spec/debian/debconf-test.postinst | 10 ++ .../build-spec/debian/debconf-test.templates | 101 ++++++++++++++ .../build-spec/debian/debconf-test.templates.de | 3 + .../build-spec/debian/debconf-test.templates.in | 0 .../build-spec/debian/debconf-udeb.postinst | 9 ++ .../build-spec/debian/debconf-udeb.templates | 3 + .../build-spec/debian/po/POTFILES.in | 2 + .../legacy-debconf/build-spec/debian/po/de.po | 66 +++++++++ .../legacy-debconf/build-spec/debian/po/fr.po | 60 +++++++++ .../legacy-debconf/build-spec/debian/po/lang.po | 15 +++ .../legacy-debconf/build-spec/debian/po/nds.po | 15 +++ .../legacy-debconf/build-spec/debian/po/output | 1 + .../legacy-debconf/build-spec/debian/po/pt_BR.po | 15 +++ .../build-spec/debian/po/sample-file.po | 1 + .../build-spec/debian/po/templates.pot | 61 +++++++++ .../legacy-debconf/build-spec/debian/pycompat | 1 + .../legacy-debconf/build-spec/debian/pyversions | 1 + .../patches/legacy-debconf/build-spec/debian/rules | 64 +++++++++ .../patches/legacy-debconf/build-spec/fill-values | 6 + .../checks/debian/patches/legacy-debconf/eval/desc | 2 + .../debian/patches/legacy-debconf/eval/hints | 2 + .../debian/patches/legacy-debconf/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/patches/legacy-relations/eval/desc | 2 + .../debian/patches/legacy-relations/eval/hints | 2 + .../debian/patches/legacy-relations/eval/post-test | 1 + .../legacy-scripts/build-spec/debian/changelog.in | 41 ++++++ .../legacy-scripts/build-spec/debian/control.in | 16 +++ .../legacy-scripts/build-spec/debian/copyright | 5 + .../build-spec/debian/patches/00list | 11 ++ .../build-spec/debian/patches/00list.sparc | 1 + .../build-spec/debian/patches/00options | 1 + .../patches/02_i_dont_have_a_description.patch | 7 + .../patches/03_specified_without_dpatch.dpatch | 5 + .../04_i_dont_have_a_description_either.patch | 7 + .../legacy-scripts/build-spec/debian/postinst | 14 ++ .../legacy-scripts/build-spec/debian/postrm | 9 ++ .../legacy-scripts/build-spec/debian/preinst | 15 +++ .../patches/legacy-scripts/build-spec/debian/rules | 105 +++++++++++++++ .../build-spec/debian/scripts.conffiles | 6 + .../patches/legacy-scripts/build-spec/debian/watch | 8 ++ .../patches/legacy-scripts/build-spec/fill-values | 6 + .../patches/legacy-scripts/build-spec/orig/csh-foo | 2 + .../patches/legacy-scripts/build-spec/orig/envfoo | 4 + .../legacy-scripts/build-spec/orig/fish-foo | 2 + .../legacy-scripts/build-spec/orig/gccbug.dpatch | 39 ++++++ .../legacy-scripts/build-spec/orig/guile-bizarre | 6 + .../legacy-scripts/build-spec/orig/init-lsb-broken | 34 +++++ .../legacy-scripts/build-spec/orig/init-lsb-other | 22 +++ .../legacy-scripts/build-spec/orig/init-no-lsb | 17 +++ .../legacy-scripts/build-spec/orig/init-skeleton | 150 +++++++++++++++++++++ .../legacy-scripts/build-spec/orig/jruby-broken | 2 + .../legacy-scripts/build-spec/orig/lefty-foo | 2 + .../legacy-scripts/build-spec/orig/make-foo | 3 + .../legacy-scripts/build-spec/orig/perl-bizarre-1 | 11 ++ .../legacy-scripts/build-spec/orig/perl-bizarre-2 | 7 + .../legacy-scripts/build-spec/orig/perl-bizarre-3 | 6 + .../patches/legacy-scripts/build-spec/orig/perlfoo | 3 + .../legacy-scripts/build-spec/orig/phpenvfoo | 7 + .../patches/legacy-scripts/build-spec/orig/phpfoo | 7 + .../patches/legacy-scripts/build-spec/orig/rubyfoo | 4 + .../legacy-scripts/build-spec/orig/sh-broken | 2 + .../legacy-scripts/build-spec/orig/suidperlfoo | 3 + .../patches/legacy-scripts/build-spec/orig/tkfoo | 31 +++++ .../patches/legacy-scripts/build-spec/orig/wishfoo | 4 + .../legacy-scripts/build-spec/orig/xsession-test | 3 + .../patches/legacy-scripts/build-spec/pre-build | 5 + .../checks/debian/patches/legacy-scripts/eval/desc | 2 + .../debian/patches/legacy-scripts/eval/hints | 3 + .../debian/patches/legacy-scripts/eval/post-test | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/00list | 12 ++ .../build-spec/debian/patches/00list.sparc | 1 + .../build-spec/debian/patches/00options | 1 + .../patches/02_i_dont_have_a_description.patch | 7 + .../patches/03_specified_without_dpatch.dpatch | 5 + .../04_i_dont_have_a_description_either.patch | 7 + .../build-spec/debian/patches/05_dep3.diff | 7 + .../build-spec/fill-values | 4 + .../patch-systems-dpatch-description/eval/desc | 2 + .../patch-systems-dpatch-description/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/series | 0 .../build-spec/fill-values | 4 + .../patches/patch-systems-empty-series/eval/desc | 3 + .../patches/patch-systems-empty-series/eval/hints | 1 + .../build-spec/diff/README | 1 + .../build-spec/fill-values | 4 + .../patch-systems-no-patch-system/eval/desc | 2 + .../patch-systems-no-patch-system/eval/hints | 1 + .../build-spec/debian/patches/01_this_patch_is_ok | 7 + .../build-spec/debian/patches/series | 1 + .../build-spec/fill-values | 4 + .../patch-systems-no-readme-source/eval/desc | 3 + .../patch-systems-no-readme-source/eval/hints | 2 + .../build-spec/debian/patches/debian-changes-1.0-1 | 7 + .../build-spec/debian/patches/series | 1 + .../build-spec/fill-values | 4 + .../build-spec/orig/a | 1 + .../patch-systems-quilt-debian-changes/eval/desc | 2 + .../patch-systems-quilt-debian-changes/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/01_this_patch_is_ok | 7 + .../debian/patches/02_this_one_has_no_description | 5 + .../build-spec/debian/patches/03_a_git_patch | 8 ++ .../debian/patches/04_template_description | 17 +++ .../build-spec/debian/patches/series | 4 + .../build-spec/fill-values | 4 + .../patch-systems-quilt-description/eval/desc | 3 + .../patch-systems-quilt-description/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/README | 1 + .../build-spec/debian/patches/README.patches | 1 + .../build-spec/debian/patches/file-commented-out | 1 + .../debian/patches/file-mentioned-in-vendor-series | 1 + .../debian/patches/file-not-referenced-in-series | 1 + .../build-spec/debian/patches/series | 6 + .../build-spec/debian/patches/some-file | 11 ++ .../build-spec/debian/patches/some-other-file | 12 ++ .../build-spec/debian/patches/subdir/README | 1 + .../patches/subdir/file-not-referenced-in-series-2 | 1 + .../build-spec/debian/patches/vendorname.series | 1 + .../build-spec/diff/README | 1 + .../build-spec/fill-values | 4 + .../patches/patch-systems-quilt-general/eval/desc | 2 + .../patches/patch-systems-quilt-general/eval/hints | 3 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/01_this_patch_is_ok | 7 + .../build-spec/debian/patches/series | 1 + .../build-spec/fill-values | 4 + .../patch-systems-quilt-no-newline/eval/desc | 2 + .../patch-systems-quilt-no-newline/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/fill-values | 5 + .../build-spec/orig/README | 1 + .../patch-systems-quilt-no-series/eval/desc | 2 + .../patch-systems-quilt-no-series/eval/hints | 1 + .../build-spec/debian/patches/wig-pen | 5 + .../cruft-general-wig-pen/build-spec/debian/rules | 9 ++ .../build-spec/debian/substvars | 1 + .../cruft-general-wig-pen/build-spec/fill-values | 4 + .../cruft-general-wig-pen/build-spec/orig/README | 1 + .../cruft-general-wig-pen/build-spec/pre-build | 32 +++++ .../patches/quilt/cruft-general-wig-pen/eval/desc | 3 + .../patches/quilt/cruft-general-wig-pen/eval/hints | 1 + .../build-spec/debian/changelog.in | 33 +++++ .../legacy-relations/build-spec/debian/control | 51 +++++++ .../quilt/legacy-relations/build-spec/debian/rules | 49 +++++++ .../build-spec/debian/tmp/DEBIAN/control | 14 ++ .../quilt/legacy-relations/build-spec/fill-values | 5 + .../patches/quilt/legacy-relations/eval/desc | 2 + .../patches/quilt/legacy-relations/eval/hints | 1 + .../patches/quilt/legacy-relations/eval/post-test | 1 + .../legacy-scripts/build-spec/debian/changelog.in | 41 ++++++ .../legacy-scripts/build-spec/debian/control.in | 16 +++ .../legacy-scripts/build-spec/debian/copyright | 5 + .../build-spec/debian/patches/00list | 11 ++ .../build-spec/debian/patches/00list.sparc | 1 + .../build-spec/debian/patches/00options | 1 + .../patches/02_i_dont_have_a_description.patch | 7 + .../patches/03_specified_without_dpatch.dpatch | 5 + .../04_i_dont_have_a_description_either.patch | 7 + .../legacy-scripts/build-spec/debian/postinst | 14 ++ .../quilt/legacy-scripts/build-spec/debian/postrm | 9 ++ .../quilt/legacy-scripts/build-spec/debian/preinst | 15 +++ .../quilt/legacy-scripts/build-spec/debian/rules | 105 +++++++++++++++ .../build-spec/debian/scripts.conffiles | 6 + .../quilt/legacy-scripts/build-spec/debian/watch | 8 ++ .../quilt/legacy-scripts/build-spec/fill-values | 6 + .../quilt/legacy-scripts/build-spec/orig/csh-foo | 2 + .../quilt/legacy-scripts/build-spec/orig/envfoo | 4 + .../quilt/legacy-scripts/build-spec/orig/fish-foo | 2 + .../legacy-scripts/build-spec/orig/gccbug.dpatch | 39 ++++++ .../legacy-scripts/build-spec/orig/guile-bizarre | 6 + .../legacy-scripts/build-spec/orig/init-lsb-broken | 34 +++++ .../legacy-scripts/build-spec/orig/init-lsb-other | 22 +++ .../legacy-scripts/build-spec/orig/init-no-lsb | 17 +++ .../legacy-scripts/build-spec/orig/init-skeleton | 150 +++++++++++++++++++++ .../legacy-scripts/build-spec/orig/jruby-broken | 2 + .../quilt/legacy-scripts/build-spec/orig/lefty-foo | 2 + .../quilt/legacy-scripts/build-spec/orig/make-foo | 3 + .../legacy-scripts/build-spec/orig/perl-bizarre-1 | 11 ++ .../legacy-scripts/build-spec/orig/perl-bizarre-2 | 7 + .../legacy-scripts/build-spec/orig/perl-bizarre-3 | 6 + .../quilt/legacy-scripts/build-spec/orig/perlfoo | 3 + .../quilt/legacy-scripts/build-spec/orig/phpenvfoo | 7 + .../quilt/legacy-scripts/build-spec/orig/phpfoo | 7 + .../quilt/legacy-scripts/build-spec/orig/rubyfoo | 4 + .../quilt/legacy-scripts/build-spec/orig/sh-broken | 2 + .../legacy-scripts/build-spec/orig/suidperlfoo | 3 + .../quilt/legacy-scripts/build-spec/orig/tkfoo | 31 +++++ .../quilt/legacy-scripts/build-spec/orig/wishfoo | 4 + .../legacy-scripts/build-spec/orig/xsession-test | 3 + .../quilt/legacy-scripts/build-spec/pre-build | 5 + .../debian/patches/quilt/legacy-scripts/eval/desc | 2 + .../debian/patches/quilt/legacy-scripts/eval/hints | 6 + .../patches/quilt/legacy-scripts/eval/post-test | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/series | 0 .../build-spec/fill-values | 4 + .../quilt/patch-systems-empty-series/eval/desc | 4 + .../quilt/patch-systems-empty-series/eval/hints | 1 + .../build-spec/debian/patches/debian-changes-1.0-1 | 7 + .../build-spec/debian/patches/series | 1 + .../build-spec/fill-values | 4 + .../build-spec/orig/a | 1 + .../patch-systems-quilt-debian-changes/eval/desc | 2 + .../patch-systems-quilt-debian-changes/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/01_this_patch_is_ok | 7 + .../debian/patches/02_this_one_has_no_description | 5 + .../build-spec/debian/patches/03_a_git_patch | 8 ++ .../debian/patches/04_template_description | 17 +++ .../build-spec/debian/patches/series | 4 + .../build-spec/fill-values | 4 + .../patch-systems-quilt-description/eval/desc | 3 + .../patch-systems-quilt-description/eval/hints | 3 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/README | 1 + .../build-spec/debian/patches/README.patches | 1 + .../build-spec/debian/patches/file-commented-out | 1 + .../debian/patches/file-mentioned-in-vendor-series | 1 + .../debian/patches/file-not-referenced-in-series | 1 + .../build-spec/debian/patches/series | 6 + .../build-spec/debian/patches/some-file | 11 ++ .../build-spec/debian/patches/some-other-file | 12 ++ .../build-spec/debian/patches/subdir/README | 1 + .../patches/subdir/file-not-referenced-in-series-2 | 1 + .../build-spec/debian/patches/vendorname.series | 1 + .../build-spec/diff/README | 1 + .../build-spec/fill-values | 4 + .../quilt/patch-systems-quilt-general/eval/desc | 2 + .../quilt/patch-systems-quilt-general/eval/hints | 6 + .../build-spec/debian/patches/series | 1 + .../build-spec/debian/patches/some-change.patch | 6 + .../build-spec/fill-values | 3 + .../build-spec/orig/README | 1 + .../quilt/patch-systems-quilt-no-depends/eval/desc | 4 + .../patch-systems-quilt-no-depends/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/debian/patches/01_this_patch_is_ok | 7 + .../build-spec/debian/patches/series | 1 + .../build-spec/fill-values | 4 + .../quilt/patch-systems-quilt-no-newline/eval/desc | 2 + .../patch-systems-quilt-no-newline/eval/hints | 1 + .../build-spec/debian/README.source | 1 + .../build-spec/fill-values | 5 + .../build-spec/orig/README | 1 + .../quilt/patch-systems-quilt-no-series/eval/desc | 2 + .../quilt/patch-systems-quilt-no-series/eval/hints | 1 + .../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/nonrel2 | 8 ++ .../build-spec/debian/patches/series | 4 + .../build-spec/debian/patches/spelling | 6 + .../quilt/spelling-general/build-spec/fill-values | 4 + .../patches/quilt/spelling-general/eval/desc | 2 + .../patches/quilt/spelling-general/eval/hints | 1 + .../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/nonrel2 | 8 ++ .../build-spec/debian/patches/series | 4 + .../build-spec/debian/patches/spelling | 6 + .../spelling-general/build-spec/fill-values | 4 + .../debian/patches/spelling-general/eval/desc | 2 + .../debian/patches/spelling-general/eval/hints | 1 + 389 files changed, 3703 insertions(+) create mode 100644 t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch1 create mode 100644 t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch2 create mode 100644 t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/count/two-patches/eval/desc create mode 100644 t/recipes/checks/debian/patches/count/two-patches/eval/hints create mode 100644 t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch create mode 100644 t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc create mode 100644 t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints create mode 100644 t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch create mode 100644 t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc create mode 100644 t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc create mode 100644 t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints create mode 100644 t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff create mode 100644 t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc create mode 100644 t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints create mode 100644 t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch create mode 100644 t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc create mode 100644 t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst create mode 100755 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo create mode 100755 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo create mode 100755 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1 create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2 create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3 create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo create mode 100755 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test create mode 100755 t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints create mode 100644 t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc create mode 100644 t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions create mode 100755 t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/eval/desc create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/eval/hints create mode 100644 t/recipes/checks/debian/patches/legacy-debconf/eval/post-test create mode 100644 t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/control create mode 100755 t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/tmp/DEBIAN/control create mode 100644 t/recipes/checks/debian/patches/legacy-relations/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/legacy-relations/eval/desc create mode 100644 t/recipes/checks/debian/patches/legacy-relations/eval/hints create mode 100644 t/recipes/checks/debian/patches/legacy-relations/eval/post-test create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst create mode 100755 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo create mode 100755 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo create mode 100755 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1 create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2 create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3 create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo create mode 100755 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test create mode 100755 t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/eval/desc create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/eval/hints create mode 100644 t/recipes/checks/debian/patches/legacy-scripts/eval/post-test create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc create mode 100644 t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen create mode 100755 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars create mode 100644 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README create mode 100755 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build create mode 100644 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/control create mode 100755 t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/tmp/DEBIAN/control create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst create mode 100755 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo create mode 100755 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo create mode 100755 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1 create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2 create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3 create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo create mode 100755 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test create mode 100755 t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/doc-base create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/add-readme create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2 create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc create mode 100644 t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/copyright create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/doc-base create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/add-readme create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel2 create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling create mode 100644 t/recipes/checks/debian/patches/spelling-general/build-spec/fill-values create mode 100644 t/recipes/checks/debian/patches/spelling-general/eval/desc create mode 100644 t/recipes/checks/debian/patches/spelling-general/eval/hints (limited to 't/recipes/checks/debian/patches') diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch1 b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch1 new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch2 b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch2 new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series new file mode 100644 index 0000000..8c90984 --- /dev/null +++ b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series @@ -0,0 +1,5 @@ +patch1 +# a comment +patch2 # another comment + # yet another comment +# patch3 diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values b/t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values new file mode 100644 index 0000000..436ad89 --- /dev/null +++ b/t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: two-patches +Description: Package with two Debian patches diff --git a/t/recipes/checks/debian/patches/count/two-patches/eval/desc b/t/recipes/checks/debian/patches/count/two-patches/eval/desc new file mode 100644 index 0000000..333ef3b --- /dev/null +++ b/t/recipes/checks/debian/patches/count/two-patches/eval/desc @@ -0,0 +1,2 @@ +Testname: two-patches +Check: debian/patches/count diff --git a/t/recipes/checks/debian/patches/count/two-patches/eval/hints b/t/recipes/checks/debian/patches/count/two-patches/eval/hints new file mode 100644 index 0000000..e7e3e7d --- /dev/null +++ b/t/recipes/checks/debian/patches/count/two-patches/eval/hints @@ -0,0 +1 @@ +two-patches (source): number-of-patches 2 [debian/patches/series] diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch new file mode 100644 index 0000000..a1193df --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch @@ -0,0 +1,15 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner +Applied-Upstream: https://gitlab.gnome.org/World/lollypop/-/commit/4c1435ee22220c4a7f2ccaa05bce60a3e64cb912 + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values new file mode 100644 index 0000000..3017656 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: applied-upstream +Description: Debian patch with Applied-Upstream (false positive) diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc new file mode 100644 index 0000000..7dbb942 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc @@ -0,0 +1,5 @@ +Testname: applied-upstream +Check: debian/patches/dep3 +Test-Against: + patch-not-forwarded-upstream +See-Also: Bug#965119 diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch new file mode 100644 index 0000000..f35f299 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch @@ -0,0 +1,14 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values new file mode 100644 index 0000000..479f07d --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: empty-forwarded-no-bug +Description: Debian patch with empty Forwarded and no Bug diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc new file mode 100644 index 0000000..0fd262b --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc @@ -0,0 +1,3 @@ +Testname: empty-forwarded-no-bug +Check: debian/patches/dep3 +See-Also: Bug#755153 diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints new file mode 100644 index 0000000..8a913be --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints @@ -0,0 +1 @@ +empty-forwarded-no-bug (source): patch-not-forwarded-upstream [debian/patches/silent.patch] diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch new file mode 100644 index 0000000..4b48b32 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch @@ -0,0 +1,15 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner +Forwarded: no + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values new file mode 100644 index 0000000..4cd9c11 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: forwarded-no +Description: Debian patch with Forwarded: no diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc new file mode 100644 index 0000000..edb980d --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc @@ -0,0 +1,3 @@ +Testname: forwarded-no +Check: debian/patches/dep3 +See-Also: Bug#755153 diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints new file mode 100644 index 0000000..428ce9f --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints @@ -0,0 +1 @@ +forwarded-no (source): patch-not-forwarded-upstream [debian/patches/not-forwarded.patch] diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch new file mode 100644 index 0000000..65e7f54 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch @@ -0,0 +1,15 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner +Forwarded: not-needed + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values new file mode 100644 index 0000000..aae5187 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: forwarded-not-needed +Description: Debian patch with Forwarded: not-needed (false positive) diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc new file mode 100644 index 0000000..b69011f --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc @@ -0,0 +1,5 @@ +Testname: forwarded-not-needed +Check: debian/patches/dep3 +Test-Against: + patch-not-forwarded-upstream +See-Also: Bug#755153 diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff new file mode 100644 index 0000000..76548ba --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff @@ -0,0 +1,41 @@ +Description: Better document modifiers +Author: Emanuele Giaquinta +Origin: upstream, https://github.com/exg/rxvt-unicode/commit/b881e3714ba253d08dc1b900d9333b73759db126 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839769 +Last-Update: 2017-10-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: rxvt-unicode/doc/rxvt.1.pod +=================================================================== +--- rxvt-unicode.orig/doc/rxvt.1.pod 2017-10-16 11:03:33.669407628 -0400 ++++ rxvt-unicode/doc/rxvt.1.pod 2017-10-16 11:03:33.629407435 -0400 +@@ -1081,10 +1081,25 @@ + + (modifiers-)key + +-Where I can be any combination of B, B, +-B, B, B, B, B, B, B, +-B, B, B, and the abbreviated B, B, B, B, +-B, B, B, B, B<1>, B<2>, B<3>, B<4>, B<5>. ++Where I can be any combination of the following full or ++abbreviated modifier names: ++ ++=begin table ++ ++ B B ++ B B ++ B B ++ B B ++ B B ++ B B B ++ B B ++ B B<1> ++ B B<2> ++ B B<3> ++ B B<4> ++ B B<5> ++ ++=end table + + The B, B and B modifiers are usually aliased to + whatever modifier the NumLock key, Meta/Alt keys or ISO Level3 Shift/AltGr diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values new file mode 100644 index 0000000..d086fa1 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: origin-upstream +Description: Debian patch with Origin: upstream, URL (taken from Bug#966140) diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc new file mode 100644 index 0000000..8dd636e --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc @@ -0,0 +1,5 @@ +Testname: origin-upstream +Check: debian/patches/dep3 +Test-Against: + patch-not-forwarded-upstream +See-Also: Bug#966140 diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch new file mode 100644 index 0000000..2c51d06 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch @@ -0,0 +1,17 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner + +# second pseudo-header allowed by DEP-3, see Bug#966024 +Forwarded: not-needed + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values new file mode 100644 index 0000000..1e762d9 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: pseudo-header +Description: Debian patch with Forwarded: not-needed in a pseudo-header (false positive) diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc new file mode 100644 index 0000000..18c9f9d --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc @@ -0,0 +1,5 @@ +Testname: pseudo-header +Check: debian/patches/dep3 +Test-Against: + patch-not-forwarded-upstream +See-Also: Bug#966024 diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..935c633 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in @@ -0,0 +1,41 @@ +scripts ([% $version %]) [% $distribution %]; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..75a521f --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Build-Depends-Indep: dpatch +Standards-Version: 3.2.1 + +Package: scripts +Architecture: [% $package_architecture %] +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright new file mode 100644 index 0000000..ad8a119 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list new file mode 100644 index 0000000..3b9d37e --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list @@ -0,0 +1,11 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..7c5baf1 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..8fa75a2 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..0799557 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules new file mode 100755 index 0000000..ee3677e --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/usr/src/scripts + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/ + install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/ + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles new file mode 100644 index 0000000..01a371a --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch new file mode 100644 index 0000000..dba5815 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values new file mode 100644 index 0000000..8a68457 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: legacy-scripts +Source: scripts +Version: 6ds-1ubuntu0.5.10.1 +Package-Architecture: all +Skeleton: upload-non-native +Description: Legacy test "scripts" diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo new file mode 100644 index 0000000..eaf47a1 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo new file mode 100755 index 0000000..e005037 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo new file mode 100644 index 0000000..7f59139 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch new file mode 100755 index 0000000..65cbf37 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch @@ -0,0 +1,39 @@ +#! /bin/sh -e + +# DP: Use sensible-editor instead of vi as fallback editor + +# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being +# a valid dpatch, so don't warn about it if it's in /usr/src. + +dir= +if [ $# -eq 3 -a "$2" = '-d' ]; then + pdir="-d $3" + dir="$3/" +elif [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) + patch $pdir -f --no-backup-if-mismatch -p0 < $0 + ;; + -unpatch) + patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 + ;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +esac +exit 0 + +--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100 ++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100 +@@ -134,7 +134,7 @@ + # If they don't have a preferred editor set, then use + if [ -z "$VISUAL" ]; then + if [ -z "$EDITOR" ]; then +- EDIT=vi ++ EDIT=/usr/bin/sensible-editor + else + EDIT="$EDITOR" + fi diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre new file mode 100644 index 0000000..70e2c74 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken new file mode 100644 index 0000000..e4dfa92 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other new file mode 100644 index 0000000..adb4795 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb new file mode 100644 index 0000000..6b994dd --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton new file mode 100644 index 0000000..c868508 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken new file mode 100644 index 0000000..56f574d --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo new file mode 100644 index 0000000..52c003e --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo new file mode 100644 index 0000000..6b787b5 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1 new file mode 100644 index 0000000..fc632c8 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2 new file mode 100644 index 0000000..afd9cfe --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3 new file mode 100644 index 0000000..44baf75 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo new file mode 100644 index 0000000..5b27ed0 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo new file mode 100644 index 0000000..cbbfb2e --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo new file mode 100644 index 0000000..e0595e6 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo new file mode 100644 index 0000000..8024605 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken new file mode 100644 index 0000000..7b79074 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo new file mode 100644 index 0000000..bcbc471 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo new file mode 100755 index 0000000..533595a --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo new file mode 100644 index 0000000..035c9ad --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test new file mode 100644 index 0000000..ca49d72 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build new file mode 100755 index 0000000..b5649a8 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build @@ -0,0 +1,5 @@ +#!/bin/sh + +DIR="$1" + +rm -f "$DIR/debian/compat" diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc new file mode 100644 index 0000000..0dd0b1d --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-scripts +Check: debian/patches/dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints new file mode 100644 index 0000000..4a90e73 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints @@ -0,0 +1,5 @@ +scripts (source): package-uses-deprecated-dpatch-patch-system +scripts (source): dpatch-missing-description [debian/patches/04_i_dont_have_a_description_either.patch] +scripts (source): dpatch-missing-description [debian/patches/02_i_dont_have_a_description.patch] +scripts (source): dpatch-index-references-non-existent-patch 01_some_other_patch_thats_not_in_the_package.dpatch +scripts (source): dpatch-index-references-non-existent-patch 01_not_here_right_now.dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source new file mode 100644 index 0000000..4ff54b4 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source @@ -0,0 +1 @@ +I am using dpatch. diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list new file mode 100644 index 0000000..52ee366 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list @@ -0,0 +1,12 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch +05_dep3.diff diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff new file mode 100644 index 0000000..5cbb237 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_dep3.diff by Russ Allbery +# +# Description: Patch using the DEP 3 patch header +# Author: Russ Allbery + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values new file mode 100644 index 0000000..cb818e9 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-dpatch-description +Description: Test patch-system tags for a dpatch package +Extra-Build-Depends: dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc new file mode 100644 index 0000000..7212807 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-dpatch-description +Check: debian/patches/dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints new file mode 100644 index 0000000..f617634 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints @@ -0,0 +1,5 @@ +patch-systems-dpatch-description (source): package-uses-deprecated-dpatch-patch-system +patch-systems-dpatch-description (source): dpatch-missing-description [debian/patches/04_i_dont_have_a_description_either.patch] +patch-systems-dpatch-description (source): dpatch-missing-description [debian/patches/02_i_dont_have_a_description.patch] +patch-systems-dpatch-description (source): dpatch-index-references-non-existent-patch 01_some_other_patch_thats_not_in_the_package.dpatch +patch-systems-dpatch-description (source): dpatch-index-references-non-existent-patch 01_not_here_right_now.dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source new file mode 100644 index 0000000..052084e --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source @@ -0,0 +1 @@ +Some stuff about quilt here. diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series new file mode 100644 index 0000000..040d7e8 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series @@ -0,0 +1,6 @@ +# tries to create an existing file, which fails in dpkg-source +# some-file +some-other-file -p0 +# non-existent patches trigger error in dpkg-source +# some-nonexistent-patch +# file-commented-out diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file new file mode 100644 index 0000000..7749d40 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file @@ -0,0 +1,11 @@ +Some regular patch creating a file. + +--- /dev/null ++++ debian/debian/some-file +@@ -0,0 +1,6 @@ ++Some ++file ++created ++in ++debian ++directory. diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file new file mode 100644 index 0000000..ed24c8f --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file @@ -0,0 +1,12 @@ +Some -p0 patch creating a file. + +--- /dev/null ++++ debian/some-other-file +@@ -0,0 +1,7 @@ ++Some ++other ++file ++created ++in ++debian ++directory. diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series new file mode 100644 index 0000000..4232ed0 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series @@ -0,0 +1 @@ +file-mentioned-in-vendor-series diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README new file mode 100644 index 0000000..55d9771 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README @@ -0,0 +1 @@ +Debian README diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values new file mode 100644 index 0000000..ced4b7a --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: patch-systems-quilt-general +Skeleton: upload-non-native +Extra-Build-Depends: quilt, dpatch +Description: General tests of a quilt patch system diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc new file mode 100644 index 0000000..154b396 --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-general +Check: debian/patches/dpatch diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints new file mode 100644 index 0000000..24b71da --- /dev/null +++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints @@ -0,0 +1,2 @@ +patch-systems-quilt-general (source): package-uses-deprecated-dpatch-patch-system +patch-systems-quilt-general (source): dpatch-build-dep-but-no-patch-list diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in new file mode 100644 index 0000000..f5e308e --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +debconf ([% $version %]) [% $distribution %]; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control new file mode 100644 index 0000000..bf9f4e9 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper (>= 4), dpatch +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright new file mode 100644 index 0000000..84843ee --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates new file mode 100644 index 0000000..93f8071 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst new file mode 100644 index 0000000..56ab871 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst new file mode 100644 index 0000000..bf6f074 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config new file mode 100644 index 0000000..9e32d06 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst new file mode 100644 index 0000000..b387037 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates new file mode 100644 index 0000000..811bb6c --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de new file mode 100644 index 0000000..f9ea121 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst new file mode 100644 index 0000000..4ce41f0 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates new file mode 100644 index 0000000..5d7cf5a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..d0c82f0 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po new file mode 100644 index 0000000..86c5796 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po new file mode 100644 index 0000000..c74deb2 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output new file mode 100644 index 0000000..c3df1a5 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po new file mode 100644 index 0000000..8dcc0ff --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..914c77f --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions new file mode 100644 index 0000000..6f290b0 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules new file mode 100755 index 0000000..933901a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values new file mode 100644 index 0000000..186615f --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-native +Testname: legacy-debconf +Source: debconf +Version: 1~rc1 +Description: Legacy test "debconf" +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/patches/legacy-debconf/eval/desc b/t/recipes/checks/debian/patches/legacy-debconf/eval/desc new file mode 100644 index 0000000..3043d9c --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-debconf +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/legacy-debconf/eval/hints b/t/recipes/checks/debian/patches/legacy-debconf/eval/hints new file mode 100644 index 0000000..d46c37c --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/eval/hints @@ -0,0 +1,2 @@ +debconf (source): patch-system-but-no-source-readme +debconf (source): patch-system dpatch diff --git a/t/recipes/checks/debian/patches/legacy-debconf/eval/post-test b/t/recipes/checks/debian/patches/legacy-debconf/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-debconf/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/changelog.in new file mode 100644 index 0000000..9a82ea7 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/control new file mode 100644 index 0000000..6cd1c04 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/rules new file mode 100755 index 0000000..5027f33 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/tmp/DEBIAN/control new file mode 100644 index 0000000..87e7fe6 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/patches/legacy-relations/build-spec/fill-values new file mode 100644 index 0000000..7e4661b --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/legacy-relations/eval/desc b/t/recipes/checks/debian/patches/legacy-relations/eval/desc new file mode 100644 index 0000000..adcbfe1 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-relations/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-relations +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/legacy-relations/eval/hints b/t/recipes/checks/debian/patches/legacy-relations/eval/hints new file mode 100644 index 0000000..e3cb73d --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-relations/eval/hints @@ -0,0 +1,2 @@ +relations (source): patch-system-but-no-source-readme +relations (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/legacy-relations/eval/post-test b/t/recipes/checks/debian/patches/legacy-relations/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..935c633 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in @@ -0,0 +1,41 @@ +scripts ([% $version %]) [% $distribution %]; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..75a521f --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Build-Depends-Indep: dpatch +Standards-Version: 3.2.1 + +Package: scripts +Architecture: [% $package_architecture %] +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright new file mode 100644 index 0000000..ad8a119 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list new file mode 100644 index 0000000..3b9d37e --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list @@ -0,0 +1,11 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..7c5baf1 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..8fa75a2 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..0799557 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules new file mode 100755 index 0000000..ee3677e --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/usr/src/scripts + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/ + install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/ + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles new file mode 100644 index 0000000..01a371a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch new file mode 100644 index 0000000..dba5815 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values new file mode 100644 index 0000000..8a68457 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: legacy-scripts +Source: scripts +Version: 6ds-1ubuntu0.5.10.1 +Package-Architecture: all +Skeleton: upload-non-native +Description: Legacy test "scripts" diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo new file mode 100644 index 0000000..eaf47a1 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo new file mode 100755 index 0000000..e005037 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo new file mode 100644 index 0000000..7f59139 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch new file mode 100755 index 0000000..65cbf37 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch @@ -0,0 +1,39 @@ +#! /bin/sh -e + +# DP: Use sensible-editor instead of vi as fallback editor + +# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being +# a valid dpatch, so don't warn about it if it's in /usr/src. + +dir= +if [ $# -eq 3 -a "$2" = '-d' ]; then + pdir="-d $3" + dir="$3/" +elif [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) + patch $pdir -f --no-backup-if-mismatch -p0 < $0 + ;; + -unpatch) + patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 + ;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +esac +exit 0 + +--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100 ++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100 +@@ -134,7 +134,7 @@ + # If they don't have a preferred editor set, then use + if [ -z "$VISUAL" ]; then + if [ -z "$EDITOR" ]; then +- EDIT=vi ++ EDIT=/usr/bin/sensible-editor + else + EDIT="$EDITOR" + fi diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre new file mode 100644 index 0000000..70e2c74 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken new file mode 100644 index 0000000..e4dfa92 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other new file mode 100644 index 0000000..adb4795 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb new file mode 100644 index 0000000..6b994dd --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton new file mode 100644 index 0000000..c868508 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken new file mode 100644 index 0000000..56f574d --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo new file mode 100644 index 0000000..52c003e --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo new file mode 100644 index 0000000..6b787b5 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1 new file mode 100644 index 0000000..fc632c8 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2 new file mode 100644 index 0000000..afd9cfe --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3 new file mode 100644 index 0000000..44baf75 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo new file mode 100644 index 0000000..5b27ed0 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo new file mode 100644 index 0000000..cbbfb2e --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo new file mode 100644 index 0000000..e0595e6 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo new file mode 100644 index 0000000..8024605 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken new file mode 100644 index 0000000..7b79074 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo new file mode 100644 index 0000000..bcbc471 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo new file mode 100755 index 0000000..533595a --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo new file mode 100644 index 0000000..035c9ad --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test new file mode 100644 index 0000000..ca49d72 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build new file mode 100755 index 0000000..b5649a8 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build @@ -0,0 +1,5 @@ +#!/bin/sh + +DIR="$1" + +rm -f "$DIR/debian/compat" diff --git a/t/recipes/checks/debian/patches/legacy-scripts/eval/desc b/t/recipes/checks/debian/patches/legacy-scripts/eval/desc new file mode 100644 index 0000000..2f22144 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-scripts +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/legacy-scripts/eval/hints b/t/recipes/checks/debian/patches/legacy-scripts/eval/hints new file mode 100644 index 0000000..672cda0 --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/eval/hints @@ -0,0 +1,3 @@ +scripts (source): patch-system quilt +scripts (source): patch-system dpatch +scripts (source): more-than-one-patch-system diff --git a/t/recipes/checks/debian/patches/legacy-scripts/eval/post-test b/t/recipes/checks/debian/patches/legacy-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/patches/legacy-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source new file mode 100644 index 0000000..4ff54b4 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source @@ -0,0 +1 @@ +I am using dpatch. diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list new file mode 100644 index 0000000..52ee366 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list @@ -0,0 +1,12 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch +05_dep3.diff diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff new file mode 100644 index 0000000..5cbb237 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_dep3.diff by Russ Allbery +# +# Description: Patch using the DEP 3 patch header +# Author: Russ Allbery + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values new file mode 100644 index 0000000..cb818e9 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-dpatch-description +Description: Test patch-system tags for a dpatch package +Extra-Build-Depends: dpatch diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc new file mode 100644 index 0000000..11ff095 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-dpatch-description +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints new file mode 100644 index 0000000..646bd69 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints @@ -0,0 +1 @@ +patch-systems-dpatch-description (source): patch-system dpatch diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values new file mode 100644 index 0000000..7bfde22 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-empty-series +Description: Test for quilt patches with empty series +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc new file mode 100644 index 0000000..de141e2 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc @@ -0,0 +1,3 @@ +Testname: patch-systems-empty-series +See-Also: Debian Bug #525005 +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints new file mode 100644 index 0000000..c7f9fec --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints @@ -0,0 +1 @@ +patch-systems-empty-series (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README new file mode 100644 index 0000000..c2513f3 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README @@ -0,0 +1 @@ +README with some Debian change to create a diff diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values new file mode 100644 index 0000000..0922b52 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: patch-systems-no-patch-system +Skeleton: upload-non-native +Source-Format: 1.0 +Description: Diagnose lack of a patch system diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc new file mode 100644 index 0000000..a6feb2f --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-no-patch-system +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints new file mode 100644 index 0000000..7e66d4d --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints @@ -0,0 +1 @@ +patch-systems-no-patch-system (source): direct-changes-in-diff-but-no-patch-system README diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok new file mode 100644 index 0000000..7eee707 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series new file mode 100644 index 0000000..a342eb3 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series @@ -0,0 +1 @@ +01_this_patch_is_ok diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values new file mode 100644 index 0000000..d307faf --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-no-readme-source +Description: Patch system with no README.source +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc new file mode 100644 index 0000000..0d70fa3 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc @@ -0,0 +1,3 @@ +Testname: patch-systems-no-readme-source +See-Also: Debian Bug #537969 +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints new file mode 100644 index 0000000..a53bbab --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints @@ -0,0 +1,2 @@ +patch-systems-no-readme-source (source): patch-system-but-no-source-readme +patch-systems-no-readme-source (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 new file mode 100644 index 0000000..7d0132f --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a/a 2008-11-11 19:38:12.000000000 +0000 ++++ a/a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series new file mode 100644 index 0000000..9ca2b60 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series @@ -0,0 +1 @@ +debian-changes-1.0-1 diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values new file mode 100644 index 0000000..69be6ed --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: patch-systems-quilt-debian-changes +Description: Test a 3.0 (quilt) package which has a debian-changes-XXX patch +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a new file mode 100644 index 0000000..c0acc64 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a @@ -0,0 +1 @@ +sample text diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc new file mode 100644 index 0000000..db1fb19 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-debian-changes +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints new file mode 100644 index 0000000..94bd4e2 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-debian-changes (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok new file mode 100644 index 0000000..7eee707 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description new file mode 100644 index 0000000..12128b8 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description @@ -0,0 +1,5 @@ +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch new file mode 100644 index 0000000..025656a --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch @@ -0,0 +1,8 @@ +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,3 @@ + sample text + and some more sample text ++and yet another line diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description new file mode 100644 index 0000000..09bfd88 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description @@ -0,0 +1,17 @@ +Description: + This patch include a templated text for description + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,4 @@ + sample text + and some more sample text + and yet another line ++and so on diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series new file mode 100644 index 0000000..a7ab472 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series @@ -0,0 +1,4 @@ +01_this_patch_is_ok +02_this_one_has_no_description +03_a_git_patch +04_template_description diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values new file mode 100644 index 0000000..d957fdd --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-quilt-description +Description: Test for quilt patches which do not have accompanying descriptions +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc new file mode 100644 index 0000000..bcfc987 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc @@ -0,0 +1,3 @@ +Testname: patch-systems-quilt-description +See-Also: Debian Bug #498892 +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints new file mode 100644 index 0000000..c79c3e1 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-description (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source new file mode 100644 index 0000000..052084e --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source @@ -0,0 +1 @@ +Some stuff about quilt here. diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series new file mode 100644 index 0000000..040d7e8 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series @@ -0,0 +1,6 @@ +# tries to create an existing file, which fails in dpkg-source +# some-file +some-other-file -p0 +# non-existent patches trigger error in dpkg-source +# some-nonexistent-patch +# file-commented-out diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file new file mode 100644 index 0000000..7749d40 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file @@ -0,0 +1,11 @@ +Some regular patch creating a file. + +--- /dev/null ++++ debian/debian/some-file +@@ -0,0 +1,6 @@ ++Some ++file ++created ++in ++debian ++directory. diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file new file mode 100644 index 0000000..ed24c8f --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file @@ -0,0 +1,12 @@ +Some -p0 patch creating a file. + +--- /dev/null ++++ debian/some-other-file +@@ -0,0 +1,7 @@ ++Some ++other ++file ++created ++in ++debian ++directory. diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series new file mode 100644 index 0000000..4232ed0 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series @@ -0,0 +1 @@ +file-mentioned-in-vendor-series diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README new file mode 100644 index 0000000..55d9771 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README @@ -0,0 +1 @@ +Debian README diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values new file mode 100644 index 0000000..ced4b7a --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: patch-systems-quilt-general +Skeleton: upload-non-native +Extra-Build-Depends: quilt, dpatch +Description: General tests of a quilt patch system diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc new file mode 100644 index 0000000..f856f3e --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-general +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints new file mode 100644 index 0000000..a78e16f --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints @@ -0,0 +1,3 @@ +patch-systems-quilt-general (source): patch-system quilt +patch-systems-quilt-general (source): patch-system dpatch +patch-systems-quilt-general (source): more-than-one-patch-system diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok new file mode 100644 index 0000000..7eee707 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series new file mode 100644 index 0000000..0ca9c9c --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series @@ -0,0 +1 @@ +01_this_patch_is_ok \ No newline at end of file diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values new file mode 100644 index 0000000..40b486d --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-quilt-no-newline +Description: Patch system with no debian/series that does not end with newline +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc new file mode 100644 index 0000000..32a8f15 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-no-newline +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints new file mode 100644 index 0000000..4e852b0 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-newline (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values new file mode 100644 index 0000000..5234bfe --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: patch-systems-quilt-no-series +Skeleton: upload-non-native +Source-Format: 1.0 +Description: Test for quilt patches with no series +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc new file mode 100644 index 0000000..e57d098 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-no-series +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints new file mode 100644 index 0000000..5067cf1 --- /dev/null +++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-series (source): patch-system quilt diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen new file mode 100644 index 0000000..a452b53 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for wig&pen diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values new file mode 100644 index 0000000..edb39d9 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-wig-pen +Skeleton: upload-non-native +Source-Format: 2.0 +Description: Check for cruft added in a 2.0 package diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README @@ -0,0 +1 @@ +README diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build new file mode 100755 index 0000000..78f359c --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1/debian" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc new file mode 100644 index 0000000..9e824e6 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc @@ -0,0 +1,3 @@ +Testname: cruft-general-wig-pen +Test-Against: patch-file-present-but-not-mentioned-in-series +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/changelog.in new file mode 100644 index 0000000..9a82ea7 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/control new file mode 100644 index 0000000..6cd1c04 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/rules new file mode 100755 index 0000000..5027f33 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/tmp/DEBIAN/control new file mode 100644 index 0000000..87e7fe6 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/fill-values new file mode 100644 index 0000000..7e4661b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/legacy-relations/eval/desc b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/desc new file mode 100644 index 0000000..c70804e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-relations +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints new file mode 100644 index 0000000..d8929ea --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints @@ -0,0 +1 @@ +relations (source): quilt-build-dep-but-no-series-file diff --git a/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..935c633 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in @@ -0,0 +1,41 @@ +scripts ([% $version %]) [% $distribution %]; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..75a521f --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Build-Depends-Indep: dpatch +Standards-Version: 3.2.1 + +Package: scripts +Architecture: [% $package_architecture %] +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright new file mode 100644 index 0000000..ad8a119 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list new file mode 100644 index 0000000..3b9d37e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list @@ -0,0 +1,11 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..7c5baf1 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..8fa75a2 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..0799557 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules new file mode 100755 index 0000000..ee3677e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/usr/src/scripts + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/ + install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/ + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles new file mode 100644 index 0000000..01a371a --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch new file mode 100644 index 0000000..dba5815 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values new file mode 100644 index 0000000..8a68457 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: legacy-scripts +Source: scripts +Version: 6ds-1ubuntu0.5.10.1 +Package-Architecture: all +Skeleton: upload-non-native +Description: Legacy test "scripts" diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo new file mode 100644 index 0000000..eaf47a1 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo new file mode 100755 index 0000000..e005037 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo new file mode 100644 index 0000000..7f59139 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch new file mode 100755 index 0000000..65cbf37 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch @@ -0,0 +1,39 @@ +#! /bin/sh -e + +# DP: Use sensible-editor instead of vi as fallback editor + +# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being +# a valid dpatch, so don't warn about it if it's in /usr/src. + +dir= +if [ $# -eq 3 -a "$2" = '-d' ]; then + pdir="-d $3" + dir="$3/" +elif [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) + patch $pdir -f --no-backup-if-mismatch -p0 < $0 + ;; + -unpatch) + patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 + ;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +esac +exit 0 + +--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100 ++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100 +@@ -134,7 +134,7 @@ + # If they don't have a preferred editor set, then use + if [ -z "$VISUAL" ]; then + if [ -z "$EDITOR" ]; then +- EDIT=vi ++ EDIT=/usr/bin/sensible-editor + else + EDIT="$EDITOR" + fi diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre new file mode 100644 index 0000000..70e2c74 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken new file mode 100644 index 0000000..e4dfa92 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other new file mode 100644 index 0000000..adb4795 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb new file mode 100644 index 0000000..6b994dd --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton new file mode 100644 index 0000000..c868508 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken new file mode 100644 index 0000000..56f574d --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo new file mode 100644 index 0000000..52c003e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo new file mode 100644 index 0000000..6b787b5 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1 new file mode 100644 index 0000000..fc632c8 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2 new file mode 100644 index 0000000..afd9cfe --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3 new file mode 100644 index 0000000..44baf75 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo new file mode 100644 index 0000000..5b27ed0 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo new file mode 100644 index 0000000..cbbfb2e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo new file mode 100644 index 0000000..e0595e6 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo new file mode 100644 index 0000000..8024605 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken new file mode 100644 index 0000000..7b79074 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo new file mode 100644 index 0000000..bcbc471 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo new file mode 100755 index 0000000..533595a --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo new file mode 100644 index 0000000..035c9ad --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test new file mode 100644 index 0000000..ca49d72 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build new file mode 100755 index 0000000..b5649a8 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build @@ -0,0 +1,5 @@ +#!/bin/sh + +DIR="$1" + +rm -f "$DIR/debian/compat" diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc new file mode 100644 index 0000000..d5236c9 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-scripts +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints new file mode 100644 index 0000000..71dee45 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints @@ -0,0 +1,6 @@ +scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/04_i_dont_have_a_description_either.patch] +scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/03_specified_without_dpatch.dpatch] +scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/02_i_dont_have_a_description.patch] +scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/00options] +scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/00list] +scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/00list.sparc] diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values new file mode 100644 index 0000000..7bfde22 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-empty-series +Description: Test for quilt patches with empty series +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc new file mode 100644 index 0000000..213374f --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc @@ -0,0 +1,4 @@ +Testname: patch-systems-empty-series +Test-Against: quilt-build-dep-but-no-series-file +See-Also: Debian Bug #525005 +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 new file mode 100644 index 0000000..7d0132f --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a/a 2008-11-11 19:38:12.000000000 +0000 ++++ a/a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series new file mode 100644 index 0000000..9ca2b60 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series @@ -0,0 +1 @@ +debian-changes-1.0-1 diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values new file mode 100644 index 0000000..69be6ed --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: patch-systems-quilt-debian-changes +Description: Test a 3.0 (quilt) package which has a debian-changes-XXX patch +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a new file mode 100644 index 0000000..c0acc64 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a @@ -0,0 +1 @@ +sample text diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc new file mode 100644 index 0000000..2a5f21f --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-debian-changes +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints new file mode 100644 index 0000000..fd3a321 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-debian-changes (source): format-3.0-but-debian-changes-patch [debian/patches/debian-changes-1.0-1] diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok new file mode 100644 index 0000000..7eee707 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description new file mode 100644 index 0000000..12128b8 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description @@ -0,0 +1,5 @@ +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch new file mode 100644 index 0000000..025656a --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch @@ -0,0 +1,8 @@ +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,3 @@ + sample text + and some more sample text ++and yet another line diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description new file mode 100644 index 0000000..09bfd88 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description @@ -0,0 +1,17 @@ +Description: + This patch include a templated text for description + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,4 @@ + sample text + and some more sample text + and yet another line ++and so on diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series new file mode 100644 index 0000000..a7ab472 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series @@ -0,0 +1,4 @@ +01_this_patch_is_ok +02_this_one_has_no_description +03_a_git_patch +04_template_description diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values new file mode 100644 index 0000000..d957fdd --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-quilt-description +Description: Test for quilt patches which do not have accompanying descriptions +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc new file mode 100644 index 0000000..90fcde3 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc @@ -0,0 +1,3 @@ +Testname: patch-systems-quilt-description +See-Also: Debian Bug #498892 +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints new file mode 100644 index 0000000..dd7eb59 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints @@ -0,0 +1,3 @@ +patch-systems-quilt-description (source): quilt-patch-using-template-description [debian/patches/04_template_description] +patch-systems-quilt-description (source): quilt-patch-missing-description [debian/patches/03_a_git_patch] +patch-systems-quilt-description (source): quilt-patch-missing-description [debian/patches/02_this_one_has_no_description] diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source new file mode 100644 index 0000000..052084e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source @@ -0,0 +1 @@ +Some stuff about quilt here. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series new file mode 100644 index 0000000..040d7e8 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series @@ -0,0 +1,6 @@ +# tries to create an existing file, which fails in dpkg-source +# some-file +some-other-file -p0 +# non-existent patches trigger error in dpkg-source +# some-nonexistent-patch +# file-commented-out diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file new file mode 100644 index 0000000..7749d40 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file @@ -0,0 +1,11 @@ +Some regular patch creating a file. + +--- /dev/null ++++ debian/debian/some-file +@@ -0,0 +1,6 @@ ++Some ++file ++created ++in ++debian ++directory. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file new file mode 100644 index 0000000..ed24c8f --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file @@ -0,0 +1,12 @@ +Some -p0 patch creating a file. + +--- /dev/null ++++ debian/some-other-file +@@ -0,0 +1,7 @@ ++Some ++other ++file ++created ++in ++debian ++directory. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README new file mode 100644 index 0000000..843d249 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 @@ -0,0 +1 @@ +foo diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series new file mode 100644 index 0000000..4232ed0 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series @@ -0,0 +1 @@ +file-mentioned-in-vendor-series diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README new file mode 100644 index 0000000..55d9771 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README @@ -0,0 +1 @@ +Debian README diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values new file mode 100644 index 0000000..ced4b7a --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: patch-systems-quilt-general +Skeleton: upload-non-native +Extra-Build-Depends: quilt, dpatch +Description: General tests of a quilt patch system diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc new file mode 100644 index 0000000..d60faca --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-general +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints new file mode 100644 index 0000000..211bcbd --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints @@ -0,0 +1,6 @@ +patch-systems-quilt-general (source): quilt-patch-with-non-standard-options some-other-file -p0 [debian/patches/series:3] +patch-systems-quilt-general (source): quilt-patch-using-template-description [debian/patches/debian-changes-1.0-1] +patch-systems-quilt-general (source): patch-file-present-but-not-mentioned-in-series [debian/patches/subdir/file-not-referenced-in-series-2] +patch-systems-quilt-general (source): patch-file-present-but-not-mentioned-in-series [debian/patches/file-not-referenced-in-series] +patch-systems-quilt-general (source): package-uses-vendor-specific-patch-series [debian/patches/vendorname.series] +patch-systems-quilt-general (source): format-3.0-but-debian-changes-patch [debian/patches/debian-changes-1.0-1] diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series new file mode 100644 index 0000000..a920a3a --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series @@ -0,0 +1 @@ +some-change.patch diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch new file mode 100644 index 0000000..c34fd8f --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch @@ -0,0 +1,6 @@ +Description: Does something very useful - it hides "empty-series" tag +--- a/README 2010-12-27 14:09:55.025074505 +0100 ++++ b/README 2010-12-27 14:10:09.656080199 +0100 +@@ -1 +1,2 @@ + Hello World ++Goodbye world diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values new file mode 100644 index 0000000..16086dc --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: patch-systems-quilt-no-depends +Description: Test for quilt series but no B-D on quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README new file mode 100644 index 0000000..557db03 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README @@ -0,0 +1 @@ +Hello World diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc new file mode 100644 index 0000000..6b230a3 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc @@ -0,0 +1,4 @@ +Testname: patch-systems-quilt-no-depends +Test-Against: + patch-file-present-but-not-mentioned-in-series +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints new file mode 100644 index 0000000..b868327 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-depends (source): quilt-series-but-no-build-dep [debian/patches/series] diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok new file mode 100644 index 0000000..7eee707 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series new file mode 100644 index 0000000..0ca9c9c --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series @@ -0,0 +1 @@ +01_this_patch_is_ok \ No newline at end of file diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values new file mode 100644 index 0000000..40b486d --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: patch-systems-quilt-no-newline +Description: Patch system with no debian/series that does not end with newline +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc new file mode 100644 index 0000000..0cee74b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-no-newline +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints new file mode 100644 index 0000000..5417fe3 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-newline (source): quilt-series-without-trailing-newline [debian/patches/series] diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source new file mode 100644 index 0000000..17250a4 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values new file mode 100644 index 0000000..5234bfe --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: patch-systems-quilt-no-series +Skeleton: upload-non-native +Source-Format: 1.0 +Description: Test for quilt patches with no series +Extra-Build-Depends: quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc new file mode 100644 index 0000000..db2e53d --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc @@ -0,0 +1,2 @@ +Testname: patch-systems-quilt-no-series +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints new file mode 100644 index 0000000..d9f628c --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-series (source): quilt-build-dep-but-no-series-file diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in new file mode 100644 index 0000000..2d380f5 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/copyright new file mode 100644 index 0000000..30cbe5c --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/doc-base new file mode 100644 index 0000000..3839a9b --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/add-readme new file mode 100644 index 0000000..b1647ba --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel new file mode 100644 index 0000000..48e7740 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2 b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2 new file mode 100644 index 0000000..e7dd209 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2 @@ -0,0 +1,8 @@ +From: Speling Error +Date: Mon, 10 Sep 2018 05:16:45 +0200 +Subject: Foo bar + +--- upstream.orig/nonrel2 ++++ upstream/nonrel2 +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series new file mode 100644 index 0000000..d31f673 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series @@ -0,0 +1,4 @@ +add-readme +spelling +nonrel +nonrel2 diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling new file mode 100644 index 0000000..29b9cfd --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/fill-values new file mode 100644 index 0000000..1c8c790 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/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/patches/quilt/spelling-general/eval/desc b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc new file mode 100644 index 0000000..6d9495e --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc @@ -0,0 +1,2 @@ +Testname: spelling-general +Check: debian/patches/quilt diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints new file mode 100644 index 0000000..05d7e24 --- /dev/null +++ b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (source): spelling-error-in-patch-description speling spelling [debian/patches/add-readme] diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in new file mode 100644 index 0000000..2d380f5 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/copyright new file mode 100644 index 0000000..30cbe5c --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/doc-base new file mode 100644 index 0000000..3839a9b --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/add-readme new file mode 100644 index 0000000..b1647ba --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel new file mode 100644 index 0000000..48e7740 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/build-spec/debian/patches/nonrel2 b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel2 new file mode 100644 index 0000000..e7dd209 --- /dev/null +++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel2 @@ -0,0 +1,8 @@ +From: Speling Error +Date: Mon, 10 Sep 2018 05:16:45 +0200 +Subject: Foo bar + +--- upstream.orig/nonrel2 ++++ upstream/nonrel2 +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series new file mode 100644 index 0000000..d31f673 --- /dev/null +++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series @@ -0,0 +1,4 @@ +add-readme +spelling +nonrel +nonrel2 diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling new file mode 100644 index 0000000..29b9cfd --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/patches/spelling-general/build-spec/fill-values new file mode 100644 index 0000000..1c8c790 --- /dev/null +++ b/t/recipes/checks/debian/patches/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/patches/spelling-general/eval/desc b/t/recipes/checks/debian/patches/spelling-general/eval/desc new file mode 100644 index 0000000..0af4036 --- /dev/null +++ b/t/recipes/checks/debian/patches/spelling-general/eval/desc @@ -0,0 +1,2 @@ +Testname: spelling-general +Check: debian/patches diff --git a/t/recipes/checks/debian/patches/spelling-general/eval/hints b/t/recipes/checks/debian/patches/spelling-general/eval/hints new file mode 100644 index 0000000..b86bb71 --- /dev/null +++ b/t/recipes/checks/debian/patches/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (source): patch-system quilt -- cgit v1.2.3