Re: dpkg install-info bug

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.core
Organization Fink Core Team
Message-ID <[email protected]>
On 7/9/12 11:08 AM, Max Horn wrote:
> Hi there,
> 
> I was looking into packaging automake 1.12.1, whose test suite was experiencing several failures. While investigating these, I noticed the source of that: Our install-info is not patched to adjust to the PREFIX Fink is installed to. This seems like a pretty serious (albeit ancient) bug to me. My guess is that this was mostly hidden in older OS X and Fink versions, which were building as root. (Though even then I am surprised this never caused any problem... ?).
> 
> Anyway, so /sw/sbin/install-info from dpkg contains this code:
> ...
> $infodir='/usr/share/info';
> $maxwidth=79;
> $Text::Wrap::columns=$maxwidth;
> $backup='/var/backups/infodir.bak';
> $default='/usr/share/base-files/info.dir';
> ...
> 
> It is telling that Fink itself works around this by always invoking install-info with an "--infodir=%p/share/info" argument... I really wonder why that was done, instead of patching install-info... ? Anyway, here is the suggested patch:
> 
> -$infodir='/usr/share/info';
> +$infodir='@PREFIX@/share/info';
>  $maxwidth=79;
>  $Text::Wrap::columns=$maxwidth;
> -$backup='/var/backups/infodir.bak';
> -$default='/usr/share/base-files/info.dir';
> +$backup='@PREFIX@/var/backups/infodir.bak';
> +$default='@PREFIX@/share/base-files/dir-base';
> 
> 
> Now I could push this change to 10.4 and 10.7 as well as the fink package manager module. But since this is a central piece of our infrastructure, of course I am not going to make such a change before getting some feedback. So, feedback away, please :).
> 
> 
> Cheers,
> Max

Or, you could push it to a branch of fink master and people could check
it out and test it. :-)


-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
fink-core mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.core
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.