From owner-freebsd-ports@FreeBSD.ORG Mon Jul 25 20:57:23 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 115B71065673 for ; Mon, 25 Jul 2011 20:57:23 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id C46398FC0A for ; Mon, 25 Jul 2011 20:57:22 +0000 (UTC) Received: by vxg33 with SMTP id 33so4370749vxg.13 for ; Mon, 25 Jul 2011 13:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=3J15M/PNyTrPshi07cCaDTenmQ0zQtuPu219VieXt1s=; b=EMqFcRySn5dTFWEDdhatdv4Hwsv6sYH4jRY2wYSgwkzkphqm/uLMfE5L0vC7iDnkXH ddrTSukdrozH07TBGLDwBlPBCPWA+jgFxyxksw1fz5MSHg8UQfL4jnHowwWoaff4HLrq H9HCHefR8fkNYG28O5to+wWN0HekYlSrbN6ys= Received: by 10.52.21.194 with SMTP id x2mr4884695vde.39.1311627442073; Mon, 25 Jul 2011 13:57:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.166.161 with HTTP; Mon, 25 Jul 2011 13:56:52 -0700 (PDT) In-Reply-To: <20110712225615.GA91283@heechee.tobez.org> References: <20110712225615.GA91283@heechee.tobez.org> From: Eitan Adler Date: Mon, 25 Jul 2011 16:56:52 -0400 Message-ID: To: Anton Berezin , freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: find-packages-using-libs: request for feedback X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 20:57:23 -0000 This looks useful - any chance you could make a port out of this? On Tue, Jul 12, 2011 at 6:56 PM, Anton Berezin wrote: > Hi, > > After the recent icu and libgcrypt updates I decided to try and find a > way to avoid rebuilding everything which depends on a particular > port when its shared library version is bumped. > > Previously I was profitably using sysutils/libchk, producing in the end > the list of packages which *have* to be rebuilt. =C2=A0Its use, however, > requires some substantial massaging of the output it produces. > > So I wrote a little tool which automates such tasks. =C2=A0As a side effe= ct, > it can also be used to simply list all packages using a shared library > (or libraries). > > Fetch it at https://github.com/tobez/find-packages-using-libs . > > Usage examples: > > Finding every installed package using libgcrypt: > > =C2=A0 =C2=A0./find-packages-using-libs libgcrypt.so\* > > Finding every installed package using libgcrypt OR libicu*: > > =C2=A0 =C2=A0./find-packages-using-libs libgcrypt.so\* libicu* > > Finding every installed package which uses libraries that do > not exist (or exist in non-standard paths without any RPATH): > > =C2=A0 =C2=A0./find-packages-using-libs -b > > Finding every installed package which uses a non-existing libgcrypt: > > =C2=A0 =C2=A0./find-packages-using-libs -b libgcrypt.so\* > > There are a couple of minor options as well, > but for now, this about covers it. > > I am interested in you feedback: > > - would you use it? =C2=A0does it solve a problem for you, or do you fore= see > =C2=A0it will solve a problem for you in the future? > - does it work for you? =C2=A0any bugs? > - any wishes with regard to missing features? > > Most of the package-walking code shamelessly (for a good reason) stolen > from the perl-after-upgrade script. > > The code is in public domain. > > Cheers, > \Anton. > -- > Our society can survive even a large amount of irrational regulation. > =C2=A0-- John McCarthy > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > --=20 Eitan Adler