From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 15:00:19 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 7117D106564A for ; Thu, 29 Jul 2010 15:00:19 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id F1AC08FC18 for ; Thu, 29 Jul 2010 15:00:18 +0000 (UTC) Received: by fxm13 with SMTP id 13so277021fxm.13 for ; Thu, 29 Jul 2010 08:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:newsgroups:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=lb+AUihd7By/sVDF/hTsgGczbiJ7zmVbekH3QKF/yG4=; b=SlifNp32ADvl5Z0UmzkvIigQZXaN4G2d3QST/7VA7QNC1L5iGACU1bfKqtmtr0ZMJo DfjHTczdlZB/gqTy/aoLuLxlcl//dvloCBhVbM2QrQlIyuGWehe10IC6zfSh1K5Pk0vt AOqG4B7MkvvjlHncIjsTzcjV+sBaGjJLGYqlQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:newsgroups:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; b=M5UtidwadWAhM53O/ztTBqpTR2g2WALIVPnZ7UqIUFi6RLpUiC8+WGkgB8iFpHPtsy FqC4x41TiUzJ5HrWN4+9v+bz6qR59/WdEBCP1fjdEAG0oe73KtbcjOm2cvWG9Xcm551i +Mmdx/e6y/N4QTud4q/zZcdbO3x8QjETg2f5Q= Received: by 10.223.103.148 with SMTP id k20mr242691fao.101.1280415617803; Thu, 29 Jul 2010 08:00:17 -0700 (PDT) Received: from limbo.lan ([193.33.173.33]) by mx.google.com with ESMTPS id w11sm354025fao.37.2010.07.29.08.00.15 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Jul 2010 08:00:15 -0700 (PDT) Message-ID: <4C51977D.7060901@gmail.com> Date: Thu, 29 Jul 2010 18:00:13 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.1.11) Gecko/20100722 Thunderbird/3.0.6 MIME-Version: 1.0 Newsgroups: gmane.os.freebsd.questions To: Unga References: <4C516751.5080307@gmail.com> <523373.54704.qm@web57008.mail.re3.yahoo.com> In-Reply-To: <523373.54704.qm@web57008.mail.re3.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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:00:19 -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.