From owner-freebsd-ports@FreeBSD.ORG Wed Nov 27 05:23:22 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9639C1A8; Wed, 27 Nov 2013 05:23:22 +0000 (UTC) Received: from mail-pb0-x22c.google.com (mail-pb0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6A68727F2; Wed, 27 Nov 2013 05:23:22 +0000 (UTC) Received: by mail-pb0-f44.google.com with SMTP id rq2so9651658pbb.3 for ; Tue, 26 Nov 2013 21:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Tz4qc6+cFXDWBr257Vr+ZJ8rQ0DZTJD0xdCN9+/IXLw=; b=a66BstCDXwBdt0w9Kbe1KobjOAGxs/J+zcSlcIlYXlQv0XC8aXdyaeppzmtOPB97UT kRrkFf0JsKZbB3PSoJy1lwmRBlT07s3U8Q6DlBP5Z3YhsYQ9q3YLghuWNubqZQRjYgse XkhzuXknw3agMJ8+9/caWSAxX/mA0tn0QtyMDC2LMKupPV1tnaGfkkKX/Tx+v5/N68zF pZZ0YIYBUCimV9LcVpjOV4CV0FfFdyYKM4jdnWIJLU3U0EgJtrMF5R1CX4K2DelYleLG cC7K4Yn40kJ00OkVUi7gRqREf7ZMdib5EgJteRZ204dxK4RMw2KccDe2NkORcz4bEAYR 8vDg== MIME-Version: 1.0 X-Received: by 10.66.219.233 with SMTP id pr9mr39333070pac.45.1385529802079; Tue, 26 Nov 2013 21:23:22 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.67.23.101 with HTTP; Tue, 26 Nov 2013 21:23:22 -0800 (PST) In-Reply-To: <5294F737.1010605@FreeBSD.org> References: <529453E6.3080200@gmail.com> <5294684E.1050105@passap.ru> <52946CE3.5010802@gmail.com> <5294757E.3010309@passap.ru> <5294F737.1010605@FreeBSD.org> Date: Tue, 26 Nov 2013 21:23:22 -0800 X-Google-Sender-Auth: R08xi_TCYfL71sMMD_4ptk4vxio Message-ID: Subject: Re: pkg_libchk (was Re: gvfs on FreeBSD 10 fails to build) From: Kevin Oberman To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: Warren Block , Johan Hendriks , Boris Samorodov , FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 05:23:22 -0000 On Tue, Nov 26, 2013 at 11:32 AM, Matthew Seaman wrote: > On 26/11/2013 18:15, Warren Block wrote: > > On Tue, 26 Nov 2013, Kevin Oberman wrote: > > > >> Possibly hijacking the thread, but isn't it time that pkg_libchk was > >> made a > >> part of the base system? It comes up over and over as a tool to simplify > >> dealing with dealing with shareable library version bumps and even more > >> important for dealing with the problem seen here. It's a fairly simple, > >> well written, maintainable shell script, so will run with no > >> dependencies. > >> I can't think of any reason not to include it in the base system. > >> > >> Checking for issues with shareable libraries is an obvious requirement > >> for > >> maintaining a system and doing so without a tool like pkg_libchk is > >> unnecessarily tedious and painful. > > > > Maybe integrating it with pkg rather than the base system. At least for > > me, it's not a problem with the base. > > pkg(8) already has a lot of shlib analysis built in. So, for instance > to find all the pkg with binaries that link against libiconv: > > % pkg shlib -P libiconv.so.3 > > Hmmm... although it seems the -P and -R flags have gotten swapped over > somehow. > > Matthew > Yes, this is a start, but it would be quite difficult to confirm that every package installed has no missing libraries. This is a somewhat different problem. If pkg can be modified to do this, great, but pkg_libchk works with both old and new packaging systems today. I do feel that if similar capability can be added to pkg, that would be better as removing something from base is a real pain. -- R. Kevin Oberman, Network Engineer E-mail: rkoberman@gmail.com