* Jakub Wilk jw...@debian.org, 2011-07-14, 14:20:
Please warn if debian/README.source contains the following string:
You WILL either need to modify or delete this file
I attach patch that I wrote back in 2011. IIRC Niels didn't like my approach,
but at least the tests should be useful.
--
Jakub Wilk
diff --git a/checks/patch-systems.desc b/checks/patch-systems.desc
--- a/checks/patch-systems.desc
+++ b/checks/patch-systems.desc
@@ -185,3 +185,15 @@
can refer to tt/usr/share/doc/dpatch/README.source.gz/tt for dpatch.
Ref: policy 4.14
+Tag: source-readme-contains-dh-make-template
+Severity: normal
+Certainty: certain
+Info: The README.source file installed by this package contains the template
+ phrase from the README.source provided by dh-make:
+ .
+ You WILL either need to modify or delete this file
+ .
+ If there is real information in the file, please delete any generic
+ template phrases. If there is nothing to say in the file, it is best
+ removed.
+
diff --git a/checks/patch-systems.pm b/checks/patch-systems.pm
--- a/checks/patch-systems.pm
+++ b/checks/patch-systems.pm
@@ -246,6 +246,14 @@
}
}
+#- look for dh-make boilerplate in README.source
+if (-f $droot/README.source and not -l $droot/README.source) {
+$_ = slurp_entire_file($droot/README.source);
+if (m,You WILL either need to modify or delete this file,o) {
+tag 'source-readme-contains-dh-make-template';
+}
+}
+
#- general cruft checking:
if ($uses_patch_system 1) {
tag 'more-than-one-patch-system';
diff --git a/t/tests/generic-dh-make-2011/debian/Makefile b/t/tests/generic-dh-make-2011/debian/Makefile
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/Makefile
@@ -0,0 +1,4 @@
+# Stub Makefile that's just enough so that the default rules file doesn't
+# error out.
+
+clean install:
diff --git a/t/tests/generic-dh-make-2011/debian/README b/t/tests/generic-dh-make-2011/debian/README
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/README
@@ -0,0 +1,13 @@
+dh_make 0.50 test
+=
+
+This is the results of running dh_make 0.50 on an upstream tarball
+containing only this file. It's a useful test for the various dh_make
+template and boilerplate tags, as well as many tags for ways of doing
+things dh_make used to promote but are now deprecated or old debhelper
+commands that are now deprecated.
+
+Please don't modify anything about the files in this package; instead, add
+new tags as needed when Lintian adds new checks. This test case is
+intended to continue to be a test of Lintian's handling of old and
+template packages.
diff --git a/t/tests/generic-dh-make-2011/debian/debian/README.Debian b/t/tests/generic-dh-make-2011/debian/debian/README.Debian
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/debian/README.Debian
@@ -0,0 +1,6 @@
+generic-dh-make-2011 for Debian
+---
+
+possible notes regarding this package - if none, delete this file
+
+ -- Jakub Wilk jw...@debian.org Thu, 08 Sep 2011 18:15:43 +
diff --git a/t/tests/generic-dh-make-2011/debian/debian/README.source b/t/tests/generic-dh-make-2011/debian/debian/README.source
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/debian/README.source
@@ -0,0 +1,9 @@
+generic-dh-make-2011 for Debian
+---
+
+this file describes information about the source package, see Debian policy
+manual section 4.14. You WILL either need to modify or delete this file
+
+
+
+
diff --git a/t/tests/generic-dh-make-2011/debian/debian/changelog b/t/tests/generic-dh-make-2011/debian/debian/changelog
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/debian/changelog
@@ -0,0 +1,5 @@
+generic-dh-make-2011 (1.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #) is the bug number of your ITP
+
+ -- Jakub Wilk jw...@debian.org Thu, 08 Sep 2011 18:15:43 +
diff --git a/t/tests/generic-dh-make-2011/debian/debian/compat b/t/tests/generic-dh-make-2011/debian/debian/compat
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/debian/compat
@@ -0,0 +1,1 @@
+8
diff --git a/t/tests/generic-dh-make-2011/debian/debian/control b/t/tests/generic-dh-make-2011/debian/debian/control
new file mode 100644
--- /dev/null
+++ b/t/tests/generic-dh-make-2011/debian/debian/control
@@ -0,0 +1,15 @@
+Source: generic-dh-make-2011
+Section: unknown
+Priority: extra
+Maintainer: Jakub Wilk jw...@debian.org
+Build-Depends: debhelper (= 8.0.0)
+Standards-Version: 3.9.2
+Homepage: insert the upstream URL, if relevant
+#Vcs-Git: git://git.debian.org/collab-maint/generic-dh-make-2011.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/generic-dh-make-2011.git;a=summary
+
+Package: generic-dh-make-2011
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: insert up to 60