On Tue, Aug 09, 2016 at 08:55:54PM +0200, Marc Espie wrote:
> On Tue, Aug 09, 2016 at 02:45:46PM -0400, Michael McConville wrote:
> > Hi, everyone.
> > 
> > I was recently discussing this with edd@, who suggested that I pull in
> > ports@ and Marc.
> > 
> > Syncthing is a daemon that lets you sync data between devices. By
> > default, both metadata and user data are stored in /var/syncthing.
> > However, when you update or delete the package, pkg_add tells you the
> > following:
> > 
> > > --- -syncthing-0.13.9 -------------------
> > > You should also run rm -rf /var/syncthing/{.,}*
> > 
> > For many or most users, this will delete their data and their device
> > associations.
> > 
> > Here are the relevant PLIST lines:
> > 
> > > @sample ${VARBASE}/syncthing/
> > > @extraunexec rm -rf ${VARBASE}/syncthing/{.,}*
> > 
> > The porting docs describe @extraunexec as being for "system files
> > created by the package at runtime". While this is a somewhat accurate
> > description of /var/syncthing, I don't think that @extraunexec is
> > intended for user data or for program data that is effectively long-term
> > config data (e.g. Syncthing associations between devices).
> > 
> > I couldn't find any indication in the Syncthing docs that any metadata
> > needs to be deleted when updating. However, I could have easily missed
> > something.
> > 
> > Input appreciated.
> > 
> > Thanks for your time,
> > Mike
> 
> That's the expected behavior. We're talking pkg_delete vs pkg_delete -c.
> pkg_delete does tell you that you also need to remove this to wipe the
> package completely.

The problem is that these messages are displayed at update time.
I assume because from pkg_add's point of view it's a delete+add.
IMHO UNMESSAGE and @extraunexec stuffs should not be displayed at update time.

-- 
Antoine

Reply via email to