portmaster deletes failed ports

RW list-freebsd-2004 at morbius.sent.com
Mon Sep 4 23:49:13 UTC 2006


On Monday 04 September 2006 22:05, Rene Ladan wrote:
> RW schreef:
> > On Monday 04 September 2006 16:15, Rene Ladan wrote:
> >> Hi,
> >>
> >> I ran my approx. daily portmaster -a -d run this morning.  It started
> >> upgrading sysutils/bsdstats, but failed because pkg-install was not
> >> present.  When that file got committed later this morning, portmaster
> >> didn't upgrade the port because ... (huh ?) ... bsdstats was not
> >> installed anymore.
> >
> > The old version of a package must be deleted before a new one can be
> > installed. Build tools like port[upgrade|manager|master] create a backup
> > package file from the existing installed files, which is supposed to be
> > reinstalled, if the port install fails.
>
> I forgot to mention in my original mail that I did:
> # portsnap fetch update
> # portmaster -a -d
> (build failed, pkg deleted)
> (...)
> (read mail about bsdstats being fixed)
> # portsnap fetch update
> # portmaster -a -d
>
> > You're seeing a bug rather than a missing feature.
>
> I know.

I don't use portmaster myself, but I just took a look at the script and, 
unless I'm missing something, it does appear that this feature is missing 
from portmaster. There an option to create backup packages, but nothing to  
automatically restore the previous version if the install fails. 
 



More information about the freebsd-ports mailing list