From owner-freebsd-pkg@freebsd.org Fri Oct 2 20:55:43 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 03A41A0E5B5 for ; Fri, 2 Oct 2015 20:55:43 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (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 C42FE1DFD; Fri, 2 Oct 2015 20:55:42 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: by igbni9 with SMTP id ni9so24731100igb.0; Fri, 02 Oct 2015 13:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Oh0LvtYXw4/ddudhlWXnJ0g6k/g0Dx5EPQMEUkiuuhg=; b=B9MWxVmAO3IxZKrKbZbRjMpQWjjlCC+g1939JjeyxCkBjT7yHO0VDt9633tC+x1CPJ TOl+ab73AZQsJMXE7X6tRtT1U17xNANliNsfkNDUz639nJxbKT0VIU5aTz7W4WGjWT4K LcZszEXEE56tHV4PIXRF+CFhB7BsCoHK3zUhq9cfhmAGpBkj4LYI06LOunzMXBCSEOEa kyVcD/XCdrjzXgZVkSqzn/T82xv3Wb/T8qDz2NiqmyyyrMwHYEDc2STCzqIcI0QWrjWH pEFkhD7938WtTB1TZVvq3ccY3frppEltyzUTYvLomFWVU31P2E1C2POZIZj2/8a0wH31 kIQQ== MIME-Version: 1.0 X-Received: by 10.50.111.137 with SMTP id ii9mr995110igb.91.1443819342243; Fri, 02 Oct 2015 13:55:42 -0700 (PDT) Received: by 10.107.200.66 with HTTP; Fri, 2 Oct 2015 13:55:42 -0700 (PDT) In-Reply-To: <560E3176.2070808@FreeBSD.org> References: <560E3176.2070808@FreeBSD.org> Date: Fri, 2 Oct 2015 23:55:42 +0300 Message-ID: Subject: Re: Provided shared libraries not registering. From: Kimmo Paasiala To: Matthew Seaman Cc: freebsd-pkg@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Fri, 02 Oct 2015 20:55:43 -0000 On Fri, Oct 2, 2015 at 10:25 AM, Matthew Seaman wrote: > 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 > 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: @shlib lib/libgdal.so.%%PORTVERSION%% -Kimmo