cvs commit: ports/graphics/py-graphviz Makefile

Michael Nottebrock lofi at freebsd.org
Wed Nov 2 04:53:56 PST 2005


On Wednesday, 2. November 2005 11:31, Volker Stolz wrote:
> Am 02. Nov 2005 um 10:45 CET schrieb Tilman Linneweh:
> > * Volker Stolz [2005-11-02 09:30]:
> > > > > arved       2005-11-01 14:18:52 UTC
> > > > >
> > > > >   FreeBSD ports repository
> > > > >
> > > > >   Modified files:
> > > > >     graphics/py-graphviz Makefile
> > > > >   Log:
> > > > >   Fix dependency on graphviz, the graphviz libraries are installed
> > > > > in a non-default libdir, add BUILD_ and RUN_ dependendencies
> > > > > instead.
> > > >
> > > > Shouldn't graphviz be setting LDCONFIG_DIRS instead?
> >
> > Yes, that's the problem.
> > According to perky, the graphviz port does not install a startup script,
> > that sets LDCONFIG_DIRS, because the libraries have very common names.
>
> This means that the python-binding will be broken anyway:
> >>> from graphviz import *;
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.3/site-packages/graphviz/__init__.py", line
> 23, in ? from graphviz import *
>   File "/usr/local/lib/python2.3/site-packages/graphviz/graphviz.py", line
> 5, in ? import _graphviz
> ImportError: Shared object "libagraph.so.0" not found, required by
> "_graphviz.so"
>
> Having spent the last week in -rpath-hell anyway, how about this solution:
> -       ${CC} -shared ${LOCALBASE}/lib/graphviz/libagraph.so
> ${LOCALBASE}/lib/graphviz/libcdt.so gv_wrap.o -o _graphviz.so +       ${LD}
> -shared -L${LOCALBASE}/lib/graphviz -rpath ${LOCALBASE}/lib/graphviz
> -lagraph -lcdt gv_wrap.o -o _graphviz.so
>
> This makes the use-case above work again and doesn't require and ldconfig.
> I'll check if there are any other consumers of graphviz' shlibs.

Probably not: The graphviz libraries aren't supposed to be used by other 
applications anyway, that's why they're not in the standard library path.

The graphviz licence is incompatible with the GPL as well, prohibiting GPL'd 
applications from linking to the libraries (Fun fact: There is a GPL'd 
pygraphviz binding around (https://networkx.lanl.gov/pygraphviz/), which is 
'based' on the (non-GPL'd) code that his port uses to boot. Don't even think 
of porting that. =) )

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-ports/attachments/20051102/a5eca907/attachment.bin


More information about the cvs-ports mailing list