[Rpm-maint] [PATCH] perl.{prov,req} improvments

Jerome Quelin jquelin at gmail.com
Thu Sep 18 06:38:16 UTC 2014

On 14/09/17 10:53 +0200, Thierry Vignaud wrote:
> >> support-for-_-in-perl-module-version.diff:
> >> support for _ in perl module version
> >
> > This looks fairly obvious, too obvious in fact. Makes me wonder if its being
> > omitted on purpose, but I've not a "perl person" and haven't got a clue
> > about perl conventions. Ville (or others), thoughts?
> I'll let Jerome explain.

Perl allows _ in numbers to separate thousands.

    $ perl -E 'say 1_000'

(in fact, it can be used wherever one wants in a number:
    $ perl -E 'say 1_00'

This is allowed also in versions, so cpan authors often use 1.20_01 or
1.200_001 to have something that looks like semver (x.y.z) but is still
parsed as a regular number. (yes, versioning sucks - I already wrote
about it here
and that's why we are sanitizing perl version numbers within mageia)

This patch only acknowledges this fact, and allows _ in versions.


More information about the Rpm-maint mailing list