#977322 Following advice of cute-field tag for X-DhRuby-Root breaks build

#977322#5
Date:
2020-12-13 23:27:20 UTC
From:
To:
Lintian now emits the following pedantic tag for packages using
X-DhRuby-Root:

P: remctl source: cute-field debian/control@ruby-remctl X-DhRuby-Root vs X-Dhruby-Root
N:
P: cute-field
N:
N:   The named field uses a free-style form of capitalization, which is
N:   permitted by policy. The alternative offered is probably a more common
N:   variant in the archive.
N:
N:   Refer to Debian Policy Manual section 5.1 (Syntax of control files)
N:   for details.
N:
N:   Severity: pedantic
N:
N:   Check: fields/style

However, following this advice breaks the Ruby package tooling.  The
build products are not copied into the package correctly and the resulting
package is empty.  Apparently the Ruby package tooling requires that
specific capitalization.

This is with gem2deb 1.4.

#977322#10
Date:
2020-12-13 23:37:12 UTC
From:
To:
Russ Allbery <rra@debian.org> writes:
3.17-1 version of remctl that I'm about to upload, and I'm fairly sure
that you'll see the same with 3.16-4, which is currently in the archive.
(I don't think anything will change between those versions.)

#977322#15
Date:
2021-10-28 09:02:23 UTC
From:
To:
Bug still persists in lintian/2.110.0 when building with gem2deb/1.6.
Spotted when attempting to get rid of "X-DhRuby-Root vs X-Dhruby-Root"
hint from spglib/1.16.2-1.

Andrius

#977322#22
Date:
2024-02-22 14:11:35 UTC
From:
To:
Control: clone -1 -2
Control: retitle -2 gem2deb: Case sensitive handling of d/control
Control: reassign -2 gem2deb

Hi

On one end, I do not think `lintian` decides the canonical case /
spelling of a field. In that sense, I feel this bug is valid.

On the flip side, gem2deb does not follow the deb822 if field name case
matters. The format is defined as case-insensitive.

"""
Field names are not case-sensitive, but it is usual to capitalize the
field names using mixed case as shown below. Field values are
case-sensitive unless the description of the field says otherwise.
"""

Cloned and reassigned accordingly.

Best regards,
Niels