#1017064 lintian: incorrectly complains about adopted-extended-field XB-Ruby-Versions

Package:
lintian
Source:
lintian
Submitter:
Francesco Poli (wintermute)
Date:
2026-09-12 17:51:02 UTC
Severity:
normal
#1017064#5
Date:
2022-08-12 16:03:50 UTC
From:
To:
Hello,
this could be due to an incomplete fix for bug #999768 or maybe it
is caused by some other bug.

Anyway, I have:

  $ grep -n Ruby-Versions debian/control
  9:XS-Ruby-Versions: all
  16:XB-Ruby-Versions: ${ruby:Versions}

in my package ('apt-listbugs').

Running "lintian -EviIL +pedantic" on the .changes file generates
the following reports:

  N:
  W: apt-listbugs source: unknown-field Ruby-Versions
  N:
  N:   See the Policy Manual for a list of the possible fields in a package
  N:   control files.
  N:
  N:   Please refer to Binary package control files – DEBIAN/control (Section
  N:   5.3) in the Debian Policy Manual and Debian source control files – .dsc
  N:   (Section 5.4) in the Debian Policy Manual for details.
  N:
  N:   Visibility: warning
  N:   Show-Always: no
  N:   Check: fields/unknown
  N:   Renamed from: unknown-field-in-dsc unknown-field-in-control
  N:
  N:
  I: apt-listbugs source: adopted-extended-field (in section for apt-listbugs) XB-Ruby-Versions [debian/control:16]
  N:
  N:   A field in debian/control has an extension prefix but is also known
  N:   without it.
  N:
  N:   Extension prefixes like XS-* or XC-* allow experimental fields to
  N:   propagate to the right place when packages are built with dpkg. In this
  N:   case, however, the field is also known without the prefix. In all
  N:   likelihood the field was permanently adopted, and dpkg learned how to deal
  N:   with it.
  N:
  N:   Please consider removing the extension prefix for the field name.
  N:
  N:   Visibility: info
  N:   Show-Always: no
  N:   Check: debian/control/field/adopted
  N:   Renamed from: xc-package-type-in-debian-control
  N:   xs-testsuite-field-in-debian-control xs-vcs-field-in-debian-control
  N:


Both reports look wrong, since I have no plain 'Ruby-Versions'
field in my package source, and 'XB-Ruby-Versions' has not been
adopted, thus requiring the 'XB-' prefix.

Please fix this bug in lintian.
Thanks for your time and patience!

#1017064#10
Date:
2022-10-09 17:29:30 UTC
From:
To:
On Fri, 12 Aug 2022 18:03:50 +0200 Francesco Poli (wintermute) wrote:

[...]

This bug is still present in the lintian version currently in sid.
Please fix it.

#1017064#17
Date:
2022-12-27 15:53:27 UTC
From:
To:
On Sun, 9 Oct 2022 19:29:30 +0200 Francesco Poli wrote:

[...]

Hello again,
XS-Ruby-Versions and XB-Ruby-Versions are now deprecated, see the
changelog entry for package [gem2deb/2.1].

[gem2deb/2.1]: <https://tracker.debian.org/news/1392420/accepted-gem2deb-21-source-into-unstable/>

As a consequence, I think that lintian should no longer point out that
either of those two fields is adopted (which is not the case), but, if
anything, it should point out that those two fields are deprecated and
need to be dropped...

Do you agree? Please let me know.

Thanks for your time and patience.
Bye (and Season's Greetings!).

#1017064#22
Date:
2026-08-04 18:36:26 UTC
From:
To:
Hello,

The latest release tried to fix this completely. But even then, I can't see this with
older release either.

https://udd.debian.org/lintian-tag/unknown-field?affected=yes does not list even a single
package with Ruby-Versions.

I took an example of src:hiera package which has XB-Ruby-Versions declared and I do not
see this hint being emitted in the lintian run with version 2.138.0, at the time of
writing this mail.

See https://udd.debian.org/lintian/?email1=&email2=&email3=&packages=hiera&ignpackages=&format=html<_error=on<_warning=on<_information=on<_pedantic=on<_experimental=on<_overridden=on&lintian_tag=#all

So I think this got fixed at some point, unsure of the timeline. Hence, I am closing this bug.

If you are still able to reproduce this, please re-open this bug.

Thank you for reporting,
Nilesh

#1017064#27
Date:
2026-08-04 21:04:29 UTC
From:
To:
Control: found -1 lintian/2.138.0

Hi, thanks for following up on this bug report.

Maybe I am misinterpreting what you mean, but I see the complaint `adopted-extended-field` being emitted by `lintian/2.138.0` for package `src:hiera`.

And it seems to me that it is [emitted] for a number of other packages
having `XB-Ruby-Versions` set in their control file. For instance,
packages `batalert`, `bio-vcf`, `fontcustom`, many `ruby-*` package,
and so forth...

[emitted]: <https://udd.debian.org/lintian-tag/adopted-extended-field?affected=yes>

It seems that `lintian/2.138.0` runs are still able to emit the
complaint `adopted-extended-field`, when finding field
`XB-Ruby-Versions` in the control file.

As I [said], I think that lintian should now point out that the two
fields `XS-Ruby-Versions` and `XB-Ruby-Versions` are deprecated and
need to be dropped...

[said]: <https://bugs.debian.org/1017064#17>

Do you agree?

#1017064#34
Date:
2026-08-05 04:42:49 UTC
From:
To:
Control: reopen -1
Control: found -1 lintian/2.139.0

D'oh! You are indeed right. I did not look properly here and was looking at the wrong tag.
It is reproducible even in the latest upload. The attempt to unify
source and binary control fields is leading to all of this.

Yes, but please file a separate bug report for this.

Best,
Nilesh

#1017064#41
Date:
2026-08-26 22:01:49 UTC
From:
To:
On Wed, 5 Aug 2026 10:12:49 +0530 Nilesh Patra wrote:

[...]

Done, it's bug [#1145776].
Bye!

[#1145776]: <https://bugs.debian.org/1145776>

#1017064#46
Date:
2026-09-12 15:10:01 UTC
From:
To:
Hello,

Bug #1017064 in lintian reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/lintian/lintian/-/commit/ae29752b8813b9e677aaca212e63dce05b02aeb6
This is similar to the fix done for the fields of the source stanza in

https://salsa.debian.org/lintian/lintian/-/commit/97b9e042c06487b27b383a5ee010fb1788e77731
https://salsa.debian.org/lintian/lintian/-/commit/ac93c6a22e
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1017064

#1017064#51
Date:
2026-09-12 16:26:04 UTC
From:
To:
Hello,

Bug #1017064 in lintian reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/lintian/lintian/-/commit/ae29752b8813b9e677aaca212e63dce05b02aeb6
This is similar to the fix done for the fields of the source stanza in

https://salsa.debian.org/lintian/lintian/-/commit/97b9e042c06487b27b383a5ee010fb1788e77731
https://salsa.debian.org/lintian/lintian/-/commit/ac93c6a22e
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1017064

#1017064#56
Date:
2026-09-12 17:49:39 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
lintian, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1017064@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Louis-Philippe Véronneau <pollo@debian.org> (supplier of updated lintian package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 12 Sep 2026 12:38:47 -0400
Source: lintian
Architecture: source
Version: 2.141.0
Distribution: unstable
Urgency: medium
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Changed-By: Louis-Philippe Véronneau <pollo@debian.org>
Closes: 1017064 1145776 1147142 1147187 1147483
Changes:
 lintian (2.141.0) unstable; urgency=medium
 .
   [ Louis-Philippe Véronneau ]
   * Remove deprecated XS-Python-Version and X-Python-Version fields
 .
   [ Nilesh Patra ]
   * Lintian::Screen::Python::Egg::Metadata - Do not check for `WHEEL` in
     `dist-info` (Closes: #1147187)
   * Lintian::Check::Documentation - Drop `dist-info` related files from
     `NOT_DOCUMENTATION_FILE_REGEXES` and fix condition for exclusion of these.
     Thanks to Lucas Nussbaum <lucas@debian.org>
   * Rename Golang/ImportPath.pm -> Golang/ModulePath.pm to incorporate for
     more module path related checks
   * new tags: "go-library-package-does-not-include-version" and
     "go-source-package-does-not-include-version" (Closes: #1147142)
   * new tag: deprecated-debian-control-field (Closes: #1145776)
   * Change severity level of `no-dep5-copyright` to `warning` (Closes:
     #1147483)
   * Unknown.pm, data: Add XB- prefixes for binary stanza fields in `data/` and
     remove XB-* prefix in known binary fields checking for unknown fields
     (Closes: #1017064)
   * tags/tests/checks: Minor fixes in URLs (See: #1146466)
 .
   [ Scott Talbert ]
   * Add more GHC path exclusions to RPATH check
 .
   [ Lucas Nussbaum ]
   * Trim spelling text with builtin::trim
   * Remove unused ELF section header fields
   * Drop bignum for the ELF section Size decoding
 .
   [ Sylvestre Ledru ]
   * Precompile the provider regexes for Javascript/Embedded.pm, Php/Embedded.pm
     and Php/Pear/Embedded.pm.
   * Documentation.pm: match the file name lists as compiled regexes
   * Spelling.pm: gate the multi-word corrections on a single regex
Checksums-Sha1:
 0aa6b8a008fe111be27fd9d8be5185ff4d21af5e 3694 lintian_2.141.0.dsc
 c05d05f10626fed4eedb8397e725faf0170f2634 2079044 lintian_2.141.0.tar.xz
 3b7d95797cf3b473af90b48806bd7456dc0a831d 21231 lintian_2.141.0_amd64.buildinfo
Checksums-Sha256:
 a907ec9a63f3d67ac6f83c1f90e28242a4169e428f08c233bdc1c6eaf6066d2c 3694 lintian_2.141.0.dsc
 c92ae6ca1e42bc9800292e0e108433c769f89c524531b9acb63603d1d4b134b5 2079044 lintian_2.141.0.tar.xz
 4e9316668b4562dffeb1e9d89d2a8323f64ef9bde349f75e575042063d970194 21231 lintian_2.141.0_amd64.buildinfo
Files:
 bbe1099f86ce349acb30e38f30d5ce08 3694 devel optional lintian_2.141.0.dsc
 e3b56954d0f301cda8e4607632fbde66 2079044 devel optional lintian_2.141.0.tar.xz
 581d1dfb7b1fa4eae49858d67a226340 21231 devel optional lintian_2.141.0_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTKp0AHB6gWsCAvw830JXpQshz6hQUCaqWK9AAKCRD0JXpQshz6
hcWUAP9LutZw8e4cVmoLknNwFW2i69W9Bb9dBB2Y2M7jANSC9AEAzOaoVFpHTywN
VgRIiUWHaz0p8oZvKWYA6sRJH+wioQc=
=G5Ev
-----END PGP SIGNATURE-----