Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 2014 19:32:48 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Pedro Giffuni <pfg@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Fix private/internal lib (was Re: svn commit: r268461 - in head: . gnu/lib/libreadline) gnu/lib/libreadline/history gnu/lib/libreadline/readline gnu/lib/libreadline/readline/doc gnu/usr.bin/gdb gnu/usr.bin/gdb/gdb gnu/usr.bin/gdb/gd...
Message-ID:  <20140709173248.GE56040@ivaldir.etoilebsd.net>
In-Reply-To: <53BD68E4.1070706@freebsd.org>
References:  <201407091552.s69FqUon070685@svn.freebsd.org> <53BD68E4.1070706@freebsd.org>

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

--Dzs2zDY0zgkG72+7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 09, 2014 at 11:08:04AM -0500, Pedro Giffuni wrote:
>=20
> On 07/09/14 10:52, Baptiste Daroussin wrote:
> > Author: bapt
> > Date: Wed Jul  9 15:52:30 2014
> > New Revision: 268461
> > URL: http://svnweb.freebsd.org/changeset/base/268461
> >
> > Log:
> >    The GNU readline library is now an INTERNALLIB - that is, it is
> >    statically linked into consumers (GDB and variants) in the base
> >    system, and the shared library is no longer installed.
> >   =20
> >    That also allows ports to be able to use a modern version of readline
> >  =20
>=20
> Nice, thank you.
> I guess libgnuregex is also a good candidate for such treatment :).
>=20
gnuregex is another beast it is used in at more places:
- GNU diff
- GNU grep
- BSD grep
- gdb
- kgdb
- gdbtui

That makes it more a candidate for privatellib, but private lib needs to be
fixed first, it has a couple of problems so far:
- it installs .so, .a and _p.a files while it shouldn't
- they are listed in bsd.libnames.mk so exposed to any bsd.*.mk users when =
it
  should only be internal of to out build system
- when a part of the system tries to link to a privatelib it links to
  ${DESTDIR}/usr/lib/private/${LIB}.so when it should link to the path on O=
BJDIR
  because the .so is not supposed to be installed into the target.

We need a framework internal to the build system (aka not installed in base)
that list the privatelib/internallib (looks at the ugly thing I have done in
gdb/Makefile.inc) and we need to link to the .so/a which it in the OBJDIR n=
ot in
the DESTDIR.

I have no idea how to do that right now (Warner any idea coming into your m=
ind?)

regards,
Bapt

--Dzs2zDY0zgkG72+7
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlO9fMAACgkQ8kTtMUmk6EzX/wCeNsSvEu09aUmpptRkE+wY2ULT
n3gAnjQKPN773B+N3wqG71lhe50k0QuQ
=o6EH
-----END PGP SIGNATURE-----

--Dzs2zDY0zgkG72+7--



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