Re: Tiger and libreadline
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Fink has a patch line Bill Northcott _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 01/05/2005, at 6:56 PM, Martin Costabel wrote: Many GNU packages rely on libreadline. It seems that in Darwin there is a BSD libedit, which is symlinked as libreadline and has a corresponding readline.h. This breaks Octave and probably other builds. Yes, this is annoying, but it fits into the pattern of Apple first putting a broken version of a new open source package into OSX (there are quite a few historical examples for this). A correct version can probably be expected for the OSX release "Sabre-tooth cat" :-) The Tiger version is neither broken nor 'incorrect'. It does what it says on the tin. It is however the BSD version not the GNU version. If the GNU readline is installed in /usr/local, is there a preferred way to ensure that configure scripts pick it up? perl -pi -e 's|LIBREADLINE=\"-lreadline|LIBREADLINE=\"-L%p/lib - lreadline|g' mkoctfile in its octave package description for Tiger. Replace %p by /usr/ local in your case. Actually by default /usr/local/lib should be searched before /usr/lib and /usr/local/include before /usr/ include, so this shouldn't even be necessary in your case. At link time -lreadline will pick up the GNU version, but the problem is the in the configuration file. Also I believe I believe in fixing once and fixing properly, not maintaining a massive and growing database of patches like Fink. I think the answer is to use a use an autoconf macro like the one in R, which clearly differentiates between the BSD and GNU versions of readline. The current Octave macro will likely break on a number of other UNIXen. This email sent to site_archiver@lists.apple.com
participants (1)
-
Bill Northcott