From owner-freebsd-questions@FreeBSD.ORG Fri Jul 30 14:04:52 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 1E41A1065673 for ; Fri, 30 Jul 2010 14:04:52 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57001.mail.re3.yahoo.com (web57001.mail.re3.yahoo.com [66.196.97.105]) by mx1.freebsd.org (Postfix) with SMTP id B5D2B8FC0C for ; Fri, 30 Jul 2010 14:04:51 +0000 (UTC) Received: (qmail 41965 invoked by uid 60001); 30 Jul 2010 14:04:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1280498691; bh=9JPOZlZm45sI6a5tpJZh7Ez6P7B5W17nrE7ydpOdqTo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=wHaYeXpsfc1d+UwfpFOD8885jMydkM+Lj+VoolSNJrCQdtk3wyiUPbSagHWjUZpW0++zuhC4kfiW4b5iwTF8qtHl8TbbaCy+FgwJBs3W8WzX2EmipS9mITXz4OehdWlmbmr4hr4QpOahj612cCxOdb7v5y4rZe3fTU2sYpjqZrk= 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=rMRCy0WIPeMsHM0qjLTVxgxXg66Y6XbnyLxhtnK4suwt0yEJC/GKgh8x/QEWVF0wY+ER7H2cwjZBWCxQD+P+yQxsMyPaG10bfTV9xicqBrCmZHkaKY80Ihls4/1YJWTKHk+xNxzwVTR3qNRL9Wc5fS8kvKnbZcM9F8nVfjUS11Y=; Message-ID: <185083.41396.qm@web57001.mail.re3.yahoo.com> X-YMail-OSG: aXlPQNgVM1no1YolEJnRFHBDmL4xOOOxJnAVtSot.uX1rEK GPfAuELdIpdd3SSWTFwXXlFSn1ptE2eE_uZOBoASoVd1hjkJOzz65rRWiMnP AiY_qdCIJ3T6wTZrmRq5DJx8tb7duUbP3dGr07YnKpF8LuGANe.fFhahqWCO fpMHEgldECwSDj0lxh90Bs1a2yHyrNZBnA82mJR3K1Mv7K2ltb5l6yvVkosF uyzuaLmdc1mscvuh_Xg7FmZ2hijQzPH0nkuXQvrnA0py8PxOeb8kCgnGALNx M4Tt4_.5yY3zJo0g19IBNIihhRUAe Received: from [116.14.250.130] by web57001.mail.re3.yahoo.com via HTTP; Fri, 30 Jul 2010 07:04:51 PDT X-Mailer: YahooMailClassic/11.2.4 YahooMailWebService/0.8.105.279950 Date: Fri, 30 Jul 2010 07:04:51 -0700 (PDT) From: Unga To: Volodymyr Kostyrko In-Reply-To: <4C51977D.7060901@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: Fri, 30 Jul 2010 14:04:52 -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, 11:00 PM > 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` > Ok, the portupgrade process was not fully automated, I had to manually compile few. Two packages still get listed in the rebuild file, I removed them and recompiled, but still get listed. One of the packages is firefox, but the firefox works well. Therefore, I conclude my broken packages recompilation is satisfactory. Thank you for all those who helped me. Best regards Unga