From owner-cvs-ports@FreeBSD.ORG Wed Nov 2 12:53:55 2005 Return-Path: X-Original-To: cvs-ports@freebsd.org Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCC3416A421; Wed, 2 Nov 2005 12:53:55 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-01.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9023243D53; Wed, 2 Nov 2005 12:53:54 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id CFEDD676F8; Wed, 2 Nov 2005 13:53:52 +0100 (CET) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id B50A628362; Wed, 2 Nov 2005 13:53:52 +0100 (CET) Received: from lofi.dyndns.org (dslb-084-061-132-219.pools.arcor-ip.net [84.61.132.219]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id F2725677AB; Wed, 2 Nov 2005 13:53:51 +0100 (CET) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id jA2CroWh036530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Nov 2005 13:53:50 +0100 (CET) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.4/8.13.1) with ESMTP id jA2CrnKE006997; Wed, 2 Nov 2005 13:53:49 +0100 (CET) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.4/8.13.1/Submit) id jA2CrmEq006996; Wed, 2 Nov 2005 13:53:48 +0100 (CET) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: Volker Stolz Date: Wed, 2 Nov 2005 13:53:39 +0100 User-Agent: KMail/1.8.2 References: <200511011418.jA1EIqVv060958@repoman.freebsd.org> <20051102094550.GA60209@arved.priv.at> <20051102103147.GF9487@i2.informatik.rwth-aachen.de> In-Reply-To: <20051102103147.GF9487@i2.informatik.rwth-aachen.de> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: cvs-ports@freebsd.org, Tilman Linneweh , ports-committers@freebsd.org, Kris Kennaway Subject: Re: cvs commit: ports/graphics/py-graphviz Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 12:53:56 -0000 --nextPart1923751.mKCDf3ZY4j Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 "", 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 + ${L= D} > -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=20 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=20 applications from linking to the libraries (Fun fact: There is a GPL'd=20 pygraphviz binding around (https://networkx.lanl.gov/pygraphviz/), which is= =20 'based' on the (non-GPL'd) code that his port uses to boot. Don't even thin= k=20 of porting that. =3D) ) =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart1923751.mKCDf3ZY4j Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDaLbbXhc68WspdLARAtiuAJ404ZpJJQZMUq9NKe8vi340WnbVJwCeLeD1 E1eiS04yvfrmWRfcgCvuYpE= =Jzrx -----END PGP SIGNATURE----- --nextPart1923751.mKCDf3ZY4j--