Opened 12 years ago

Last modified 12 years ago

#34723 closed defect

p5*: it is likely the distributable perl modules do not work with perl5 +threads — at Version 2

Reported by: pixilla (Bradley Giesbrecht) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: ricci@…, ryandesign@…
Port: perl5.12

Description (last modified by pixilla (Bradley Giesbrecht))

Perl compiled with +threads uses a different module dir:

$ find /opt/local/lib/perl5/vendor_perl/5.12.4/darwin-* -type d -maxdepth 0
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level

Should all perl5 modules not be distributable?

Example: p5.12-xml-parser

$ port -q installed perl5.12 and active
  perl5.12 @5.12.4_0+shared+threads+universal (active)

$ sudo port -n upgrade --force p5.12-xml-parser
$ port -q contents p5.12-xml-parser | head -n1
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm

$ sudo port -ns upgrade --force p5.12-xml-parser
$ port -q contents p5.12-xml-parser | head -n1
  /opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level/XML/Parser.pm

Change History (2)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ricci@… ryandesign@… added

I assume the last two lines of your example transcript above are transposed?

I believe in the discussion on the mailing list we decided that nobody could remember why we weren't always building with threads, that Apple and other UNIX OS distributions use threads in their perl distribution, and that we should do so as well, and remove the option to not do so.

comment:2 in reply to:  1 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Description: modified (diff)

Replying to ryandesign@…:

I assume the last two lines of your example transcript above are transposed?

Corrected. Thanks.

Note: See TracTickets for help on using tickets.