From owner-freebsd-pkg@freebsd.org Sat Oct 3 07:55:36 2015 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69B64A0FE4E for ; Sat, 3 Oct 2015 07:55:36 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 020431BB9; Sat, 3 Oct 2015 07:55:35 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wiclk2 with SMTP id lk2so60032864wic.0; Sat, 03 Oct 2015 00:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=0W5HQo0hZ770jpEksi6T+S1rNLKypQiBUxazTJVWL7I=; b=chOdWMwT2+0pRZKrfKzPsnq2rA/NQpU4DFSsfKll8j1P0Xpo9/A936SWLq3AbW77KB DDUxj1RQBJHR0ScCFSpR37w7Ak+c8jd0A8hcFPF0/BJIMV4j7yqO6fRYCKhYle1E54zd dP399k19z5sv7UWp1jH7z8BIHCfS/uH5PcXZM+0TgcJvT/YHrXyXFztwfNO7dxPD5eWa y2wuyVHcMu4iPNmjXPW5i9DyH/uWjGcz2j4hGfOJK0U6Cl8U3Wu0pO5K9DKjPtm4vHPc bJVLsf4XLdOrsNzjQNC0ume3287WCcqJTYOtUxv4GvVewunDpq2dSm247B7y2jKnL+Yk jPxg== X-Received: by 10.194.179.103 with SMTP id df7mr22906390wjc.69.1443858934251; Sat, 03 Oct 2015 00:55:34 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id wc12sm2832495wic.18.2015.10.03.00.55.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Oct 2015 00:55:33 -0700 (PDT) Sender: Baptiste Daroussin Date: Sat, 3 Oct 2015 09:55:31 +0200 From: Baptiste Daroussin To: Kimmo Paasiala Cc: Matthew Seaman , freebsd-pkg@freebsd.org Subject: Re: Provided shared libraries not registering. Message-ID: <20151003075531.GA52626@ivaldir.etoilebsd.net> References: <560E3176.2070808@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Oct 2015 07:55:36 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 02, 2015 at 11:55:42PM +0300, Kimmo Paasiala wrote: > On Fri, Oct 2, 2015 at 10:25 AM, Matthew Seaman wro= te: > > On 02/10/2015 08:27, Kimmo Paasiala wrote: > >> This came up on graphics/gdal but there could be others. It looks like > >> pkg doesn't register provided shared libraries if the libraries lack > >> an SONAME in their dynamic section. Was this changed on pkg 1.6 or has > >> it always been like that? What it does now is that 'pkg check -d' will > >> complain about missing shared libraries that are present and > >> applications using those libraries work fine. > > > > Yes, that was a deliberate choice. Not all shared libraries are created > > for sharing -- and some times it's hard to tell whether something is > > meant to be a loadable module rather than a shared library. In theory > > these are quite different binary formats, but it seems many developers > > don't appreciate the subtleties, and mix up the two. It's a heuristic > > that does as well as we could manage, but that doesn't mean there isn't > > room for improvement. > > > > The test on SONAME has been in the code for quite some time, certainly > > since before pkg-1.5.0 > > > > Cheers, > > > > Matthew > > >=20 > How hard it would be to implement a new keyword, let's say @shlib that > you could use to explicitly declare a file a provided shared library? > For example: >=20 > @shlib lib/libgdal.so.%%PORTVERSION%% >=20 > -Kimmo The right thing would be to fix this library and others, not working around their issues. Best regards, Bapt --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlYPifMACgkQ8kTtMUmk6ExODwCbBe47XZiJ2WVSxzMlqhoPfhYj 2YoAoLss0atYRWNosdNbd7GHLtSOyPTD =v2pN -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--