Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 15:35:06 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Bruce Evans <bde@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/gnu/lib/libreadline/readline Makefile
Message-ID:  <20020415123506.GB34430@sunbay.com>
In-Reply-To: <20020415112415.GA22417@nagual.pp.ru>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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:
> 
> > 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.
> 
> Ok, how about this patch?
> 
> Index: Makefile
> ===================================================================
> 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} == aout
>  SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
>  	  libcurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
> -SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
> -	  libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
> -SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
> +LINKS+=${SHLIBDIR}/libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
> +       ${SHLIBDIR}libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
> +SYMLINKS+=libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
>  	  libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
>  SYMLINKS+=libncurses.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+=libncurses.so ${SHLIBDIR}/libcurses.so
> -SYMLINKS+=libncurses.so ${SHLIBDIR}/libtermcap.so
> -SYMLINKS+=libncurses.so ${SHLIBDIR}/libtermlib.so
> +LINKS+=${SHLIBDIR}/libncurses.so ${SHLIBDIR}/libtermcap.so
> +SYMLINKS+=libtermcap.so ${SHLIBDIR}/libtermlib.so
>  SYMLINKS+=libncurses.so ${SHLIBDIR}/libmytinfo.so
>  SYMLINKS+=libncurses.so ${SHLIBDIR}/libtinfo.so
>  .endif
> 
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,
-- 
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

[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020415123506.GB34430>