From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 14:31:02 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 93C46106564A for ; Thu, 29 Jul 2010 14:31:02 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57008.mail.re3.yahoo.com (web57008.mail.re3.yahoo.com [66.196.97.112]) by mx1.freebsd.org (Postfix) with SMTP id 390F88FC08 for ; Thu, 29 Jul 2010 14:31:01 +0000 (UTC) Received: (qmail 57464 invoked by uid 60001); 29 Jul 2010 14:31:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1280413861; bh=RnpQKUtqiDltxolozzS1hBNn8plzW+ccukEg3q/ym04=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=XKS5w5yvgtxxkdlPmYU77L1BcYJqc5WgSWV9K3mUbdaTJsZ8wQNzq/Frg2mAMG/XXqvDf37lfUZEnBeww/S+Fqq0Gt9wLtGabxKjNGipBaebgxww9I1pj8nKu37fGzjcwLQZNIjVjwmPnLc/JR0vmr9ve1lTRnn5V3/5bSI4ZiI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=pwOJp0AAt763qEUvmaJNqB08FkP5vJhttLbRQRjEa67g+9Jcd1zz0EJww0LDWqc+gD3C9Gkx9YhuO7nwzdQIHyXH43DSltCGI+ELvn9g/nOT1GdSRaL5QNSm31rbeeOcubtFZ4rZPAVVnDCvqKMEeHscOfGCD/9FKPnQb4nU0jo=; Message-ID: <523373.54704.qm@web57008.mail.re3.yahoo.com> X-YMail-OSG: x8qn1xUVM1k8msqnCoguvqDZS0R1QgzPvSvSqCUOYnoYh96 SeztICxvkDACWM8if0SoX3YH3bthuSsghJjuy1juRDco7qVhaDEaCLNWq2dn 6t9h3P2EX7IeT36aZhjHjgUz1vi49Pcui7tZZqzgu.w.w9zQmGP3APAM2X.G h3yKcT2CInjOCKi2N8FKmvCUwLatr0P2WBEKAy7iNX2xsxouNmvbq2LkT0cl .IfOJJeEw3dLhi7kGM9EC9b.Pjaq84O7Up3G3yHd5Oz2lMZJUel9VkIf5LLZ h7PkluEZ974m..MyLP.lpIoT4Zdsq Received: from [116.14.238.162] by web57008.mail.re3.yahoo.com via HTTP; Thu, 29 Jul 2010 07:31:01 PDT X-Mailer: YahooMailClassic/11.2.4 YahooMailWebService/0.8.105.279950 Date: Thu, 29 Jul 2010 07:31:01 -0700 (PDT) From: Unga To: Volodymyr Kostyrko In-Reply-To: <4C516751.5080307@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org 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 14:31:02 -0000 --- On Thu, 7/29/10, Volodymyr Kostyrko wrote: > From: Volodymyr Kostyrko > Subject: Re: How to mass recompile broken packages? > To: "Unga" > Cc: freebsd-questions@freebsd.org > Date: Thursday, July 29, 2010, 7:34 PM > 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. > 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". Best regards Unga