perl5.8 fixup

Bradley Giesbrecht brad at pixilla.com
Fri Mar 13 09:20:49 PDT 2009


On Mar 12, 2009, at 4:22 PM, Eric Hall wrote:

> On Thu, Mar 12, 2009 at 03:21:11PM -0700, Bradley Giesbrecht wrote:
>>
>> On Mar 10, 2009, at 5:24 PM, Eric Hall wrote:
>>
>>> [snip]
>>>
>>> 	I've attached a set of patches to:
>>>
>>> 	http://trac.macports.org/ticket/12950#comment:14
>>>
>>> 	for testing.  So far so good for me.
>>>
>>>
>>> 		-eric
>>
>> Eric, it appears that changing the man1dir and man3dir to man1p and
>> man3p causes these man dirs to be searched after all the man1 and  
>> man3
>> dirs in the search path. I didn't explain that well so I'll try  
>> again.
>>
>> I think man must be searching all the man0 though man9 dirs before
>> searching man1p and man3p. Or something like it.
>
>
> 	Again, see /etc/man.conf, in particular the MANSECT line.

I have. So what am I supposed to see that's relevant to apple man  
pages showing up before perl5.8 man pages?

>> /usr/share/man/man3/CGI.3pm.gz is found before /opt/local/share/
>> perl5.8/man/man3p/CGI.3pm even when MANPATH looks like this:
>>
>> /opt/local/share/man:/usr/share/man:/usr/X11/man:/usr/local/share/man
>>
>> I'm not saying I like this solution but changing the Portfile to add
>> perl5.8/man:
>>   -D man1dir='${prefix}/share/perl5.8/man/man1' \
>>   -D man3dir='${prefix}/share/perl5.8/man/man3' \
>>   -D siteman1dir='${prefix}/share/man/man1' \
>>   -D siteman3dir='${prefix}/share/man/man3' \
>>   -D vendorman1dir='${prefix}/share/man/man1' \
>>   -D vendorman3dir='${prefix}/share/man/man3'
>>
>> and making my MANPATH look like:
>>
>> /opt/local/share/man:/opt/local/share/perl5.8/man:/opt/local/man:/ 
>> usr/
>> share/man:/usr/X11/man:/usr/local/share/man
>>
>> causes perl5.8 module man pages to be found before apple installed  
>> man
>> pages.
>
> 	I really don't like changing MANPATH, its auto-generated
> (for the most part) and I think that's a Good Thing(tm).  Forcing
> people to set a MANPATH will result in breakage.
>
> 	I agree it'd be better to get the MP installed man pages
> first - that does happen for p5-* installed man pages, but
> not for the base perl5.8 installed man pages.  I think that's
> an acceptable loss, though not ideal.


I'm not quick to agree.

If no p5 modules are installed we get apples perl module man pages?
That doesn't sound good. Apples perl modules could be many versions  
different.

By moving the perl5.8 man pages at least there is the option to have  
man show the port perl5.8 man pages first by adding to MANPATH. If you  
don't add to MANPATH you get the apple man pages.

Since freebsd ships with perl but allows you to install ports perl do  
you know how they handle it?

I'm going to log into a freebsd server and find out.


//Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090313/0def94f1/attachment.html>


More information about the macports-dev mailing list