From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 11:34:46 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 E006D106567B for ; Thu, 29 Jul 2010 11:34:46 +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 69BFB8FC19 for ; Thu, 29 Jul 2010 11:34:46 +0000 (UTC) Received: by fxm13 with SMTP id 13so130037fxm.13 for ; Thu, 29 Jul 2010 04:34:45 -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=N5up7ZA8zDS0luSORPgqBnRyaWfi2hVvThqrS9d39cM=; b=sSwmti+FxU6HKjmwO+i52eWHzYiZ7dojS9xExqxVoGTJTMK3BU6c75cgCXaBnqDV6L 7OtFvWWA0FaDg9gNQbjqW1SogMrcwNofXW38qWAfhwJqhO28Hqborcl/qKe865wICVE1 7YasnoaElsdX1Doi0B7Jq4Djlx6ohzKqb5534= 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=c9y8eodU73bueJgOo7aITNp+0NQ7cBf5VCFCjvJtNvFIn9Rnojso7qicWLWpYqIqBJ w7bNP3930//rGUpM/iLz4kD6261qiMgO7OBgNM197O5o1x3eWUbUVrIYA45d4OCI0isF uCo4MprlKDZwP96vlYbvRMIYyK7joUfEY1rvM= Received: by 10.223.126.84 with SMTP id b20mr11515658fas.98.1280403285294; Thu, 29 Jul 2010 04:34:45 -0700 (PDT) Received: from limbo.lan ([193.33.173.33]) by mx.google.com with ESMTPS id w11sm272129fao.13.2010.07.29.04.34.44 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Jul 2010 04:34:44 -0700 (PDT) Message-ID: <4C516751.5080307@gmail.com> Date: Thu, 29 Jul 2010 14:34:41 +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: <929148.80489.qm@web57005.mail.re3.yahoo.com> In-Reply-To: <929148.80489.qm@web57005.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 11:34:47 -0000 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. -- Sphinx of black quartz judge my vow.