From owner-freebsd-ports@FreeBSD.ORG Thu Nov 6 04:15:54 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B57C016A4CE for ; Thu, 6 Nov 2003 04:15:54 -0800 (PST) Received: from mx2.fillmore-labs.com (lima.fillmore-labs.com [62.138.193.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id B09AB43FDD for ; Thu, 6 Nov 2003 04:15:53 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from p5080bad3.dip.t-dialin.net ([80.128.186.211] helo=fillmore-labs.com ident=wly90jrrkt6cebw7) by mx2.fillmore-labs.com with asmtp (TLSv1:AES256-SHA:256) (Exim 4.24; FreeBSD 4.9) id 1AHj3H-000LUj-U0; Thu, 06 Nov 2003 13:15:52 +0100 Message-ID: <3FAA3B77.7090002@fillmore-labs.com> Date: Thu, 06 Nov 2003 13:15:51 +0100 From: Oliver Eikemeier MIME-Version: 1.0 To: Matthias Andree References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: eikemeier@fillmore-labs.com User-Agent: KMail/1.5.9 Organization: Fillmore Labs GmbH X-Complaints-To: abuse@fillmore-labs.com cc: freebsd-ports@freebsd.org Subject: Re: RFC: FreeBSD DB Port Reform X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 12:15:54 -0000 Hi Matthias, > 2. bsd.ports.mk should be extended to support WITH_BDB_VER, > USE_BDB_VER or WANT_BDB_VER or something that presets a set of > variables, for instance BDB_VERSION, BDB_INCLUDES, BDB_LIBNAME, > BDB_LIBPATH and LIB_DEPENDS, to lift shared code out of the > individual ports into bsd.ports.mk. No WITH_* options in bsd.ports.mk, they are supposed to use as make arguments to communicate user => port. > 3. for db3, db4 and db41, the following changes are made: > 1. all programs move into $PREFIX/BerkeleyDB.N.M/bin/db_* That violates hier(7). How about moving them to libexec? > 4. all libraries move into $PREFIX/BerkeleyDB.N.M/lib, because > BerkeleyDB installs not only libdb-N.M* but also libdb-N* and > libdb* (where * is .so.N, .so or .a), which cannot work in > the same path. Same as above. How about lib/db-N.M? > 5. a relative symbolic link from $PREFIX/lib/libdb-N.M.so.M to > ../BerkeleyDB.N.M/lib/libdb-N.M.so.M (the SONAME, see above) > is maintained. > 6. documentation moves into $PREFIX/share/doc/BerkeleyDB.N.M and > is symlinked from $PREFIX/BerkeleyDB.N.M/docs The symlink should not be necessary. Could you explain stupid people like me again what you gain by not simply renaming the libraries to libdb-3.3, libdb-4.0 and libdb-4.1 and leaving the other stuff as it is now? IMHO ports that expect a BerkeleyDB.N.M directory under /usr/local violate hier(7), and does this approach work with the ldconfig -r LIB_DEPENDS checking we have in bsd.port.mk?