From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 15:28:51 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 EF8601065675 for ; Thu, 29 Jul 2010 15:28:51 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57003.mail.re3.yahoo.com (web57003.mail.re3.yahoo.com [66.196.97.107]) by mx1.freebsd.org (Postfix) with SMTP id 991788FC1C for ; Thu, 29 Jul 2010 15:28:51 +0000 (UTC) Received: (qmail 47529 invoked by uid 60001); 29 Jul 2010 15:28:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1280417330; bh=/TqGuVDf7mqGhp1s/CQP66MGM7sXuPLMd/QTJfc3dbM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=hYH6OsPqY0lf7bdZXw5j5niIogOkul0evNJWuP/owVACeHI5bdriXIF6ADw5sv7wRYLNgEzgKhQwHksErmD6Ghk1IGW7Rrz3XTsn80UTD4d7vmPJ4F9HYIJHYh3JhFNuHgSuefaIWR7HkdTW0PLIfHTKJLdgiP4VswwIFSXItmM= 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=fIzGeBQxOh4G6jvMXYFj39k9W91EJd9q6SOWOXnRYzMyKmV3uu7kOXDxnFFcIk9sXoDra7zOQZJHtJ5/5rPg2Bk5UICGmv/5Ol+5Hv5eIc7wmnnOkDLkk7rviR30Gb15DRS75QO8u+kN/JkqPOX/UH8KfDeV8XLjXAY7fVUKFsc=; Message-ID: <842968.46346.qm@web57003.mail.re3.yahoo.com> X-YMail-OSG: dtmW2QIVM1k6v6VATcUOAmSpTTw43OHLtNiG8cnsXFyRcsJ l6z3Z88bPJczemT6sq5eiGyQwIHLMIGGHlERfzNLJVtlU6yONUeolaEnyz5z 6AId_VNLFvJFubtdZgezooJWNj5gQ6c6O9Wr7yRS2snwKKhnT4LJrC2_un0q ES_6x4lDvcLiVnkJbN.IgT0xpNT8QCuNCRgMi20JVQH38Px3GxPIUQT3fQsP Kyi68QS_Zoo66PtWjg3iNIVqnPKG2SDOaw7cwYG8UScMKwk38mTRuF.86RNZ l Received: from [116.14.238.162] by web57003.mail.re3.yahoo.com via HTTP; Thu, 29 Jul 2010 08:28:50 PDT X-Mailer: YahooMailClassic/11.2.4 YahooMailWebService/0.8.105.279950 Date: Thu, 29 Jul 2010 08:28:50 -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: Thu, 29 Jul 2010 15:28: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` > Thank you very much again. The compilation is now progressing, it may take a while to complete. I'll update the you and the list on the outcome. Best regards Unga