From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 15:00:28 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 296D91065709 for ; Thu, 29 Jul 2010 15:00:28 +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 D69B08FC21 for ; Thu, 29 Jul 2010 15:00:27 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OeUaw-0004WS-Hn for freebsd-questions@freebsd.org; Thu, 29 Jul 2010 17:00:26 +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 17:00:26 +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 17:00:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Thu, 29 Jul 2010 18:00:13 +0300 Lines: 40 Message-ID: <4C51977D.7060901@gmail.com> References: <4C516751.5080307@gmail.com> <523373.54704.qm@web57008.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: <523373.54704.qm@web57008.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 15:00:28 -0000 29.07.2010 17:31, Unga wrote: >>> 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. >> > > Hi > > Thank you very much for the reply. > > I have 63 packages effected. > > How do I sort the "rebuild" file in the dependency order because the first line itself the compilation fails. I used "portupgrade -f pkg". You don't need that. portupgrade can handle it. Just give it the whole list: portupgrade -f `cat rebuild` -- Sphinx of black quartz judge my vow.