[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.2.13-9-gdd25e18



The following commit has been merged in the master branch:
commit dd25e18ee0398448c34eddf3d710d445515633a3
Author: Russ Allbery <rra@debian.org>
Date:   Fri Jul 24 19:51:55 2009 -0700

    Add tag description and tests for patch-system-but-no-source-readme

diff --git a/checks/patch-systems.desc b/checks/patch-systems.desc
index 336cbd4..96e20a9 100644
--- a/checks/patch-systems.desc
+++ b/checks/patch-systems.desc
@@ -137,3 +137,17 @@ Info: The Debian diff.gz contains changes to files or creation of additional
  control over them.  The package will also more easily support  possible
  future source package formats if all changes outside the <tt>debian</tt>
  directory are stored as patches.
+
+Tag: patch-system-but-no-source-readme
+Severity: normal
+Certainty: certain
+Info: This package build-depends on a patch system such as dpatch or
+ quilt, but there is no <tt>debian/README.source</tt> file.  This file is
+ recommended for any package where <tt>dpkg-source -x</tt> does not result
+ in the preferred form for making modifications to the package.
+ .
+ If you are using quilt and the package needs no other special handling
+ instructions, you may want to add a <tt>debian/README.source</tt>
+ referring to <tt>/usr/share/doc/quilt/README.source</tt>.  Similarly, you
+ can refer to <tt>/usr/share/doc/dpatch/README.source.gz</tt> for dpatch.
+Ref: policy 4.14
diff --git a/debian/changelog b/debian/changelog
index 3af203b..cf850a2 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,9 @@
 lintian (2.2.14) unstable; urgency=low
 
+  * Summary of tag changes:
+    + Added:
+      - patch-system-but-no-source-readme
+
   * checks/fields{,.desc}
     + [FL] packages named lib*-camlp4-dev should be in section ocaml
     + [RA] Move debian/rules parsing to check build dependencies to
@@ -10,6 +14,9 @@ lintian (2.2.14) unstable; urgency=low
     + [RA] Expand Lintian's understanding of which targets are run for the
       clean target to include targets invoked via pattern variable
       expansion.  (Closes: #536405)
+  * checks/patch-systems{,.desc}:
+    + [RA] Check for a patch system in use but no debian/README.source.
+      Based on a patch from Jonathan Yu.  (Closes: #537969)
 
   * lib/Spelling.pm:
     + [RA] Add spelling correction for precedence.
diff --git a/t/tests/patch-systems-empty-series/debian/debian/README.source b/t/tests/patch-systems-empty-series/debian/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/tests/patch-systems-empty-series/debian/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt.  See /usr/share/doc/quilt/README.source.
diff --git a/t/tests/patch-systems-no-readme-source/debian/debian/README.source b/t/tests/patch-systems-no-readme-source/debian/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/tests/patch-systems-no-readme-source/debian/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt.  See /usr/share/doc/quilt/README.source.
diff --git a/t/tests/patch-systems-empty-series/debian/debian/control.in b/t/tests/patch-systems-no-readme-source/debian/debian/control.in
similarity index 100%
copy from t/tests/patch-systems-empty-series/debian/debian/control.in
copy to t/tests/patch-systems-no-readme-source/debian/debian/control.in
diff --git a/t/tests/patch-systems-quilt-description/debian/debian/patches/01_this_patch_is_ok b/t/tests/patch-systems-no-readme-source/debian/debian/patches/01_this_patch_is_ok
similarity index 100%
copy from t/tests/patch-systems-quilt-description/debian/debian/patches/01_this_patch_is_ok
copy to t/tests/patch-systems-no-readme-source/debian/debian/patches/01_this_patch_is_ok
diff --git a/t/tests/fields-quilt-debhelper/debian/debian/patches/series b/t/tests/patch-systems-no-readme-source/debian/debian/patches/series
similarity index 100%
copy from t/tests/fields-quilt-debhelper/debian/debian/patches/series
copy to t/tests/patch-systems-no-readme-source/debian/debian/patches/series
diff --git a/t/tests/patch-systems-no-readme-source/desc b/t/tests/patch-systems-no-readme-source/desc
new file mode 100644
index 0000000..ca93d54
--- /dev/null
+++ b/t/tests/patch-systems-no-readme-source/desc
@@ -0,0 +1,6 @@
+Testname: patch-systems-no-readme-source
+Sequence: 6000
+Version: 1.0
+Description: Patch system with no README.source
+Test-For: patch-system-but-no-source-readme
+References: Debian Bug #537969
diff --git a/t/tests/patch-systems-no-readme-source/tags b/t/tests/patch-systems-no-readme-source/tags
new file mode 100644
index 0000000..b2058c8
--- /dev/null
+++ b/t/tests/patch-systems-no-readme-source/tags
@@ -0,0 +1 @@
+W: patch-systems-no-readme-source source: patch-system-but-no-source-readme
diff --git a/t/tests/patch-systems-quilt-description/debian/debian/README.source b/t/tests/patch-systems-quilt-description/debian/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/tests/patch-systems-quilt-description/debian/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt.  See /usr/share/doc/quilt/README.source.

-- 
Debian package checker


Reply to: