NetBSD-Users archive

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

Re: net/py-gevent build error on NetBSD in pkgsrc-2019Q1



> Hi There,
> 
> I've tried to build py-gevent (python 3.6 version) on NetBSD 7.2
> 
> The process breaks with an error:
> 
> deps/libuv/src/unix/netbsd.c: In function 'uv_exepath':
> deps/libuv/src/unix/netbsd.c:81:12: error: 'KERN_PROC_PATHNAME' undeclared (first use in this function)
>   mib[3] = KERN_PROC_PATHNAME;
> 
> Formerly this macro was defined in sys/sysctl.h as:
> #define KERN_PROC_PATHNAME "/proc"
> 
> Nowadays this is missing in NetBSD 7.2 and 8.0, too.
> 
> If the macro is set, then py-gevent builds normally.
> 
> Any idea how to fix? I mean in NetBSD or in the py-gevent package?
> 
> Thank you:
> 
> FeZ

py-gevent uses an embedded libuv. It would be better to link against libuv provided by devel/libuv package.
A quick fix would be to add devel/libuv/patches/patch-src_unix_netbsd.c to py-gevent (with a different path, of course).

I'll look into it later.

Thanks for pointing this out. :)

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index