Poutupgrade unsafe

Pete Slagle freebsd-questions at voidcaptain.com
Thu Sep 14 19:23:27 PDT 2006


Olivier Nicole wrote:

> I know the mistake was on my side, I was not carefull enough when
> using portupgrade on a production machine but...
> 
> Yesterday I froze our system for about one hour when I used
> portupgrade to upgrade Samba. It was a very minor upgrade (from 3.0.10
> to 3.0.23c,1 I think), but it happens that in between the 2 versions
> the location of the password file for Samba has been changed.
> 
> I beleive that the port maintener has a very good reason why to change
> this directory, but portupgrade would build and install the new Samba
> silently (if the message at the begining of the makefile did ever
> show, it was drawn into the flow of portupgrade messages) resulting
> the new Samba did not accept any connection.
> 
> I think that such modification should be considered as critical and
> portupgrade should stop and request acknowledgement before it keeps on
> installing. I am not sure the mechanism exists in portupgrade, but I
> see it as a very usefull enhancement.

This one bit me too, but we have only ourselves to blame; there was a
clear (well, pretty clear) warning of the change in /usr/ports/UPDATING.

You would never forget to check UPDATING before running portupgrade
would you?  :)



More information about the freebsd-questions mailing list