[MacPorts] #63650: Regression in glib2 after update to 2.62 version with qemu tap-bridge networking
MacPorts
noreply at macports.org
Wed Oct 20 10:40:43 UTC 2021
#63650: Regression in glib2 after update to 2.62 version with qemu tap-bridge
networking
-----------------------+---------------------------------------------------
Reporter: andriytk | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: qemu tap bridge networking regression
Port: glibc2 |
-----------------------+---------------------------------------------------
Comment (by andriytk):
Maybe we need to add something like this to meson.build for macOS too:
{{{
if host_system == 'windows'
# Poll doesn't work on devices on Windows
glib_conf.set('BROKEN_POLL', true)
endif
}}}
https://gitlab.gnome.org/GNOME/glib/-/blob/85969ce3dac5095d6bcdea5fa662220d01474f3c/meson.build#L151-154
Apparently, in the old version with configure.ac - the broken poll was
detected automatically:
{{{
AC_MSG_CHECKING([for broken poll])
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdlib.h>
#include <fcntl.h>
#include <poll.h>
int main(void) {
struct pollfd fds[1];
int fd;
fd = open("/dev/null", 1);
fds[0].fd = fd;
fds[0].events = POLLIN;
fds[0].revents = 0;
if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
exit(1); /* Does not work for devices -- fail */
}
exit(0);
}]])],
[broken_poll=no],
[broken_poll=yes
AC_DEFINE(BROKEN_POLL,1,[poll doesn't work on devices])],
[broken_poll="no (cross compiling)"])
AC_MSG_RESULT($broken_poll)
}}}
https://gitlab.gnome.org/GNOME/glib/-/blob/d80d9af9b7f1fdd25e61ae04fb660e65bf5bb5fc/configure.ac#L2353-2374
But in the new version, after they switched to meson.build - this does not
work anymore, I'm afraid.
--
Ticket URL: <https://trac.macports.org/ticket/63650#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list