Opened 12 years ago

Closed 12 years ago

#35976 closed defect (invalid)

PortGroup: perl5 1.0

Reported by: pixilla (Bradley Giesbrecht) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port:

Description

The perl5 1.0 PortGroup does not currently handle module versions ending with multiple non-digits.

1.03ii becomes @1.3.{}_0

Attachments (2)

patch-perl5-1.0-alpha-ending-vers.diff (872 bytes) - added by pixilla (Bradley Giesbrecht) 12 years ago.
Strip non-digits and dots from end of ver then add them to the end of the return.
Portfile (1.6 KB) - added by pixilla (Bradley Giesbrecht) 12 years ago.
Example port

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by pixilla (Bradley Giesbrecht)

Strip non-digits and dots from end of ver then add them to the end of the return.

Changed 12 years ago by pixilla (Bradley Giesbrecht)

Attachment: Portfile added

Example port

comment:1 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: invalid
Status: newclosed

Josh had this to say on the mailing list:

This code mimics the 'normal' formatting in perl's version module, which
actually raises an error in this case:

% perl -Mversion -le '$v=version->new("1.03ii")->normal; print $v'
Invalid version format (non-numeric data) at -e line 1.

This suggests that 1.03ii is not a valid version for a perl module.

Found this perldoc.perl.org documentation confirming this is an invalid perl module version.

Note: See TracTickets for help on using tickets.