On Wed, Mar 01, 2017 at 11:36:44PM +0000, Stuart Henderson wrote: > 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.
Which is *exactly* what I mean by "do not". Poking things you don't really understand is a fairly bad idea. I've deprecated lots of keywords in pkg tools over the years. The process is somewhat lengthy. I'd rather do it myself whenever I have time so that it gets done correctly.