!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1175 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org191 Servers

Load older messages


SenderMessageTime
29 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeBut we’re building everything from source. Apple has to support older binaries.00:45:17
@reckenrode:matrix.orgRandy Eckenrodehttps://devblogs.microsoft.com/oldnewthing/20221102-00/?p=10734300:45:40
@reckenrode:matrix.orgRandy EckenrodeApple is kind of stuck with a crappy ABI it inherited from BSD.00:46:00
@emilazy:matrix.orgemily well select's ABI has no idea how big the fd_set is anyway 00:46:06
@emilazy:matrix.orgemily we are linking against the system select 00:46:16
@emilazy:matrix.orgemily admittedly it'd be an ABI break for fd_set not beind a pointer although I'm not sure if POSIX even guarantees that fd_set has a known size… 00:46:56
@emilazy:matrix.orgemily fwiw changing system ABI in cc-wrapper also means that everything that doesn't use a wrapper will potentially result in UB 00:49:06
@emilazy:matrix.orgemilye.g., libclang00:49:10
@emilazy:matrix.orgemilystuff like hardening flags doesn't have that kind of effect00:49:40
@ihar.hrachyshka:matrix.orgIhar HrachyshkaThe behaviour of these macros is undefined if the fd argument is less than 0 or greater than or equal to FD_SETSIZE. Admittedly, there's nothing in POSIX that forces the value, but Apple decided to force it in libSystem. So maybe I should replace the wording that this could be related to POSIX certification with something better...00:50:01
@reckenrode:matrix.orgRandy EckenrodeThe unwrapped case is a good argument not to do this by default, especially with more languages handling compilation themselves (e.g., Rust, Swift, Zig).00:51:13
@reckenrode:matrix.orgRandy Eckenrode * 00:51:26
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaack. are we ok with glib local change?00:51:53
@emilazy:matrix.orgemily fwiw it looks like the flag actually redirects select to a variant with a different suffix 00:52:12
@emilazy:matrix.orgemily non-pointer fd_set ABI would still be an issue though (for both Apple and us) 00:52:29
@emilazy:matrix.orgemilylet's see what upstream says? hopefully it can get merged there and we can just backport it00:53:11
@emilazy:matrix.orgemilyI'm wondering if glib could just do the heap allocation thing, but I guess that would be more major surgery00:53:20
@emilazy:matrix.orgemily I'm a bit worried about the scope of glib_conf 00:53:33
@ihar.hrachyshka:matrix.orgIhar Hrachyshkait's on stack atm.00:53:36
@emilazy:matrix.orgemilye.g. is it set just for glib sources or for the sources of all programs that use glib?00:53:40
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaafaiu this is for building glib.00:53:56
@ihar.hrachyshka:matrix.orgIhar Hrachyshka(not for dependencies)00:54:16
@ihar.hrachyshka:matrix.orgIhar Hrachyshka* (not for children users)00:54:23
@emilazy:matrix.orgemily https://gitlab.gnome.org/GNOME/glib/-/blob/2f8a985d6f603257707f1805713c42df72532a01/glib/gtypes.h does #include <glibconfig.h> 00:54:33
@emilazy:matrix.orgemily(and is included by other public glib headers)00:54:46
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaglibconfig.h ! config.h?00:54:54
@reckenrode:matrix.orgRandy Eckenrode Is it possible to add a test? Like try to have g_pol work with a large number of fds? Would that be an okay test? 00:54:57
@reckenrode:matrix.orgRandy Eckenrode * Is it possible to add a test? Like try to have g_poll work with a large number of fds? Would that be an okay test? 00:55:19
@emilazy:matrix.orgemily hmm, though I have no glibconfig.h 00:55:33
@ihar.hrachyshka:matrix.orgIhar Hrachyshkahttps://github.com/GNOME/glib/blob/main/glib/glibconfig.h.in00:56:02

Show newer messages


Back to Room ListRoom Version: 6