From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 09:40:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15AFB16A4C0; Mon, 1 Sep 2003 09:40:56 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBBDF43FE1; Mon, 1 Sep 2003 09:40:04 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h81Gdo86008243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Sep 2003 19:39:51 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h81GdoDX008242; Mon, 1 Sep 2003 19:39:50 +0300 (EEST) (envelope-from ru) Date: Mon, 1 Sep 2003 19:39:50 +0300 From: Ruslan Ermilov To: "David O'Brien" , Gordon Tetlow , current@FreeBSD.org Message-ID: <20030901163950.GB6534@sunbay.com> References: <200308291454.h7TEsb913915@accms33.physik.rwth-aachen.de> <20030829172348.1aa0b5d4.Alexander@Leidinger.net> <20030829161907.GA89129@troutmask.apl.washington.edu> <20030830135427.0cea7fdb.Alexander@Leidinger.net> <20030830185653.GA10674@sunbay.com> <20030831140742.3bd1b597.Alexander@Leidinger.net> <20030831145224.GC28845@sunbay.com> <20030901051049.GB91933@dragon.nuxi.com> <20030901064424.GA30277@sunbay.com> <20030901163129.GB65770@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline In-Reply-To: <20030901163129.GB65770@dragon.nuxi.com> User-Agent: Mutt/1.5.4i Subject: Re: /lib symlinks problem? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 16:40:56 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 01, 2003 at 09:31:29AM -0700, David O'Brien wrote: > On Mon, Sep 01, 2003 at 09:44:24AM +0300, Ruslan Ermilov wrote: > > On Sun, Aug 31, 2003 at 10:10:49PM -0700, David O'Brien wrote: > > > On Sun, Aug 31, 2003 at 05:52:24PM +0300, Ruslan Ermilov wrote: > > > > > > I might be missing an obvious, but I just don't see a reason > > > > > > why we should use relative linking here: we should just link > > > > > > to where we really install. With the attached patch, I get: > > > ... > > > > +.if ${LIBDIR} !=3D ${SHLIBDIR} > > > > + ln -fs ${SHLIBDIR}/${SHLIB_NAME} ${DESTDIR}${LIBDIR}/${SHLIB_LINK} > > >=20 > > > Why are we making *any* symlinks here?? > > >=20 > > : revision 1.150 > > : date: 2003/08/17 23:56:29; author: gordon; state: Exp; lines: +2 -3 > > : When creating .so symlinks, use SHLIBDIR instead of LIBDIR so symlinks > > : are created in the correct location. Always make them. For libraries > > : that live in /lib, this causes a /lib/libfoo.so and a compatibility > > : /usr/lib/libfoo.so to be created. We may want to drop the > > : /usr/lib/libfoo.so symlink at some future point. > >=20 > > I think that Gordon took a safe path with creating compatibility symlin= ks. > > Besides, creating compatibility symlinks has a nicety of removing your > > stale symlinks in /usr/lib. >=20 > Reguardless, I think we should just not have the compatibility symlinks. > I can't think of anything that really uses them. >=20 If you want my opinion, I was very surprised to see this committed, and support the idea of removing the compatibility symlinks, but I'd like to hear from Gordon first about why he did this, in the first place. Perhaps, he did that before our linker was taught to look in /lib, I don't know... If it's only to get rid of stale symlinks, I have a few lines patch to bsd.lib.mk that takes care of removing them; otherwise, we can wait for the Warner's "hoover" script to reach the tools/ tree. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/U3ZWUkv4P6juNwoRApCmAKCAGurYKgX0nVR4MdRGpfZTY7Mx/wCfRtcn CelB8jZSI2e7sr+7W7RFwYo= =leZ3 -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1--