portmaster deletes failed ports

Doug Barton dougb at FreeBSD.org
Wed Sep 6 18:14:41 UTC 2006

Bob Willcox wrote:
> On Tue, Sep 05, 2006 at 10:09:58AM -0700, Doug Barton wrote:
>> Hans Lambermont wrote:
>>> RW wrote:
>>> ...
>>>> 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. 
>>> I can confirm this. The auto-restore-backup would be a nice feature.
>>> Doug ?  ;-)
>> I'm extremely reluctant to start trying to think for the user. Down that
>> path lies madness.
>> It's easy enough to 'echo BACKUP=yes >> ~/.portmasterrc' (or
>> /etc/portmaster.rc) and then do the restore yourself if it's a port that you
>> consider mission critical. If you're going to add that to the rc file, I
>> suggest you also do 'mkdir -p /usr/ports/packages/All' and that way you'll
>> always know where your backups are.
> I admit that this missing feature is why I went back to portupgrade. I
> liked the simplicity of portmaster over portupgrade, but having it fail
> on an install and leave the port missing (and dying) was sufficiently
> annoying to cause me to revert to portupgrade.

I understand "missing," but what does "and dying" mean in this context?
Also, I'm very curious to know if a lot of people are having problems with
failed installs often enough to make this an issue. Personally, it's
extremely rare for me to encounter a failed install (as opposed to a
failed build, which is relatively more common, but not fatal in the
portmaster context).

> I'm not suggesting that you should implement it though. Maybe pointing
> out in the man page that if the install of a port fails you will need to
> reinstall the old version manually would be helpful.

I'm starting to think that the way to handle this would be to have the
backup option be on by default, and document the process for recovering
from a failed install thoroughly in the man page. Then if that happens, I
can print a message that refers the user to the man page for recovery

Does that sound reasonable?



    This .signature sanitized for your protection

More information about the freebsd-ports mailing list