From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 11:34:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEC7E1065675 for ; Thu, 29 Jul 2010 11:34:55 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 898F38FC13 for ; Thu, 29 Jul 2010 11:34:55 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OeRNz-0000Lo-4i for freebsd-questions@freebsd.org; Thu, 29 Jul 2010 13:34:51 +0200 Received: from 193.33.173.33 ([193.33.173.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 13:34:51 +0200 Received: from c.kworr by 193.33.173.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 13:34:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Thu, 29 Jul 2010 14:34:41 +0300 Lines: 24 Message-ID: <4C516751.5080307@gmail.com> References: <929148.80489.qm@web57005.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org Cc: freebsd-questions@freebsd.org X-Gmane-NNTP-Posting-Host: 193.33.173.33 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.1.11) Gecko/20100722 Thunderbird/3.0.6 In-Reply-To: <929148.80489.qm@web57005.mail.re3.yahoo.com> Subject: Re: How to mass recompile broken packages? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 11:34:55 -0000 29.07.2010 11:25, Unga wrote: > Hi all > > I'm using FreeBSD 8.1 on i386 machine. > > I have upgraded a package using portmanager, but the upgrade seems not successful. > > The required package is upgraded but all packages depend on the upgraded package were not recompiled. > > I have two questions regarding this: > 1. How to list all packages that are broken now? > > 2. How to mass recompile all broken packages? You will need to install libchk from ports. After that: libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs -n1 pkg_info -W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$' > rebuild You'll get 'rebuild' file listing all packages with broken binaries. You can use portmaster or portupgrade on it. -- Sphinx of black quartz judge my vow.