From owner-cvs-ports@FreeBSD.ORG Wed Nov 2 10:31:51 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 D8D9316A41F; Wed, 2 Nov 2005 10:31:51 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 235D243D46; Wed, 2 Nov 2005 10:31:50 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from i2.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73]) by atlas.informatik.rwth-aachen.de (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jA2AVnXB014011; Wed, 2 Nov 2005 11:31:49 +0100 Received: (from stolz@localhost) by i2.informatik.rwth-aachen.de (8.13.1/8.13.1/Submit) id jA2AVlgL022764; Wed, 2 Nov 2005 11:31:47 +0100 (CET) (envelope-from stolz) Received: (hashcash-sendmail, from uid 1228); Wed, 2 Nov 2005 11:31:47 +0100 Date: Wed, 2 Nov 2005 11:31:47 +0100 From: Volker Stolz To: Tilman Linneweh Message-ID: <20051102103147.GF9487@i2.informatik.rwth-aachen.de> References: <200511011418.jA1EIqVv060958@repoman.freebsd.org> <20051101191515.GA74339@xor.obsecurity.org> <20051102083018.GA9487@i2.informatik.rwth-aachen.de> <20051102094550.GA60209@arved.priv.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051102094550.GA60209@arved.priv.at> X-PGP-Key: finger vs@foldr.org X-PGP-Id: 0x3FD1B6B5 User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:051102:arved@freebsd.org::nhiLJ6iVgWDVz5sj:00000000000000000000 0000000000000000000000001gQU X-Hashcash: 1:20:051102:kris@obsecurity.org::6xJRZ4X5lH0QY679:000000000000000000 0000000000000000000000000pUt X-Hashcash: 1:20:051102:ports-committers@freebsd.org::DLUdSGNMmpz6Loc0:000000000 0000000000000000000000004tOt X-Hashcash: 1:20:051102:cvs-ports@freebsd.org::RgIR6j9GYRO4zUs2:0000000000000000 0000000000000000000000001NgK Cc: cvs-ports@FreeBSD.org, 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 10:31:52 -0000 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 + ${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. #readelf -a work/graphviz-0.1/_graphviz.so | grep PATH 0x0000000f (RPATH) Library rpath: [/usr/local/lib/graphviz] # ldd work/graphviz-0.1/_graphviz.so work/graphviz-0.1/_graphviz.so: libagraph.so.0 => /usr/local/lib/graphviz/libagraph.so.0 (0x28119000) libcdt.so.0 => /usr/local/lib/graphviz/libcdt.so.0 (0x28128000) Volker -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME Receive and transmit