On Fri, Aug 26, 2022 at 04:08:34PM +0000, Klemens Nanni wrote:
> On Fri, Aug 26, 2022 at 09:53:35AM -0600, Theo de Raadt wrote:
> > Klemens Nanni <[email protected]> wrote:
> > 
> > > On Fri, Aug 26, 2022 at 04:15:43PM +0100, Stuart Henderson wrote:
> > > > On 2022/08/26 09:49, Klemens Nanni wrote:
> > > > > grep and CVS agree that this is a switch(4) left-over.
> > > > > 
> > > > > OK?
> > > > 
> > > > This is exported to userland isn't it?
> > > 
> > > No, everything is under _KERNEL.
> > 
> > But there are a few libraries and programs which #define _KERNEL
> > 
> > So when you see _KERNEL, you need to remain a bit cynical, and check.
> 
> Oh wel...
> 
> https://codesearch.debian.net/search?q=%23%5Cs*define%5Cs%2B_KERNEL%5Cb+filetype%3Ac&literal=0
> 
> This shows many false positives, but at least libgtop2 does define
> _KERNEL and includes <net/if_var.h> so I guess we need to bump that.
> 
> Let me cross-check this list with a search for <net/if_var.h> and come
> up with a list of ports to bump.

Those define _KERNEL
        
https://codesearch.debian.net/search?q=%23%5Cs*define%5Cs%2B_KERNEL%5Cb+filetype%3Ac&literal=0
        https://codesearch.debian.net/results/a710598a524e63cb/packages.txt

Those include <net/if_var.h>
        
https://codesearch.debian.net/search?q=%3Cnet%2Fif_var.h%3E+filetype%3Ac&literal=1
        curl -s 
https://codesearch.debian.net/results/3264f4d6c8ec573a/packages.txt

You may need to query the search URL to make the packages.txt link
available (again).

Running the packages.txt files through 'sort -u' and 'comm -12' and
filtering for ports we actually have leaves us with

        aircrack-ng
        firefox
        firefox-esr
        gst-plugins-bad1.0
        gst-plugins-bad1.0-contrib
        libgtop2
        libusrsctp
        miniupnpd
        net-snmp
        qt6-webengine
        qtwebengine-opensource-src
        thunderbird
        warzone2100
        zabbix

I'm sure that some of them are false positives because they
a) define _KERNEL after including <net/if_var.h>
b) don't do either of it on OpenBSD

OK if I just REVISION bump all these and be done with it?  That'd be
this list of PKGPATHs:

        security/aircrack-ng
        www/firefox-esr
        www/mozilla-firefox
        multimedia/gstreamer1/plugins-bad
        devel/libgtop2
        net/usrsctp
        net/miniupnp/miniupnpd
        net/net-snmp,-main
        net/net-snmp,-tkmib
        mail/mozilla-thunderbird
        games/warzone2100
        net/zabbix,-main
        net/zabbix,-proxy,mysql
        net/zabbix,-proxy,pgsql
        net/zabbix,-proxy,sqlite3
        net/zabbix,-server,mysql
        net/zabbix,-server,pgsql
        net/zabbix,-web

Reply via email to