Nilesh Patra pushed to branch master at lintian / lintian


Commits:
c35c0687 by Louis-Philippe Véronneau at 2026-07-10T22:38:09-04:00
lzma is not supported by DAK, either in Debian or Ubuntu

- - - - -
01fd9f27 by Louis-Philippe Véronneau at 2026-07-10T22:38:12-04:00
Remove 'lzma-deb-archive' and 'uses-deprecated-compression-for-data-tarball' 
tags

These tags now duplicate the behavior of the 'malformed-deb-archive' tag, while
being at the same error level.

- - - - -


7 changed files:

- data/deb-format/data-compressions
- lib/Lintian/Check/DebFormat.pm
- profiles/ubuntu/main.profile
- t/recipes/checks/deb-format/deb-format-lzma/eval/hints
- t/recipes/checks/deb-format/deb-format-malformed/eval/hints
- − tags/l/lzma-deb-archive.tag
- − tags/u/uses-deprecated-compression-for-data-tarball.tag


Changes:

=====================================
data/deb-format/data-compressions
=====================================
@@ -2,5 +2,4 @@
 gz
 xz
 bz2
-lzma
 @if-vendor-is ubuntu zst


=====================================
lib/Lintian/Check/DebFormat.pm
=====================================
@@ -180,14 +180,6 @@ sub installable {
                 && $data_member !~ m/^data\.tar\.[gx]z$/) {
                 $self->hint(
                     'udeb-uses-unsupported-compression-for-data-tarball');
-            } elsif ($data_member eq 'data.tar.lzma') {
-                $self->hint('uses-deprecated-compression-for-data-tarball',
-                    'lzma');
-                # Ubuntu's archive allows lzma packages.
-                $self->hint('lzma-deb-archive');
-            } elsif ($data_member eq 'data.tar.bz2') {
-                $self->hint('uses-deprecated-compression-for-data-tarball',
-                    'bzip2');
             } elsif ($data_member eq 'data.tar') {
                 $self->hint('uses-no-compression-for-data-tarball');
             }


=====================================
profiles/ubuntu/main.profile
=====================================
@@ -4,7 +4,6 @@ Extends: debian/main
 Disable-Tags:
  bugs-field-does-not-refer-to-debian-infrastructure
  debian-changelog-file-is-a-symlink
- lzma-deb-archive
  mail-address-loops-or-bounces
  maintainer-upload-has-incorrect-version-number
  no-human-maintainers


=====================================
t/recipes/checks/deb-format/deb-format-lzma/eval/hints
=====================================
@@ -1,4 +1,3 @@
-deb-format-lzma (binary): uses-deprecated-compression-for-data-tarball lzma
-deb-format-lzma (binary): lzma-deb-archive
+deb-format-lzma (binary): malformed-deb-archive third (official) member 
data.tar.lzma not data.tar.(gz|xz|bz2)
 deb-format-lzma (binary): data-tarball-compression-format lzma
 deb-format-lzma (binary): control-tarball-compression-format gz


=====================================
t/recipes/checks/deb-format/deb-format-malformed/eval/hints
=====================================
@@ -1,3 +1,3 @@
-deb-format-malformed (binary): malformed-deb-archive third (official) member 
data.tar.Z not data.tar.(gz|xz|bz2|lzma)
+deb-format-malformed (binary): malformed-deb-archive third (official) member 
data.tar.Z not data.tar.(gz|xz|bz2)
 deb-format-malformed (binary): data-tarball-compression-format Z
 deb-format-malformed (binary): control-tarball-compression-format gz


=====================================
tags/l/lzma-deb-archive.tag deleted
=====================================
@@ -1,6 +0,0 @@
-Tag: lzma-deb-archive
-Severity: error
-Check: deb-format
-Explanation: 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.


=====================================
tags/u/uses-deprecated-compression-for-data-tarball.tag deleted
=====================================
@@ -1,12 +0,0 @@
-Tag: uses-deprecated-compression-for-data-tarball
-Severity: error
-Check: deb-format
-Explanation: The data portion of this binary package uses a deprecated 
compression
- format. Although dpkg will support extracting such binary packages for
- the foreseeable future, creating them will eventually be disallowed. A
- warning is emitted for lzma since dpkg 1.16.4, and for bzip2 since dpkg
- 1.17.7.
- .
- For lzma, xz is the direct replacement. For bzip2 either gzip or xz can
- be used as a substitute, depending on the wanted properties: gzip for
- maximum compatibility and speed, and xz for maximum compression ratio.



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/compare/51fe6cd9d07d60010a85165b0adc703668521a93...01fd9f2767723bc37b4335847ab1ec2682f33c9c

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/compare/51fe6cd9d07d60010a85165b0adc703668521a93...01fd9f2767723bc37b4335847ab1ec2682f33c9c
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


Reply via email to