This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7658b575d978b9c6655854cd6dc1c2de031fdca5

commit 7658b575d978b9c6655854cd6dc1c2de031fdca5
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Wed Mar 20 06:26:45 2019 +0100

    debian: Add a lintian dpkg profile to supress Debian specific tags
    
    This makes it possible to disable tags that are Debian specific, such as
    the controversial tag emitted for vendor-specific patch series files.
---
 Makefile.am                 | 1 +
 debian/changelog            | 3 +++
 debian/dpkg.install         | 1 +
 debian/dpkg.lintian-profile | 7 +++++++
 debian/rules                | 5 +++++
 man/dpkg-source.man         | 5 +++++
 6 files changed, 22 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index f9bfee9ba..231ab999d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,6 +63,7 @@ EXTRA_DIST = \
        debian/dpkg.postrm \
        debian/dpkg.logrotate \
        debian/dpkg.lintian-overrides \
+       debian/dpkg.lintian-profile \
        debian/dselect.cfg \
        debian/dselect.docs \
        debian/dselect.install \
diff --git a/debian/changelog b/debian/changelog
index a5aee75bc..7d7b1e800 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ dpkg (1.19.6) UNRELEASED; urgency=medium
   [ Guillem Jover ]
   * Packaging:
     - Update usertags.
+    - Install a lintian profile for dpkg based on the debian profile, so that
+      we can supress Debian-specific tags, such as the controversial one on
+      vendor-specific patch series files.
 
   [ Updated scripts translations ]
   * German (Helge Kreutzmann).
diff --git a/debian/dpkg.install b/debian/dpkg.install
index 3f51aaaa7..108ca54ef 100644
--- a/debian/dpkg.install
+++ b/debian/dpkg.install
@@ -13,6 +13,7 @@ usr/bin/dpkg-statoverride
 usr/bin/dpkg-trigger
 usr/bin/update-alternatives
 usr/share/dpkg/*table
+usr/share/lintian/profiles
 usr/share/locale/*/LC_MESSAGES/dpkg.mo
 usr/share/polkit-1/actions
 var/lib/dpkg/alternatives
diff --git a/debian/dpkg.lintian-profile b/debian/dpkg.lintian-profile
new file mode 100644
index 000000000..44f2614c0
--- /dev/null
+++ b/debian/dpkg.lintian-profile
@@ -0,0 +1,7 @@
+# This is the dpkg pseudo-vendor profile.
+Profile: dpkg/main
+# It has all the checks and settings from the "debian" profile.
+Extends: debian/main
+# Except the ones that are bogus for the non-Debian distributions.
+Disable-Tags:
+ package-uses-vendor-specific-patch-series,
diff --git a/debian/rules b/debian/rules
index 65e6006d1..a542193fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -96,6 +96,11 @@ install: check
 
        cd build-tree && $(MAKE) DESTDIR=$(D) install
 
+       # Special-case the lintian profile, as dh cannot rename on install.
+       mkdir -p $(D)/usr/share/lintian/profiles/dpkg
+       cp debian/dpkg.lintian-profile \
+          $(D)/usr/share/lintian/profiles/dpkg/main.profile
+
 define dpkg-installmanl10n
 for f in `sed -e 's:\*:*/*:' debian/$(1).manpages`; do \
        test -e $$f && \
diff --git a/man/dpkg-source.man b/man/dpkg-source.man
index 49a162914..502c67311 100644
--- a/man/dpkg-source.man
+++ b/man/dpkg-source.man
@@ -506,6 +506,11 @@ options and always expect patches that can be applied with 
the \fB\-p1\fP
 option of \fBpatch\fP. It will thus emit a warning when it encounters
 such options, and the build is likely to fail.
 .PP
+Note that \fBlintian\fP(1) will emit unconditional warnings when using
+vendor series due to a controversial Debian specific ruling, which should
+not affect any external usage; to silence these, the dpkg lintian profile
+can be used by passing «\fB--profile dpkg\fP» to \fBlintian\fP(1).
+.PP
 The timestamp of all patched files is reset to the extraction time of
 the source package (this avoids timestamp skews leading to problems
 when autogenerated files are patched).

-- 
Dpkg.Org's dpkg

Reply via email to