[Xapian-tickets] [Xapian] #707: Problems on OS X El Capitan
Xapian
nobody at xapian.org
Tue Mar 8 01:29:53 GMT 2016
#707: Problems on OS X El Capitan
-----------------------------+-----------------------------
Reporter: james | Owner: james
Type: defect | Status: new
Priority: normal | Milestone: 1.4.x
Component: Xapian-bindings | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Mac OS X
-----------------------------+-----------------------------
Comment (by olly):
FreeBSD also seems to use `DYLD_LIBRARY_PATH`
(https://www.freebsd.org/cgi/man.cgi?query=dyld&apropos=0&sektion=0&manpath=Darwin+8.0.1%2Fppc&format=html)
so setting it to an empty value is potentially problematic.
Can we not just make the code to set and export `DYLD_LIBRARY_PATH`
conditionally - something like:
{{{
#!sh
if [ -n "INTREE_DYLD_PATH" ] ; then
DYLD_LIBRARY_PATH=$INTREE_DYLD_PATH
export DYLD_LIBRARY_PATH
fi
}}}
`App::Prove` is documented as ''"Implements the "prove" command"'' and
''"The "prove" command is a minimal wrapper around an instance of this
module"'', so it seems a safe approach.
`export foo=bar` is actually
[http://pubs.opengroup.org/onlinepubs/009696799/utilities/export.html
specified by POSIX], but it's not portable to older shells - the autoconf
manual notes:
> Posix requires 'export' to honor assignments made as arguments, but
older shells do not support this, including '/bin/sh' in Solaris 10.
And Solaris 10 is
[https://en.wikipedia.org/wiki/Solaris_%28operating_system%29#Version_history
apparently still in support for] another 5 years.
--
Ticket URL: <https://trac.xapian.org/ticket/707#comment:6>
Xapian <//xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list