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

Bug#642833: [checks/source-copyright] use Config::Model



On 2011-09-25 20:17, Jakub Wilk wrote:
| * jari <jari.aalto@cante.net>, 2011-09-25, 15:19:
| >|>       run config-edit -application dpkg-copyright -ui none
|
| >File debian/copyright exerpt:
| >
| >   ...
| >
| >   X-Note: info
| >   License: GPL-2+
| >    This package is free software; you can redistribute it and/or modify
| >    it under the terms of the GNU General Public License as published by
| >
| >Error
| >
| > Configuration item 'Files:"*" License short_name' has a wrong value:
| > license GPL-2+ is not declared in main License section. Expected
| > ...
| 
| I don't see anything[0] wrong with the copyright file you attached,

It is just that config-edit displayd the error, which didn't show up
in lintian.

When I tried to reproduce the error (I didn't exactly reemeber where
it occurred), I manufactured a test case like this to the file sent in
previous message:

   X-Note: info
   License: GPL-2+

| and the error message in incomprehensible to me. (We probably don't
| want such cryptic messages in lintian...)
| 
| Care to explain us why Config::Model complains?

Not Config::Model, but config-edit, Lintian does not display messages
for the sample file.
 
| [0] Except that you shouldn't use X-prefixed fields. But that's not
| a syntax error.

Not quite. Apart from being useful to record additional information
about the upstream Vcs, bug contact URL etc, the extra fields are part
of the DEP 5 spec as it was modeled after RFC 822/2822. From DEP 5:

    http://dep.debian.net/deps/dep5

    FILE SYNTAX

    (...) Extra fields can be added to any paragraph. No prefixing is
    necessary or desired, but please avoid names similar to standard
    ones so that mistakes are easier to catch.

See also how DEP 5 work was carried forwad:

    http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=100

    Extra fields can be added to any section. Their name starts by **`X-`

Jari



Reply to: