On 2017/03/01 18:07, sven falempin wrote: > On Wed, Mar 1, 2017 at 10:25 AM, Marc Espie <es...@nerim.net> wrote: > > > On Tue, Feb 28, 2017 at 10:21:05PM +0000, Stuart Henderson wrote: > > > Send diff :) > > > > Rather, do not. > > > > Removing keywords from pkg tools is somewhat tricky. > > There are some steps you have to take to keep pkg_add -u working.
> http://pastebin.com/QZacSKMU > > This breaks pkg_add -u because old installed package with the > sysctl declaration wont be understood. Actually it breaks pkg_delete too. And looking at the rcs files, some of the ports using this were removed only relatively recently (relating to linux emul, etc). There's definitely more involved than just removing the lines. > Running this would fix no ? > > sed -i s/@sysctl.*//g /var/db/pkg/*/+CONTENTS In some cases. In others the command line will be too long. In any event poking the package db files like that isn't recommended. > > Are you implying some user out there are using package to push > configuration live ? > ( The sysctl wont be there after a reboot ) > > Index: pkg_create.1 > =================================================================== > RCS file: /cvs/src/usr.sbin/pkg_add/pkg_create.1,v > retrieving revision 1.102 > diff -u -p -r1.102 pkg_create.1 > --- pkg_create.1 28 Jun 2016 15:30:29 -0000 1.102 > +++ pkg_create.1 1 Mar 2017 23:07:12 -0000 > @@ -730,6 +730,9 @@ variable > is set to exactly/at least a given value > .Ar val . > Adjust it otherwise. > +.Xr > +sysctl.conf 5 > +must be updated. > .Pp > .It Cm @unexec Ar command > Execute > > > -- > ------------------------------------------------------------ > --------------------------------------------------------- > () ascii ribbon campaign - against html e-mail > /\