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

Bug#998282: Please make Section a required field for the source paragraph in d/control



Hi David,

On Thu, Nov 4, 2021 at 7:14 AM David Bremner <david@tethera.net> wrote:
>
> do you have some numbers

According to Lintian [1] all sources among the 33,721 sources in
unstable and experimental—except perhaps the ones listed below—have a
Section field in the source stanza of d/control. [2]

You can see for yourself by querying our JSON interface [3] with this command:

    wget -O no-source-section.hints
'https://lintian.debian.net/query/contexts?tag=no-source-section'

It returns an empty array: []

The following sources were not checked (for resource reasons):

    - firefox
    - firefox-esr
    - linux
    - llvm-toolchain-9
    - llvm-toolchain-10
    - llvm-toolchain-11
    - llvm-toolchain-snapshot
    - nvidia-cuda-toolkit
    - thunderbird

I believe the tag functions properly because there is a unit test for
it. [4] [5]

Kind regards
Felix Lechner

[1] https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Control/Field/Section.pm
[2] https://lintian.debian.org/tags/no-source-section
[3] https://lintian.debian.org/query
[4] https://salsa.debian.org/lintian/lintian/-/blob/master/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/debian/control.in
[5] https://salsa.debian.org/lintian/lintian/-/blob/master/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints


Reply to: