ports/devel/glib20/files/patch-meson.build
John Baldwin 483150526a Use kinfo_getfile() to implement fdwalk().
Previously, the kern.file sysctl (which queries the global file table)
was queried and the results saved in an on-stack buffer.  With a
sufficiently active system the sysctl's output could overflow the
stack's available space.  Instead, switch to kinfo_getfile() from
libutil.  This uses a sysctl which queries only the open files for the
current process, and it uses heap space instead of the stack to store
the sysctl output.

PR:		253602
Submitted by:	ps (build glue patches)
Reported by:	ps
Reviewed by:	bapt
MFH:		2021Q1
Differential Revision:	https://reviews.freebsd.org/D28904
2021-02-26 19:31:04 +00:00

11 lines
305 B
Text

--- meson.build.orig 2021-02-11 04:24:55.280943200 -0800
+++ meson.build 2021-02-18 15:34:48.476370000 -0800
@@ -2287,6 +2287,8 @@
test_timeout = 60
test_timeout_slow = 180
+libutil = [cc.find_library('util', required : true)]
+
pkg = import('pkgconfig')
windows = import('windows')
subdir('glib')