[enhancement] proposal - make all ports independent of which version of Perl is installed or the major one

Clemens Lang cal at macports.org
Thu May 17 13:27:58 PDT 2012


Hi,

On Thu, May 17, 2012 at 01:16:44PM -0700, Bradley Giesbrecht wrote:
> $ port cat mod_perl2 | grep -A10 -- pre-configure
> pre-configure {
>     set perl5bin "${prefix}/bin/perl5"
>     if {[string first "true" [exec ${perl5bin} -V:useshrplib]] == -1} {
>         ui_error "${name} requires perl5 to be installed with the +shared variant."
>         return -code error "perl5 must be +shared"
>     }
>     if {[string first "define" [exec ${perl5bin} -V:usethreads]] == -1} {
>         ui_error "${name} requires perl5 to be installed with the +threads variant."
>         return -code error "perl5 must be +threads"
>     }
> }

Now that you mention how to check...

> On May 17, 2012, at 1:09 PM, Eric Hall wrote:
> > Can someone re-iterate the reasons for using +shared and/or +threads?

We don't always have to re-invent the wheel. Just go ahead and see what
other distributions are doing with their perl: run
	- perl -MConfig -e "print \$Config{'useshrplib'}" and
	- perl -V:usethreads

Here are some results:
	- Debian stable: perl +shared +threads
	- Ubuntu 11.04: perl +shared +threads
	- Mac OS X (/usr/bin/perl): perl +shared +threads
So the question rather is: Why are we doing things different than the
rest of the world here?

-- 
Clemens Lang



More information about the macports-dev mailing list