From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 15 09:15:53 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D30680F; Sat, 15 Dec 2012 09:15:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 38F348FC15; Sat, 15 Dec 2012 09:15:53 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.5/8.14.5) with ESMTP id qBF9FmhU025900; Sat, 15 Dec 2012 11:15:48 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.3 kib.kiev.ua qBF9FmhU025900 Received: (from kostik@localhost) by tom.home (8.14.5/8.14.5/Submit) id qBF9Fmut025899; Sat, 15 Dec 2012 11:15:48 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 15 Dec 2012 11:15:48 +0200 From: Konstantin Belousov To: Bernhard Fr?hlich Subject: Re: Fix overlinking in base aka import pkgconf Message-ID: <20121215091548.GT71906@kib.kiev.ua> References: <20121214235418.GF18884@ithaqua.etoilebsd.net> <20121215012233.GP71906@kib.kiev.ua> <1355558294.7933.2.camel@Nokia-N900-42-11> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h/77pM/XNBmEJr8g" Content-Disposition: inline In-Reply-To: <1355558294.7933.2.camel@Nokia-N900-42-11> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: Baptiste Daroussin , hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 09:15:53 -0000 --h/77pM/XNBmEJr8g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 15, 2012 at 08:58:14AM +0100, Bernhard Fr?hlich wrote: > On Sa., 15. Dez. 2012 02:22:34 CET, Konstantin Belousov wrote: >=20 > > On Sat, Dec 15, 2012 at 12:54:19AM +0100, Baptiste Daroussin wrote: > > > Hi, > > >=20 > > > Some of our binary are overlinked, the way we handle the linking > > > doesn't help for that. > > What do you mean there ? Do you mean that some libraries specified for > > the linking stage of the final binary are not needed for the execution ? > >=20 > > >=20 > > > On proposition could be to use pkgconf > > > https://github.com/pkgconf/pkgconf which is BSD license pkg-config > > > implementation 100% compatible with pkg-config. > > >=20 > > > What I propose is to create a new PCADD variable for the Makefiles. > > >=20 > > > PCADD will invoke pkgconf to gather the libraries and the cflags for a > > > given project. > > >=20 > > > The second thing would be to create .pc files for all of our librarie= s. > > >=20 > > > for example: > > > usr.bin/fstat dynamic build is overlinked > > And how this is better than just removing the unneeded library from > > the Makefile ? > >=20 > > For the port consumption, I believe that the better solution is to > > provide a pack of the .pc files describing base libraries, most likely > > as port. >=20 > We should definitely generate some pc files for our base libraries. > We already have quite a few ports that need to hack around because of > missing pc files for ssl for example. This is fine. But making the base build depend on the pkgconf does not give us anything except complications and overhead, in my opinion. --h/77pM/XNBmEJr8g Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQzD/CAAoJEJDCuSvBvK1B7NwP+gOtvkXZoYL8nYTJGtaokGHU s35gG1/7y7biksaYBp4c36mNy+MtZ1l2xSeot17su8mf4o53cnh2DPFKOXfJvSx9 1aeEp2QXKn+Etr97n5rUsS+XtlSQeZBOIM+uUtuveuwqmNSNGECELB2+vHvXb0lS rLDsOsQ1rxoki8fmyr7XTDG1hwz7S12fsC/cytt5vbr3mTuR2WrSDryqek6fOcwd gc0O6DRn8vRcMJlAsYTxkNunxmb4fg9Seo4NlNTiajwl0juE1g1wHBPN4v8gDT+J hzTRsNlJX17CWKp1RxSIEMFNOMYYbHz3GyU6cyHe3y708xnTLp8ASvDza8TPATi2 7ekB+ssHrIM8Ntm/Fc0W2iEx3H8Zs/KrTqEAQZqRnQjydt48RHg5/RL0Qvu2TqGZ pCEDrGbTiNw5vUb4kCkJ1DB6PAQR11vZGHCOVDf7xPpwV5kpJtk5KDRTROhpRlGg 1fOAj2Z+GqZrMDapFu4GW7gPg/YyPH6/xlbtsgZe2NqGgWrJdQ5PKb5zxbQeujdj G7SMc3fp1lv9YoV/11sJlcBJIJGb5uBT5zephr2i2EMR1X16BrHYewG/YgjU9AME nNigsfpYmajn8i0geboF7VUHiEji50kQrg/lYbo11PiFg//aKmkzR2BK6wyx0Geb 5Aqj17p7RvEnR+tVsAux =vDzD -----END PGP SIGNATURE----- --h/77pM/XNBmEJr8g--