On 2009/09/21 18:57, Tomasz Pajor wrote:
> 
> >>I've run /usr/ports/infrastructure/build/out-of-date, got the output,
> >>http://puffy.pl/update
> >>
> >>What is the best way to update all the ports?
> >
> >PKG_PATH=ftp://some.mirror/pub/OpenBSD/snapshots/packages/`machine -a`/ \
> >  sudo pkg_add -u
> True, the easiest and fastest way, but if i want to compile them from
> source?

pkg_info -qP /var/db/pkg/* > ~/installed-pkgs
pkg_delete /var/db/pkg/*
cd /usr/ports
make SUBDIRLIST=~/installed/pkgs install

You can skip the pkg_delete part and use the SUBDIRLIST from
out-of-date, but some builds are likely to fail, then you will
have to remove those packages and any others which depend
on them, then clean the build directory for failed builds,
and rebuild them again.

Is there a particular reason you want to compile from source?
It's a lot of extra work and cpu cycles, and in many cases has
absolutely no advantage.

Reply via email to