diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/nmu | |
parent | Initial commit. (diff) | |
download | lintian-upstream.tar.xz lintian-upstream.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
171 files changed, 2466 insertions, 0 deletions
diff --git a/t/recipes/checks/nmu/changelog-file-symlink/build-spec/fill-values b/t/recipes/checks/nmu/changelog-file-symlink/build-spec/fill-values new file mode 100644 index 0000000..bfeebce --- /dev/null +++ b/t/recipes/checks/nmu/changelog-file-symlink/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: source-non-native +Testname: changelog-file-symlink +Source-Format: 3.0 (quilt) +Description: Test for d/changelog being a symlink diff --git a/t/recipes/checks/nmu/changelog-file-symlink/build-spec/pre-build b/t/recipes/checks/nmu/changelog-file-symlink/build-spec/pre-build new file mode 100755 index 0000000..ef27d29 --- /dev/null +++ b/t/recipes/checks/nmu/changelog-file-symlink/build-spec/pre-build @@ -0,0 +1,6 @@ +#!/bin/sh + +dir="$1" + +mv "$dir/debian/changelog" "$dir/debian/changelog.old" +ln -sf changelog.old "$dir/debian/changelog" diff --git a/t/recipes/checks/nmu/changelog-file-symlink/eval/desc b/t/recipes/checks/nmu/changelog-file-symlink/eval/desc new file mode 100644 index 0000000..039a069 --- /dev/null +++ b/t/recipes/checks/nmu/changelog-file-symlink/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-symlink +Check: nmu diff --git a/t/recipes/checks/nmu/changelog-file-symlink/eval/hints b/t/recipes/checks/nmu/changelog-file-symlink/eval/hints new file mode 100644 index 0000000..8bb4595 --- /dev/null +++ b/t/recipes/checks/nmu/changelog-file-symlink/eval/hints @@ -0,0 +1 @@ +changelog-file-symlink (source): changelog-is-symlink [debian/changelog] diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/debian/changelog.in b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/debian/changelog.in new file mode 100644 index 0000000..b341aab --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * QA Upload. + * Lintian Test Suite. + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/debian/control.in b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/debian/control.in new file mode 100644 index 0000000..39e7740 --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: Debian QA Group <packages@qa.debian.org> +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +Vcs-Git: https://git.dgit.debian.org/python-ofxhome +Vcs-Browser: https://browse.dgit.debian.org/python-ofxhome.git + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/fill-values b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/fill-values new file mode 100644 index 0000000..6561c1e --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-orphaned-package-not-maintained-in-debian-infrastructure-fp +Description: Test for orphaned package not maintained in Debian infrastucture +Package-Architecture: all diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/eval/desc b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/eval/desc new file mode 100644 index 0000000..d8eb934 --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-orphaned-package-not-maintained-in-debian-infrastructure-fp +Test-Against: no-qa-in-changelog +Check: nmu diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/eval/hints b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure-fp/eval/hints diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/debian/changelog.in b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/debian/changelog.in new file mode 100644 index 0000000..b341aab --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * QA Upload. + * Lintian Test Suite. + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/debian/control.in b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/debian/control.in new file mode 100644 index 0000000..a553c3a --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: Debian QA Group <packages@qa.debian.org> +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no +Vcs-Git: https://github.com/user/project +Vcs-Browser: https://github.com/user/project + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/fill-values b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/fill-values new file mode 100644 index 0000000..4dfa4f3 --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: fields-orphaned-package-not-maintained-in-debian-infrastructure +Description: Test for orphaned package not maintained in Debian infrastucture +Package-Architecture: all diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/eval/desc b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/eval/desc new file mode 100644 index 0000000..68103a2 --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/eval/desc @@ -0,0 +1,3 @@ +Testname: fields-orphaned-package-not-maintained-in-debian-infrastructure +Test-Against: no-qa-in-changelog +Check: nmu diff --git a/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/eval/hints b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/nmu/fields-orphaned-package-not-maintained-in-debian-infrastructure/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/nmu/generic-empty/build-spec/debian/changelog.in b/t/recipes/checks/nmu/generic-empty/build-spec/debian/changelog.in new file mode 100644 index 0000000..7a4298d --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/build-spec/debian/changelog.in @@ -0,0 +1,2 @@ +[% $source %] ([% $version %]) unstable; + -- a <> Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/t/recipes/checks/nmu/generic-empty/build-spec/debian/control.in b/t/recipes/checks/nmu/generic-empty/build-spec/debian/control.in new file mode 100644 index 0000000..575773e --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/build-spec/debian/control.in @@ -0,0 +1,5 @@ +Source: [% $source %] +Maintainer: a + +Package: [% $source %] +Architecture: [% $package_architecture %] diff --git a/t/recipes/checks/nmu/generic-empty/build-spec/debian/rules b/t/recipes/checks/nmu/generic-empty/build-spec/debian/rules new file mode 100755 index 0000000..62da96d --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +build: +binary: + install -d debian/generic-empty debian/generic-empty/DEBIAN + dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty + dpkg --build debian/generic-empty .. + +clean: + rm -rf debian/generic-empty diff --git a/t/recipes/checks/nmu/generic-empty/build-spec/fill-values b/t/recipes/checks/nmu/generic-empty/build-spec/fill-values new file mode 100644 index 0000000..26d9bdc --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: generic-empty +Package-Architecture: all +Description: Pathological empty package diff --git a/t/recipes/checks/nmu/generic-empty/build-spec/orig/README b/t/recipes/checks/nmu/generic-empty/build-spec/orig/README new file mode 100644 index 0000000..ed1b149 --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/build-spec/orig/README @@ -0,0 +1,4 @@ +This is the smallest possible Debian package that I can get +dpkg-buildpackage to build (with the exception of this documentation). +It tests Lintian handling of packages that are missing everything one +would normally expect to have. diff --git a/t/recipes/checks/nmu/generic-empty/build-spec/pre-build b/t/recipes/checks/nmu/generic-empty/build-spec/pre-build new file mode 100755 index 0000000..1a3929a --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/build-spec/pre-build @@ -0,0 +1,6 @@ +#!/bin/sh +# +# Remove as many files from the package as possible. + +rm -f "$1/debian/compat" +rm -f "$1/debian/copyright" diff --git a/t/recipes/checks/nmu/generic-empty/eval/desc b/t/recipes/checks/nmu/generic-empty/eval/desc new file mode 100644 index 0000000..60b30b3 --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/eval/desc @@ -0,0 +1,2 @@ +Testname: generic-empty +Check: nmu diff --git a/t/recipes/checks/nmu/generic-empty/eval/hints b/t/recipes/checks/nmu/generic-empty/eval/hints new file mode 100644 index 0000000..c6100bc --- /dev/null +++ b/t/recipes/checks/nmu/generic-empty/eval/hints @@ -0,0 +1,2 @@ +generic-empty (source): source-nmu-has-incorrect-version-number 1.0 [debian/changelog:1] +generic-empty (source): no-nmu-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/NEWS.Debian new file mode 100644 index 0000000..29f561c --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: ü. + It also has a usefull speling error. + + -- Russ Allbery <rra@debian.org> Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/README.Debian new file mode 100644 index 0000000..94bcc0a --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery <rra@debian.org>, Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/changelog.in new file mode 100644 index 0000000..39301d6 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/changelog.in @@ -0,0 +1,47 @@ +binary ([% $version %]) [% $distribution %]; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt <he@debian.org> Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/conffiles new file mode 100644 index 0000000..d1a0843 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/control b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/control new file mode 100644 index 0000000..c797357 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers <lintian-maint@debian.org> +Uploaders: Co-maintainer one <one@debian.org>, Jeroen van Wolffelaar <jeroen@wolffelaar.nl>, Co-maintainer three <three@debian.org> +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: <http://lintian.debian.org/> +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/copyright new file mode 100644 index 0000000..1d6806d --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated nätionäl äncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/doc-base new file mode 100644 index 0000000..7e5b38f --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad ® character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/goodbye.desktop new file mode 100644 index 0000000..f6ce8e3 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/hello.desktop new file mode 100644 index 0000000..f795468 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello!
+Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/menu b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/menu new file mode 100644 index 0000000..e8972f4 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/menu-method new file mode 100644 index 0000000..9f07bd7 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/postinst new file mode 100644 index 0000000..29e1861 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/rules b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/rules new file mode 100755 index 0000000..a962ea9 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '<html></html>' > $(tmp)/usr/share/doc/binary/html/index.html + echo '<html></html>' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '<html></html>' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/debian/templates b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/templates new file mode 100644 index 0000000..3d92861 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/fill-values b/t/recipes/checks/nmu/legacy-binary/build-spec/fill-values new file mode 100644 index 0000000..b503871 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: legacy-binary +Source: binary +Version: 4-1.1 +Description: Legacy test "binary" diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/nmu/legacy-binary/build-spec/orig/INSTALL new file mode 100644 index 0000000..3b50ea9 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/orig/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/nmu/legacy-binary/build-spec/orig/Makefile new file mode 100644 index 0000000..da1dc55 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/orig/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/t/recipes/checks/nmu/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/nmu/legacy-binary/build-spec/orig/hello.c new file mode 100644 index 0000000..2fb04e1 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/build-spec/orig/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> +#include <stdlib.h> + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/t/recipes/checks/nmu/legacy-binary/eval/desc b/t/recipes/checks/nmu/legacy-binary/eval/desc new file mode 100644 index 0000000..ff7d578 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-binary +Check: nmu diff --git a/t/recipes/checks/nmu/legacy-binary/eval/hints b/t/recipes/checks/nmu/legacy-binary/eval/hints new file mode 100644 index 0000000..d8d2a6d --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (source): maintainer-upload-has-incorrect-version-number 4-1.1 [debian/changelog:1] diff --git a/t/recipes/checks/nmu/legacy-binary/eval/post-test b/t/recipes/checks/nmu/legacy-binary/eval/post-test new file mode 100644 index 0000000..3deefd5 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-binary/eval/post-test @@ -0,0 +1,3 @@ +s/arch-dep-package-has-big-usr-share .*kB .*%/arch-dep-package-has-big-usr-share/ +/: hardening-.*/ d +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/nmu/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/nmu/legacy-fields/build-spec/debian/changelog.in new file mode 100644 index 0000000..38fc4e9 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/build-spec/debian/changelog.in @@ -0,0 +1,10 @@ +fields ([% $version %]) [% $distribution %]; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer <toddy@debian.org> Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/t/recipes/checks/nmu/legacy-fields/build-spec/debian/control b/t/recipes/checks/nmu/legacy-fields/build-spec/debian/control new file mode 100644 index 0000000..d980a6e --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/build-spec/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers <lintian-maint@debian.org> +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/nmu/legacy-fields/build-spec/debian/rules b/t/recipes/checks/nmu/legacy-fields/build-spec/debian/rules new file mode 100755 index 0000000..11ad4a7 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/build-spec/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/nmu/legacy-fields/build-spec/fill-values b/t/recipes/checks/nmu/legacy-fields/build-spec/fill-values new file mode 100644 index 0000000..fe90eb0 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: legacy-fields +Source: fields +Version: 1.5-.3 +Description: Legacy test "fields" diff --git a/t/recipes/checks/nmu/legacy-fields/eval/desc b/t/recipes/checks/nmu/legacy-fields/eval/desc new file mode 100644 index 0000000..b3883a0 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-fields +Check: nmu diff --git a/t/recipes/checks/nmu/legacy-fields/eval/hints b/t/recipes/checks/nmu/legacy-fields/eval/hints new file mode 100644 index 0000000..c5159d3 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/eval/hints @@ -0,0 +1,2 @@ +fields (source): source-nmu-has-incorrect-version-number 1.5-.3 [debian/changelog:1] +fields (source): no-nmu-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/legacy-fields/eval/post-test b/t/recipes/checks/nmu/legacy-fields/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/nmu/legacy-fields/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/changelog.in new file mode 100644 index 0000000..91a6bb5 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +libbaz ([% $version %]) [% $distribution %]; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/control new file mode 100644 index 0000000..1506687 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer <lintian-maint@debian.org> +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/copyright new file mode 100644 index 0000000..a874c87 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/dev.postinst new file mode 100644 index 0000000..683e3cc --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/dev.prerm new file mode 100644 index 0000000..683e3cc --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.postinst new file mode 100644 index 0000000..ec0b98a --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.prerm new file mode 100644 index 0000000..50e37c3 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.shlibs new file mode 100644 index 0000000..b88e288 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.symbols new file mode 100644 index 0000000..72f9d8a --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/rules new file mode 100755 index 0000000..fa99bc8 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/source.lintian-overrides new file mode 100644 index 0000000..6008d27 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/nmu/legacy-libbaz/build-spec/fill-values new file mode 100644 index 0000000..7effe4f --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-non-native +Testname: legacy-libbaz +Source: libbaz +Version: 1-1 +Default-Build-Depends: debhelper (>= 9.20151004~) +Description: Legacy test "libbaz" diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/Makefile new file mode 100644 index 0000000..657dc2a --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/baz.c new file mode 100644 index 0000000..4d5fc45 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/baz.c @@ -0,0 +1,6 @@ +#include <math.h> + +double pw(double p) +{ + return exp(p); +} diff --git a/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/extra.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/build-spec/orig/extra.c diff --git a/t/recipes/checks/nmu/legacy-libbaz/eval/desc b/t/recipes/checks/nmu/legacy-libbaz/eval/desc new file mode 100644 index 0000000..79f591f --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-libbaz +Check: nmu diff --git a/t/recipes/checks/nmu/legacy-libbaz/eval/hints b/t/recipes/checks/nmu/legacy-libbaz/eval/hints new file mode 100644 index 0000000..80bb8eb --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/eval/hints @@ -0,0 +1,2 @@ +libbaz (source): source-nmu-has-incorrect-version-number 1-1 [debian/changelog:1] +libbaz (source): no-nmu-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/legacy-libbaz/eval/post-test b/t/recipes/checks/nmu/legacy-libbaz/eval/post-test new file mode 100755 index 0000000..29dc3f4 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-libbaz/eval/post-test @@ -0,0 +1,4 @@ +/: hardening-.*/ d +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ +s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g +/: file-references-package-build-path / d diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..a12fc8c --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/changelog.in @@ -0,0 +1,57 @@ +maintainer-scripts ([% $version %]) [% $distribution %]; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar <jeroen@mordor> Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld <djpig@debian.org> Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson <cjw44@flatline.org.uk> Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..63dd2db --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group <packages@qa.debian.org> +Uploaders: Anyone but Jeroen <jeroen@wolffelaar.nl> +Build-Depends: [% $build_depends %] +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: [% $package_architecture %] +Depends: test +Description: test lintian's maintainer script checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..e56ed3b --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell </dev/null +. "$(dirname $0)/shell" ; bar +# invalid +. /usr/share/lintian/shell foo +. "$(dirname $0)/shell" bar + +print "Hit enter to continue" +read + +H[0]='this is a string' +echo ${H[0]} +echo "Index 0's length is ${#H[0]}" +echo "All of the array is: ${H[@]}" + +install-info /usr/share/info/foo \ + --quiet \ # make it so + --section foo + +echo Please use update-rc.d or invoke-rc.d to set up blah blah. + +chown root.root /usr/share/doc/maintainer-scripts/changelog +chown root:root /usr/share/doc/maintainer-scripts/changelog + +$FOO=bar +update-rc.d foo defaults >/dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '<<EOF' +echo "All of the array is: ${H[@]}" +EOF + +# This is a heredoc +cat <<-EOF +echo "All of the array is ${H[@]}" +EOF + +# As is this +cat <<';' +echo "All of the array is ${H[@]}" +; + +# and this +cat <<foo +echo "All of the array is ${H[@]}" +foobar +echo $HOSTNAME +foo + +# and again +cat <<\bar +echo "All of the array is ${H[@]}" +bar + +# yet another +cat <<"x++" +echo "All of the array is ${H[@]}" +x++ + +# Recognize single quotes even if they start at the beginning of a line. +echo not a bashism \ +'/{ptex,tex}/{amstex,plain,generic,}' + +# More bashisms. +echo -e 'foo\n' +echo "${!foo}" +cat $(\< file) +select foo in a b ; do echo $foo ; done +cnt=$((cnt + 1)) +if false ; then + exec -l /bin/sh + exec -c /bin/sh + exec -a foo /bin/sh +fi +let cnt++ +if test -a /etc/default ; then + echo "$RANDOM|stuff" +fi + +# Calling start-stop-daemon directly in an init script. +start-stop-daemon --start --quiet --name foo --startas /usr/bin/foo + +# But stopping it is fine -- we may be working around something else. +start-stop-daemon --stop --quiet --name foo --startas /usr/bin/foo + +# Deprecated chown use with flags. +chown -R root.root /usr/share/doc/maintainer-scripts + +case $mainscript in + /usr/bin/foo) foobarbaz;; +esac + +/usr/bin/baz; echo bar + +# Some comment checking +# This should flag $RANDOM +test $# -gt 2 && echo $RANDOM +# But these shouldn't +test 1=1 # echo $RANDOM +(test 1=1)# echo $RANDOM +test 1=1;# echo $RANDOM +backgroundtask &#echo $RA diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/postrm b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..c0aaf19 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/postrm @@ -0,0 +1,47 @@ +#!/bin/bash +#set -e + +update-alternatives --remove dummy /usr/bin/dummy-alternative + +# Normally read in a maintainer script is not kosher, but here we're going +# to do it only if debconf doesn't exist. +if ! test -f /usr/share/debconf/confmodule ; then + echo "Hit enter" + read +fi + +# neither of the following should be detected as postrm-unsafe-ldconfig +# intended, without quotes + if [ "$1" = remove ]; then + ldconfig + fi +# reversed, many whitespace +if [ 'remove' = "$1" ] +then + + ldconfig +fi + +[ "remove" ="$1" ] && ldconfig + +update-rc.d bar remove + +# Shouldn't provoke an error despite no invoke-rc.d. +echo "/etc/init.d/package stop to stop something" + +# Shouldn't require a ucf dependency. Unfortunately, right now that's +# just because postrm isn't checked, not because we ensure that the +# invocation is conditional. +if which ucf >/dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..6058978 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/prerm new file mode 100644 index 0000000..076ecaf --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat <<EOF +This is all really bad bash specific code!!! +read +source /bar/baz/bat foo +EOF + +# ok, back to checking +if [ "$2" == "purge" ]; then + rm -r /bar/baz +fi + +function foo( ) { + # but not here: local + local bar + echo "foo" &>/dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/rules new file mode 100755 index 0000000..5fcef00 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/triggers new file mode 100644 index 0000000..f627094 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/watch new file mode 100644 index 0000000..430eea3 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=5 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz
\ No newline at end of file diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/fill-values new file mode 100644 index 0000000..c281e87 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-non-native +Testname: legacy-maintainer-scripts +Source: maintainer-scripts +Version: 7+dfsg-0.1 +Description: Legacy test "maintainer-scripts" +Extra-Build-Depends: dash (>= 0.5.10.2) diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/desc new file mode 100644 index 0000000..914402b --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-maintainer-scripts +Check: nmu diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/hints new file mode 100644 index 0000000..5e511b1 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/hints @@ -0,0 +1,3 @@ +maintainer-scripts (source): uploaders-in-orphan [debian/changelog:1] +maintainer-scripts (source): qa-upload-has-incorrect-version-number 7+dfsg-0.1 [debian/changelog:1] +maintainer-scripts (source): no-qa-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/nmu/legacy-maintainer-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..935c633 --- /dev/null +++ b/t/recipes/checks/nmu/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 <he@debian.org> 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 <jeroen@wolffelaar.nl> 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 <he@debian.org> 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 <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..75a521f --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers <lintian-maint@debian.org> +Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org> +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/nmu/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/copyright new file mode 100644 index 0000000..ad8a119 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/00list new file mode 100644 index 0000000..3b9d37e --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/nmu/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/nmu/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 <Marc 'HE' Brockschmidt <he@debian.org>> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/nmu/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/nmu/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 <adam@adam-barratt.org.uk> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..7c5baf1 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..8fa75a2 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..0799557 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/rules new file mode 100755 index 0000000..ee3677e --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/scripts.conffiles new file mode 100644 index 0000000..01a371a --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/nmu/legacy-scripts/build-spec/debian/watch new file mode 100644 index 0000000..dba5815 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/fill-values b/t/recipes/checks/nmu/legacy-scripts/build-spec/fill-values new file mode 100644 index 0000000..8a68457 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/csh-foo new file mode 100644 index 0000000..eaf47a1 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/envfoo new file mode 100755 index 0000000..e005037 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/fish-foo new file mode 100644 index 0000000..7f59139 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/gccbug.dpatch new file mode 100755 index 0000000..65cbf37 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/guile-bizarre new file mode 100644 index 0000000..70e2c74 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/init-lsb-broken new file mode 100644 index 0000000..e4dfa92 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/init-lsb-other new file mode 100644 index 0000000..adb4795 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/init-no-lsb new file mode 100644 index 0000000..6b994dd --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/init-skeleton new file mode 100644 index 0000000..c868508 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/jruby-broken new file mode 100644 index 0000000..56f574d --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/lefty-foo new file mode 100644 index 0000000..52c003e --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/make-foo new file mode 100644 index 0000000..6b787b5 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/perl-bizarre-1 new file mode 100644 index 0000000..fc632c8 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/perl-bizarre-2 new file mode 100644 index 0000000..afd9cfe --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/perl-bizarre-3 new file mode 100644 index 0000000..44baf75 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/perlfoo new file mode 100644 index 0000000..5b27ed0 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/phpenvfoo new file mode 100644 index 0000000..cbbfb2e --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php +<html> +<head> +<title>Dumb PHP script</title> +</head> +<body><? print(Date("l F d, Y")); ?></body> +</html> diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/phpfoo new file mode 100644 index 0000000..e0595e6 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php +<html> +<head> +<title>Dumb PHP script</title> +</head> +<body><? print(Date("l F d, Y")); ?></body> +</html> diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/rubyfoo new file mode 100644 index 0000000..8024605 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/sh-broken new file mode 100644 index 0000000..7b79074 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/suidperlfoo new file mode 100644 index 0000000..bcbc471 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/tkfoo new file mode 100755 index 0000000..533595a --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/wishfoo new file mode 100644 index 0000000..035c9ad --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/xsession-test new file mode 100644 index 0000000..ca49d72 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/build-spec/orig/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/t/recipes/checks/nmu/legacy-scripts/build-spec/pre-build b/t/recipes/checks/nmu/legacy-scripts/build-spec/pre-build new file mode 100755 index 0000000..b5649a8 --- /dev/null +++ b/t/recipes/checks/nmu/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/nmu/legacy-scripts/eval/desc b/t/recipes/checks/nmu/legacy-scripts/eval/desc new file mode 100644 index 0000000..70bbd38 --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-scripts +Check: nmu diff --git a/t/recipes/checks/nmu/legacy-scripts/eval/hints b/t/recipes/checks/nmu/legacy-scripts/eval/hints new file mode 100644 index 0000000..25ffb9d --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/eval/hints @@ -0,0 +1,2 @@ +scripts (source): source-nmu-has-incorrect-version-number 6ds-1ubuntu0.5.10.1 [debian/changelog:1] +scripts (source): no-nmu-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/legacy-scripts/eval/post-test b/t/recipes/checks/nmu/legacy-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/nmu/legacy-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/nmu/nmu-case-insensitive/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-case-insensitive/build-spec/debian/changelog.in new file mode 100644 index 0000000..5f95db2 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-case-insensitive/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- Russ Allbery <rra@DebIAN.org> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-case-insensitive/build-spec/fill-values b/t/recipes/checks/nmu/nmu-case-insensitive/build-spec/fill-values new file mode 100644 index 0000000..1471766 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-case-insensitive/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: nmu-case-insensitive +Author: Russ Allbery <rra@debian.ORG> +Description: Test case-insensitive matching of e-mail addresses diff --git a/t/recipes/checks/nmu/nmu-case-insensitive/eval/desc b/t/recipes/checks/nmu/nmu-case-insensitive/eval/desc new file mode 100644 index 0000000..29e97bb --- /dev/null +++ b/t/recipes/checks/nmu/nmu-case-insensitive/eval/desc @@ -0,0 +1,6 @@ +Testname: nmu-case-insensitive +Test-Against: + no-nmu-in-changelog + source-nmu-has-incorrect-version-number +See-Also: Debian Bug#486795 +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-case-insensitive/eval/hints b/t/recipes/checks/nmu/nmu-case-insensitive/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-case-insensitive/eval/hints diff --git a/t/recipes/checks/nmu/nmu-local-changelog/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-local-changelog/build-spec/debian/changelog.in new file mode 100644 index 0000000..8deb337 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-changelog/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Local package. + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery <rra@debian.org> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-local-changelog/build-spec/fill-values b/t/recipes/checks/nmu/nmu-local-changelog/build-spec/fill-values new file mode 100644 index 0000000..2f60c73 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-changelog/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: nmu-local-changelog +Description: Test suppression of NMU tags for local packages diff --git a/t/recipes/checks/nmu/nmu-local-changelog/eval/desc b/t/recipes/checks/nmu/nmu-local-changelog/eval/desc new file mode 100644 index 0000000..a8519f0 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-changelog/eval/desc @@ -0,0 +1,6 @@ +Testname: nmu-local-changelog +Test-Against: + no-nmu-in-changelog + source-nmu-has-incorrect-version-number +See-Also: Debian Bug#501523 +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-local-changelog/eval/hints b/t/recipes/checks/nmu/nmu-local-changelog/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-changelog/eval/hints diff --git a/t/recipes/checks/nmu/nmu-local-version/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-local-version/build-spec/debian/changelog.in new file mode 100644 index 0000000..8eba4c0 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-version/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery <rra@debian.org> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-local-version/build-spec/fill-values b/t/recipes/checks/nmu/nmu-local-version/build-spec/fill-values new file mode 100644 index 0000000..e04302d --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-version/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: nmu-local-version +Version: 1.0local1 +Description: Test suppression of NMU tags for local packages diff --git a/t/recipes/checks/nmu/nmu-local-version/eval/desc b/t/recipes/checks/nmu/nmu-local-version/eval/desc new file mode 100644 index 0000000..ff905af --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-version/eval/desc @@ -0,0 +1,6 @@ +Testname: nmu-local-version +Test-Against: + no-nmu-in-changelog + source-nmu-has-incorrect-version-number +See-Also: Debian Bug#501523 +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-local-version/eval/hints b/t/recipes/checks/nmu/nmu-local-version/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-local-version/eval/hints diff --git a/t/recipes/checks/nmu/nmu-multi-author/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-multi-author/build-spec/debian/changelog.in new file mode 100644 index 0000000..0b5f973 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-multi-author/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + [ Russ Allbery ] + * Non-maintainer upload. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery <rra@debian.org> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-multi-author/build-spec/fill-values b/t/recipes/checks/nmu/nmu-multi-author/build-spec/fill-values new file mode 100644 index 0000000..869f594 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-multi-author/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: nmu-multi-author +Skeleton: upload-non-native +Version: 1.0-1.1 +Description: Test an NMU with a multi-author changelog diff --git a/t/recipes/checks/nmu/nmu-multi-author/eval/desc b/t/recipes/checks/nmu/nmu-multi-author/eval/desc new file mode 100644 index 0000000..9762774 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-multi-author/eval/desc @@ -0,0 +1,3 @@ +Testname: nmu-multi-author +Test-Against: no-nmu-in-changelog +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-multi-author/eval/hints b/t/recipes/checks/nmu/nmu-multi-author/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-multi-author/eval/hints diff --git a/t/recipes/checks/nmu/nmu-not-a-nmu/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-not-a-nmu/build-spec/debian/changelog.in new file mode 100644 index 0000000..32a3fdd --- /dev/null +++ b/t/recipes/checks/nmu/nmu-not-a-nmu/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Non-maintainer upload. + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/nmu/nmu-not-a-nmu/build-spec/fill-values b/t/recipes/checks/nmu/nmu-not-a-nmu/build-spec/fill-values new file mode 100644 index 0000000..61a8294 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-not-a-nmu/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: nmu-not-a-nmu +Description: Test for MU declared as NMU +Author: Niels Thykier <niels@thykier.net> diff --git a/t/recipes/checks/nmu/nmu-not-a-nmu/eval/desc b/t/recipes/checks/nmu/nmu-not-a-nmu/eval/desc new file mode 100644 index 0000000..b953f7e --- /dev/null +++ b/t/recipes/checks/nmu/nmu-not-a-nmu/eval/desc @@ -0,0 +1,2 @@ +Testname: nmu-not-a-nmu +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-not-a-nmu/eval/hints b/t/recipes/checks/nmu/nmu-not-a-nmu/eval/hints new file mode 100644 index 0000000..84edfb2 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-not-a-nmu/eval/hints @@ -0,0 +1 @@ +nmu-not-a-nmu (source): nmu-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/nmu-qa-upload/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-qa-upload/build-spec/debian/changelog.in new file mode 100644 index 0000000..07162ee --- /dev/null +++ b/t/recipes/checks/nmu/nmu-qa-upload/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Niels Thykier <niels@thykier.net> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-qa-upload/build-spec/debian/control.in b/t/recipes/checks/nmu/nmu-qa-upload/build-spec/debian/control.in new file mode 100644 index 0000000..fd4b548 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-qa-upload/build-spec/debian/control.in @@ -0,0 +1,17 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Uploaders: Niels Thykier <niels@thykier.net> +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/nmu/nmu-qa-upload/build-spec/fill-values b/t/recipes/checks/nmu/nmu-qa-upload/build-spec/fill-values new file mode 100644 index 0000000..4b90c15 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-qa-upload/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: nmu-qa-upload +Version: 1.0+nmu1 +Description: Test for QA upload issues +Author: Debian QA Group <packages@qa.debian.org> diff --git a/t/recipes/checks/nmu/nmu-qa-upload/eval/desc b/t/recipes/checks/nmu/nmu-qa-upload/eval/desc new file mode 100644 index 0000000..0fbbc41 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-qa-upload/eval/desc @@ -0,0 +1,2 @@ +Testname: nmu-qa-upload +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-qa-upload/eval/hints b/t/recipes/checks/nmu/nmu-qa-upload/eval/hints new file mode 100644 index 0000000..efb746a --- /dev/null +++ b/t/recipes/checks/nmu/nmu-qa-upload/eval/hints @@ -0,0 +1,3 @@ +nmu-qa-upload (source): uploaders-in-orphan [debian/changelog:1] +nmu-qa-upload (source): qa-upload-has-incorrect-version-number 1.0+nmu1 [debian/changelog:1] +nmu-qa-upload (source): no-qa-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/nmu-space-around-maintainer/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-space-around-maintainer/build-spec/debian/changelog.in new file mode 100644 index 0000000..0dd3e68 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-space-around-maintainer/build-spec/debian/changelog.in @@ -0,0 +1,8 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/nmu/nmu-space-around-maintainer/build-spec/fill-values b/t/recipes/checks/nmu/nmu-space-around-maintainer/build-spec/fill-values new file mode 100644 index 0000000..0bf3c54 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-space-around-maintainer/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: nmu-space-around-maintainer +Description: Test for space around maintainer diff --git a/t/recipes/checks/nmu/nmu-space-around-maintainer/eval/desc b/t/recipes/checks/nmu/nmu-space-around-maintainer/eval/desc new file mode 100644 index 0000000..6806c25 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-space-around-maintainer/eval/desc @@ -0,0 +1,2 @@ +Testname: nmu-space-around-maintainer +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-space-around-maintainer/eval/hints b/t/recipes/checks/nmu/nmu-space-around-maintainer/eval/hints new file mode 100644 index 0000000..82fa72c --- /dev/null +++ b/t/recipes/checks/nmu/nmu-space-around-maintainer/eval/hints @@ -0,0 +1 @@ +nmu-space-around-maintainer (source): extra-whitespace-around-name-in-changelog-trailer [debian/changelog:1] diff --git a/t/recipes/checks/nmu/nmu-team-upload/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-team-upload/build-spec/debian/changelog.in new file mode 100644 index 0000000..6745296 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-team-upload/build-spec/debian/changelog.in @@ -0,0 +1,9 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Team upload. + * Lintian Test Suite. + * Test: [% $testname %] + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery <rra@debian.org> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-team-upload/build-spec/fill-values b/t/recipes/checks/nmu/nmu-team-upload/build-spec/fill-values new file mode 100644 index 0000000..0da98e2 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-team-upload/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: nmu-team-upload +Version: 1.0+nmu1 +Description: Test for versioning of a team upload diff --git a/t/recipes/checks/nmu/nmu-team-upload/eval/desc b/t/recipes/checks/nmu/nmu-team-upload/eval/desc new file mode 100644 index 0000000..c343108 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-team-upload/eval/desc @@ -0,0 +1,2 @@ +Testname: nmu-team-upload +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-team-upload/eval/hints b/t/recipes/checks/nmu/nmu-team-upload/eval/hints new file mode 100644 index 0000000..291b65e --- /dev/null +++ b/t/recipes/checks/nmu/nmu-team-upload/eval/hints @@ -0,0 +1 @@ +nmu-team-upload (source): team-upload-has-incorrect-version-number 1.0+nmu1 [debian/changelog:1] diff --git a/t/recipes/checks/nmu/nmu-ubuntu-native/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-ubuntu-native/build-spec/debian/changelog.in new file mode 100644 index 0000000..b673fbc --- /dev/null +++ b/t/recipes/checks/nmu/nmu-ubuntu-native/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) lucid; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- Russ Allbery <rra@debian.org> [% $date %] diff --git a/t/recipes/checks/nmu/nmu-ubuntu-native/build-spec/fill-values b/t/recipes/checks/nmu/nmu-ubuntu-native/build-spec/fill-values new file mode 100644 index 0000000..3803ec6 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-ubuntu-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: nmu-ubuntu-native +Description: Test NMU tag suppression for Ubuntu native packages diff --git a/t/recipes/checks/nmu/nmu-ubuntu-native/eval/desc b/t/recipes/checks/nmu/nmu-ubuntu-native/eval/desc new file mode 100644 index 0000000..ff098a8 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-ubuntu-native/eval/desc @@ -0,0 +1,5 @@ +Testname: nmu-ubuntu-native +Profile: ubuntu/main +Test-Against: no-nmu-in-changelog +See-Also: Debian Bug #507740 +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-ubuntu-native/eval/hints b/t/recipes/checks/nmu/nmu-ubuntu-native/eval/hints new file mode 100644 index 0000000..52ce554 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-ubuntu-native/eval/hints @@ -0,0 +1,2 @@ +nmu-ubuntu-native (source): source-nmu-has-incorrect-version-number 1.0 [debian/changelog:1] +nmu-ubuntu-native (source): no-nmu-in-changelog [debian/changelog:1] diff --git a/t/recipes/checks/nmu/nmu-unnecessary-team-upload/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/build-spec/debian/changelog.in new file mode 100644 index 0000000..6060199 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * Team upload. + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- [% $author %] [% $date %] diff --git a/t/recipes/checks/nmu/nmu-unnecessary-team-upload/build-spec/fill-values b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/build-spec/fill-values new file mode 100644 index 0000000..00489da --- /dev/null +++ b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: nmu-unnecessary-team-upload +Description: Test for unnecessary team uploads diff --git a/t/recipes/checks/nmu/nmu-unnecessary-team-upload/eval/desc b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/eval/desc new file mode 100644 index 0000000..2c411db --- /dev/null +++ b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/eval/desc @@ -0,0 +1,2 @@ +Testname: nmu-unnecessary-team-upload +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-unnecessary-team-upload/eval/hints b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/eval/hints new file mode 100644 index 0000000..056b427 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-unnecessary-team-upload/eval/hints @@ -0,0 +1 @@ +nmu-unnecessary-team-upload (source): unnecessary-team-upload [debian/changelog:1] diff --git a/t/recipes/checks/nmu/nmu-with-maintainer-ack/build-spec/debian/changelog.in b/t/recipes/checks/nmu/nmu-with-maintainer-ack/build-spec/debian/changelog.in new file mode 100644 index 0000000..b96e5d2 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-with-maintainer-ack/build-spec/debian/changelog.in @@ -0,0 +1,15 @@ +[% $source %] ([% $version %]) unstable; urgency=low + + * NMU with ACK from maintainer. + * This should not trigger changelog-should-mention-nmu even though it + has "ACK" in the first line. + + -- Russ Allbery <rra@debian.org> [% $date %] + +[% $source %] (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: [% $testname %] + + -- [% $author %] Sat, 24 Jan 2009 15:39:06 -0800 + diff --git a/t/recipes/checks/nmu/nmu-with-maintainer-ack/build-spec/fill-values b/t/recipes/checks/nmu/nmu-with-maintainer-ack/build-spec/fill-values new file mode 100644 index 0000000..dbbeafa --- /dev/null +++ b/t/recipes/checks/nmu/nmu-with-maintainer-ack/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: nmu-with-maintainer-ack +Skeleton: upload-non-native +Description: Test a variation on NMU wording +Version: 1.0-1.1 diff --git a/t/recipes/checks/nmu/nmu-with-maintainer-ack/eval/desc b/t/recipes/checks/nmu/nmu-with-maintainer-ack/eval/desc new file mode 100644 index 0000000..eb42f50 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-with-maintainer-ack/eval/desc @@ -0,0 +1,3 @@ +Testname: nmu-with-maintainer-ack +Test-Against: no-nmu-in-changelog +Check: nmu diff --git a/t/recipes/checks/nmu/nmu-with-maintainer-ack/eval/hints b/t/recipes/checks/nmu/nmu-with-maintainer-ack/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/nmu/nmu-with-maintainer-ack/eval/hints |