NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/54730 CVS commit: src/usr.sbin/postinstall



> IIUC, etc.tgz is not extracted into ${DESTDIR} on upgrade installation.
> Then upgraded ${DESTDIR} doesn't have updated /var/db/obsolete/etc data.
> 
> That's the reason why obsolete /etc/rc.d/dhclient etc. won't
> be removed even after postinstall(8) during upgrade.
> That's the reason why etc set is special.

Thanks for the explanation. I get it now. I think that this is the bug there:
We should be extracting at least the obsolete file (and perhaps locate.database)
from the etc set instead of doing special things in the postinstall script because
we are not even guaranteed to have the sources around.

> You are pointing out style issue?  How should it be written?

That is minor and I will take care of it. I just don't think it is the right
way to fix it because it does not work all the time and the decision
whether to use the source instead of the installed files is done in
another place. How hard would it be to fix the upgrade process instead to
extract those two files?

christos

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index