[SCM] Debian package checker branch, master, updated. 2.2.5-38-gcc59976
The following commit has been merged in the master branch:
commit 0331d21fc7cc935f8013d1ab9d9f3fc9597cb994
Author: Russ Allbery <rra@debian.org>
Date: Sat Feb 21 13:36:30 2009 -0800
Issue lzma-deb-archive for lzma-compressed binary packages
* checks/deb-format{,.desc}:
+ [RA] Recognize data.tar.lzma binary package components and use a
different tag than malformed-deb-archive.
diff --git a/checks/deb-format b/checks/deb-format
index ff950ee..5de71ab 100644
--- a/checks/deb-format
+++ b/checks/deb-format
@@ -43,6 +43,8 @@ if ($success) {
} elsif ($members[1] ne 'control.tar.gz') {
tag 'malformed-deb-archive',
"second member $members[1] not control.tar.gz";
+ } elsif ($members[2] eq 'data.tar.lzma') {
+ tag 'lzma-deb-archive';
} elsif ($members[2] !~ /^data\.tar\.(gz|bz2)\z/) {
tag 'malformed-deb-archive',
"third member $members[2] not data.tar.(gz|bz2)";
diff --git a/checks/deb-format.desc b/checks/deb-format.desc
index 39f84af..532d1ea 100644
--- a/checks/deb-format.desc
+++ b/checks/deb-format.desc
@@ -15,3 +15,10 @@ Info: The binary package is not a correctly constructed archive. A binary
<tt>debian-control</tt> member must start with a single line containing
the version number, with a major revision of 2.
Ref: deb(5)
+
+Tag: lzma-deb-archive
+Severity: serious
+Certainty: certain
+Info: The data portion of this binary package is compressed with lzma.
+ This is supported by dpkg but not yet permitted in the Debian archive.
+ Such a package will be rejected by DAK.
diff --git a/debian/changelog b/debian/changelog
index 774a27d..cbf54df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ lintian (2.2.6) UNRELEASED; urgency=low
* Summary of tag changes:
+ Added
- icon-size-and-directory-name-mismatch
+ - lzma-deb-archive
- multiple-distributions-in-changes-file (disabled)
* checks/common_data.pm:
@@ -10,6 +11,9 @@ lintian (2.2.6) UNRELEASED; urgency=low
* checks/control-file:
+ [ADB] Properly exclude packages built from the glibc source package
from the "hardcoded depends on libc" test. (Closes: #515831)
+ * checks/deb-format{,.desc}:
+ + [RA] Recognize data.tar.lzma binary package components and use a
+ different tag than malformed-deb-archive.
* checks/description:
+ [ADB] Warn of homepages embedded in the description which use the
syntax "Homepage: <http://example.com>" using the warning level
diff --git a/t/debs/deb-format-lzma/Makefile b/t/debs/deb-format-lzma/Makefile
new file mode 100644
index 0000000..d03041b
--- /dev/null
+++ b/t/debs/deb-format-lzma/Makefile
@@ -0,0 +1,17 @@
+all:
+ echo '2.0' > debian-binary
+ mkdir -p usr/share/doc/deb-format-lzma
+ cp copyright changelog usr/share/doc/deb-format-lzma
+ gzip -9 usr/share/doc/deb-format-lzma/changelog
+ tar cf data.tar usr
+ lzma data.tar
+ chown 0:0 control
+ chmod 644 control
+ md5sum usr/share/doc/deb-format-lzma/* > md5sums
+ tar cfz control.tar.gz control md5sums
+ ar rc deb-format-lzma.deb \
+ debian-binary control.tar.gz data.tar.lzma
+
+clean:
+ rm -f *.tar.gz *.tar.lzma *.deb md5sums debian-binary
+ rm -rf usr
diff --git a/t/debs/deb-format-lzma/changelog b/t/debs/deb-format-lzma/changelog
new file mode 100644
index 0000000..2fbdc04
--- /dev/null
+++ b/t/debs/deb-format-lzma/changelog
@@ -0,0 +1,5 @@
+deb-format-lzma (1.0) unstable; urgency=low
+
+ * A Lintian test case.
+
+ -- Debian Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2009 13:34:21 -0800
diff --git a/t/debs/deb-format-wrong-order/control b/t/debs/deb-format-lzma/control
similarity index 92%
copy from t/debs/deb-format-wrong-order/control
copy to t/debs/deb-format-lzma/control
index fb980ab..4f9a963 100644
--- a/t/debs/deb-format-wrong-order/control
+++ b/t/debs/deb-format-lzma/control
@@ -1,4 +1,4 @@
-Package: deb-format-wrong-order
+Package: deb-format-lzma
Version: 1.0
Architecture: all
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
diff --git a/t/debs/deb-format-extra-member/copyright b/t/debs/deb-format-lzma/copyright
similarity index 100%
copy from t/debs/deb-format-extra-member/copyright
copy to t/debs/deb-format-lzma/copyright
diff --git a/t/debs/deb-format-lzma/tags b/t/debs/deb-format-lzma/tags
new file mode 100644
index 0000000..2adf4af
--- /dev/null
+++ b/t/debs/deb-format-lzma/tags
@@ -0,0 +1 @@
+E: deb-format-lzma: lzma-deb-archive
--
Debian package checker
Reply to: