Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 14:34:41 +0300
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to mass recompile broken packages?
Message-ID:  <4C516751.5080307@gmail.com>
In-Reply-To: <929148.80489.qm@web57005.mail.re3.yahoo.com>
References:  <929148.80489.qm@web57005.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C516751.5080307>