Package: lintian Version: 2.5.36.1 Severity: wishlist Tags: patch Hello, When it comes to to relative package dependencies, I grew into the habit to make them backports-friendly, i.e. use version numbers with the tilde character appended. For reasons of simplicity even when they are very likely never used. So I prefer to write Depends: foo (>> 1.0~) alternatively: ">= 1.0~" instead of Depends: foo (>= 1.0) which by the way also allows me to avoid the >= and <= operators at all, different story. However, lintian does not appreciate this approach: Since I use Build-Profiles in one of my packages, I added a dependency on Build-Depends: debhelper (>= 9.20141010~) which triggers the restriction-formula-with-debhelper-without-debhelper-version warning. Would you mind relaxing check a bit? The patch below worked for me although a few places in checks/fields.pm might deserve an according change, too. Christoph -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.1.6 (SMP w/4 CPU cores; PREEMPT) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages lintian depends on: ii binutils 2.25.1-1 ii bzip2 1.0.6-8 ii diffstat 1.60-1 ii file 1:5.22+15-2 ii gettext 0.19.4-1 ii hardening-includes 2.7 ii intltool-debian 0.35.0+20060710.2 ii libapt-pkg-perl 0.1.29+b2 ii libarchive-zip-perl 1.49-1 ii libclass-accessor-perl 0.34-1 ii libclone-perl 0.38-1 ii libdpkg-perl 1.18.2 ii libemail-valid-perl 1.196-1 ii libfile-basedir-perl 0.07-1 ii libipc-run-perl 0.94-1 ii liblist-moreutils-perl 0.413-1 ii libparse-debianchangelog-perl 1.2.0-8 ii libtext-levenshtein-perl 0.12-1 ii libtimedate-perl 2.3000-2 ii liburi-perl 1.69-1 ii man-db 2.7.2-1 ii patchutils 0.3.4-1 ii perl [libdigest-sha-perl] 5.20.2-6 ii t1utils 1.38-4 ii xz-utils 5.1.1alpha+20120614-2.1 Versions of packages lintian recommends: ii dpkg 1.18.2 pn libperlio-gzip-perl <none> ii perl 5.20.2-6 ii perl-modules [libautodie-perl] 5.20.2-6 Versions of packages lintian suggests: pn binutils-multiarch <none> ii dpkg-dev 1.18.2 ii libhtml-parser-perl 3.71-2 ii libtext-template-perl 1.46-1 ii libyaml-perl 1.13-1 -- no debconf information diff --git a/checks/control-file.pm b/checks/control-file.pm index 32d2f8e..37757ff 100644 --- a/checks/control-file.pm +++ b/checks/control-file.pm @@ -359,14 +359,14 @@ sub run { my $build_all = $info->relation('build-depends-all'); my $build_conflicts_all = $info->relation('build-conflicts-all'); tag 'restriction-formula-without-versioned-dpkg-dev-dependency' - unless ($build_all->implies('dpkg-dev (>= 1.17.14)')); + unless ($build_all->implies('dpkg-dev (>= 1.17.14~)')); tag 'restriction-formula-with-versioned-dpkg-dev-conflict' if ($build_conflicts_all->implies_inverse('dpkg-dev (<< 1.17.14)')); # if the package uses debhelper then it must require and not # conflict with version >= 9.20141010 if ($build_all->implies('debhelper')) { tag 'restriction-formula-with-debhelper-without-debhelper-version' - unless ($build_all->implies('debhelper (>= 9.20141010)')); + unless ($build_all->implies('debhelper (>= 9.20141010~)')); #<<< no tidy, tag name too long tag 'restriction-formula-with-debhelper-with-conflicting-version' #>>>
Attachment:
signature.asc
Description: Digital signature