Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 08:28:50 -0700 (PDT)
From:      Unga <unga888@yahoo.com>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to mass recompile broken packages?
Message-ID:  <842968.46346.qm@web57003.mail.re3.yahoo.com>
In-Reply-To: <4C51977D.7060901@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--- On Thu, 7/29/10, Volodymyr Kostyrko <c.kworr@gmail.com> wrote:

> From: Volodymyr Kostyrko <c.kworr@gmail.com>
> Subject: Re: How to mass recompile broken packages?
> To: "Unga" <unga888@yahoo.com>
> 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






      



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