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

Bug#802718: marked as done (lintian: Blank lines in a vendor profile cause errors for valid lines)



Your message dated Mon, 16 Dec 2019 21:54:22 -0800
with message-id <CAFHYt56SegLwibeyZuFK2n-46VUE_u9Hnm9eRpU7nDSmVJfS4A@mail.gmail.com>
and subject line Lintian profile format is different
has caused the Debian Bug report #802718,
regarding lintian: Blank lines in a vendor profile cause errors for valid lines
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
802718: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802718
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian
Version: 2.5.30+deb8u4
Severity: normal

Dear Maintainer,

  I created a vendor profile named main.profile with the following lines:

#start of profile file
Profile: test/main

Extends: debian/main
Disable-Tags: dir-or-file-in-opt
#end of profile file

I placed that file in the directory ~/.lintian/profiles/test

then ran:

  lintian --profile test {path to a .deb file}

The output was:

Unknown field "disable-tags" in test/main (section 2) at /usr/bin/lintian line 979.

If I remove the single blank line from the main.profile file, and run the lintian
command again, the command succeeds.

The vendor profile example given in section 2.5.2.3 of the lintian documentation
has a blank line in it.  Also given that the man page for lintian says the
 --tags-from-file and --suppress-tags-from-file options both ignore blank
lines, I was expecting vendor profiles to do the same.

I am assuming this is not the indended outcome, and is therefore a bug.

In case it is of interest, I first discovered this on a system running
debian wheezy, and lintian version 2.5.10.4 (the outcome was the same
both on wheezy and jessie).

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Hi DJ,

> Yes, this is intentional behaviour.  The profile must satisfy the format
> of the "deb822" format.

As Niels explained, the first paragraph in the profile format has
special meaning and may not be interrupted with blank lines. The
profile works as intended (although the error message could be
improved). Closing this bug.

Kind regards
Felix Lechner

--- End Message ---

Reply to: