From owner-cvs-all Mon Apr 15 5:35:56 2002 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 0428C37B400; Mon, 15 Apr 2002 05:35:40 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g3FCZ6P50276; Mon, 15 Apr 2002 15:35:06 +0300 (EEST) (envelope-from ru) Date: Mon, 15 Apr 2002 15:35:06 +0300 From: Ruslan Ermilov To: "Andrey A. Chernov" Cc: Bruce Evans , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/lib/libreadline/readline Makefile Message-ID: <20020415123506.GB34430@sunbay.com> References: <200204091302.g39D2QV05151@freefall.freebsd.org> <20020412113309.GA1551@nagual.pp.ru> <20020412114540.GB27751@sunbay.com> <20020412115414.GC1551@nagual.pp.ru> <20020412142553.GA45365@sunbay.com> <20020412151224.GA8492@nagual.pp.ru> <20020415065538.GB2452@sunbay.com> <20020415073549.GA19816@nagual.pp.ru> <20020415082011.GA11264@sunbay.com> <20020415112415.GA22417@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p4qYPpj5QlsIQJ0K" Content-Disposition: inline In-Reply-To: <20020415112415.GA22417@nagual.pp.ru> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --p4qYPpj5QlsIQJ0K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 15, 2002 at 03:24:15PM +0400, Andrey A. Chernov wrote: > On Mon, Apr 15, 2002 at 11:20:11 +0300, Ruslan Ermilov wrote: >=20 > > So please fix it so that we have a real termcap library appearing > > under /usr/lib with "termcap.so" as an internal name. It does not > > matter if the actual contents is equivalent to ncurses.so -- that > > would be an implementation detail. I would be more than happy to > > back out my change then. >=20 > Ok, how about this patch? >=20 > Index: Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/lib/libncurses/Makefile,v > retrieving revision 1.52 > diff -u -r1.52 Makefile > --- Makefile 14 Sep 2001 15:27:51 -0000 1.52 > +++ Makefile 15 Apr 2002 11:21:33 -0000 > @@ -223,9 +223,9 @@ > .if ${OBJFORMAT} =3D=3D aout > SYMLINKS+=3Dlibncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ > libcurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} > -SYMLINKS+=3Dlibncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ > - libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} > -SYMLINKS+=3Dlibncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ > +LINKS+=3D${SHLIBDIR}/libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ > + ${SHLIBDIR}libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} > +SYMLINKS+=3Dlibtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ > libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR} > SYMLINKS+=3Dlibncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ > libmytinfo.so.${SHLIB_MAJOR}.${SHLIB_MINOR} > @@ -234,8 +234,8 @@ > .else > # no need for major at all, it's an ld-time redirection only > SYMLINKS+=3Dlibncurses.so ${SHLIBDIR}/libcurses.so > -SYMLINKS+=3Dlibncurses.so ${SHLIBDIR}/libtermcap.so > -SYMLINKS+=3Dlibncurses.so ${SHLIBDIR}/libtermlib.so > +LINKS+=3D${SHLIBDIR}/libncurses.so ${SHLIBDIR}/libtermcap.so > +SYMLINKS+=3Dlibtermcap.so ${SHLIBDIR}/libtermlib.so > SYMLINKS+=3Dlibncurses.so ${SHLIBDIR}/libmytinfo.so > SYMLINKS+=3Dlibncurses.so ${SHLIBDIR}/libtinfo.so > .endif >=20 No, that wouldn't work. When linking an executable with a shared library, ld(1) picks up the internal name (DT_SONAME) written in the .so library, and records it into the resulting executable. What would work for me is if we had all these libraries symlinked to libncurses as true libraries. But I think this problem should get a broader discussion before we start fixing it that was or another. I would like to hear others opinions as well. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --p4qYPpj5QlsIQJ0K Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8usj6Ukv4P6juNwoRAkdRAJ4oM70qNRCwZQOqOVhnKp9dKa8BEgCfXqeE 6n/nWENDUskxu8ywz5N4V8k= =2+ig -----END PGP SIGNATURE----- --p4qYPpj5QlsIQJ0K-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message