[MacPorts] #43727: perl5 1.0 portgroup cannot handle version numbers with characters
#43727: perl5 1.0 portgroup cannot handle version numbers with characters --------------------+-------------------------------- Reporter: mf2k@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.1 Keywords: | Port: --------------------+-------------------------------- The perl5 1.0 portgroup has a bug where it cannot handle a version number with non-numeric characters in it. See the p5-sgmlspm port as an example. The version it produced was: {{{ p5.16-sgmlspm @1.3.{}_0 (active) }}} The issue exists in {{{proc perl5_convert_version}}}. -- Ticket URL: <https://trac.macports.org/ticket/43727> MacPorts <http://www.macports.org/> Ports system for OS X
#43727: perl5 1.0 portgroup cannot handle version numbers with characters ---------------------+-------------------------------- Reporter: mf2k@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.1 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by ryandesign@…): I guess the reason for this is that perl module version numbers are not supposed to have non-numeric characters in them. The author of the affected perl module should be advised of this. -- Ticket URL: <https://trac.macports.org/ticket/43727#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43727: perl5 1.0 portgroup cannot handle version numbers with characters ---------------------+-------------------------------- Reporter: mf2k@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.1 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by dluke@…): Replying to [comment:1 ryandesign@…]:
I guess the reason for this is that perl module version numbers are not supposed to have non-numeric characters in them. The author of the affected perl module should be advised of this.
Looks like the last update to that module on CPAN is from 1995, so it seems unlikely that it will get updated/fixed. -- Ticket URL: <https://trac.macports.org/ticket/43727#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43727: perl5 1.0 portgroup cannot handle version numbers with characters ---------------------+-------------------------------- Reporter: mf2k@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.1 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by pixilla@…): I wrote this patch a while back, seems to work ok. {{{ $ port -q installed p5.16-sgmlspm p5.16-sgmlspm @1.30.0ii_1 (active) }}} -- Ticket URL: <https://trac.macports.org/ticket/43727#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43727: perl5 1.0 portgroup cannot handle version numbers with characters ---------------------+-------------------------------- Reporter: mf2k@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.1 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by mf2k@…): Unfortunately, I do not think that version number is correct for p5-sgmlspm. According to [http://search.cpan.org/dist/SGMLSpm/ that port's homepage], the version is "1.03ii". In the p5-sgmlspm Portfile, I manually set it to "1.03ii.0". -- Ticket URL: <https://trac.macports.org/ticket/43727#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43727: perl5 1.0 portgroup cannot handle version numbers with characters ----------------------+-------------------------------- Reporter: mf2k@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: wontfix | Keywords: Port: | ----------------------+-------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => wontfix * component: base => ports Comment: Yeah, this isn’t really a bug, the version number is invalid. Perl rejects it: {{{ % perl -Mversion -e 'print version->parse("1.03ii")->normal' Invalid version format (non-numeric data) at -e line 1. }}} I’d suggest just setting your own version in such cases. -- Ticket URL: <https://trac.macports.org/ticket/43727#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts