| 17 Nov 2025 |
Ihar Hrachyshka | I see. where has the complaining happened?
I checked the patch - it does some static array of a limited size carrying results over subsequent calls. looks like an actual fix.
# if !NL_LANGINFO_MTSAFE /* macOS, Solaris */
# ifdef __sun /* Solaris */
# define ITEMS (MAXSTRMSG + 1)
# else /* macOS */
# define ITEMS (CRNCYSTR + 20)
# endif
# define MAX_RESULT_LEN 80
static char *
nl_langinfo_unlocked (nl_item item)
{
static char result[ITEMS][MAX_RESULT_LEN];
/* The result of nl_langinfo is in storage that can be overwritten by
other calls to nl_langinfo. */
char *tmp = nl_langinfo (item);
if (item >= 0 && item < ITEMS && tmp != NULL)
| 01:12:34 |
Randy Eckenrode | https://matrix.to/#/!lheuhImcToQZYTQTuI:nixos.org/$lL5OOpX3h6xkj46aagLfnJGDZFA_4TxSysI7IyIqToU?via=nixos.org&via=matrix.org&via=nixos.dev | 01:12:59 |
Ihar Hrachyshka | I saw c-ares thingy. is it the same? | 01:13:40 |
Randy Eckenrode | Why not check for __APPLE__ and error out for an unknown platform? | 01:13:42 |
Ihar Hrachyshka | oops nevermind, matrix client is misbehaving | 01:14:01 |
Randy Eckenrode | No. I ran into it trying to get Lix to use a fixed curl in my configs. I ended up doing this lovely override:
lixPackageSets.stable = nixpkgs-unstable.lixPackageSets.stable.overrideScope (final: prev: {
lix = prev.lix.override {
curl = nixpkgs-unstable.curl.override {
c-aresMinimal = inputs.lix-fixed.legacyPackages.${pkgs.system}.c-aresMinimal.override {
inherit (nixpkgs-unstable) cmake stdenv updateAutotoolsGnuConfigScriptsHook;
};
};
};
});
| 01:14:18 |
Randy Eckenrode | * No. I ran into it trying to get Lix to use a fixed curl in my configs. I ended up doing this lovely override:
lixPackageSets.stable = nixpkgs-unstable.lixPackageSets.stable.overrideScope (final: prev: {
lix = prev.lix.override {
curl = nixpkgs-unstable.curl.override {
c-aresMinimal = inputs.lix-fixed.legacyPackages.${pkgs.system}.c-aresMinimal.override {
inherit (nixpkgs-unstable) cmake stdenv updateAutotoolsGnuConfigScriptsHook;
};
};
};
});
| 01:14:39 |
Ihar Hrachyshka | guess I'll 1) post a staging patch backporting the gnulib fix for gnugrep; 2) report a bug to gnugrep so that they bump their gnulib submodule. (they are still sitting on an Apr 2025 commit in master) | 01:17:49 |
Randy Eckenrode | My configs were my Swift branch from July, so I had some work to do to update them. My servers are actually still on 24.11, which should be fun to update. | 01:17:59 |
Randy Eckenrode | It also affects coreutils. Probably anything using gnulib, but we don’t have a good way of dealing with that because we don’t de-vendor gnulib. | 01:18:24 |
Randy Eckenrode | Now that I have a working Lix again, I can try building KosmicKrisp. | 01:19:07 |
Ihar Hrachyshka | yep anyone using an old gnulib is affected. frankly, anyone NOT using gnulib is also affected. (if they use the interface) | 01:19:18 |
Ihar Hrachyshka | (if they use the interface AND assume it's safe) | 01:19:42 |
Ihar Hrachyshka | it's not clear if gnugrep is affected per se - I don't think it's multi-threaded? | 01:20:20 |
Ihar Hrachyshka | they just run all tests from gnulib regardless. | 01:20:33 |
Ihar Hrachyshka | the patch implementing MT for grep is 10 yo and not merged: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20768 so probably it's enough to disable the test after all | 01:26:10 |
Randy Eckenrode | Requires Metal 4. Good thing we have the 26.0 SDK. | 01:28:19 |
Randy Eckenrode | KosmicKrisp doesn’t appear to be included in Mesa 25.3. | 01:31:37 |
Randy Eckenrode | https://www.phoronix.com/news/KosmicKrisp-Merged-Mesa-26.0 says it’s targeting Mesa 26.0, which I guess would be released next year. | 01:33:40 |
Randy Eckenrode | mesa_clc crashes when building KosmicKrisp. 😭 | 02:13:49 |
Ihar Hrachyshka | gnugrep here: https://github.com/NixOS/nixpkgs/pull/462444 (running nixpkgs-review for aarch64-darwin for -p gnugrep, should post the result in a few hours) | 02:31:10 |
Ihar Hrachyshka | I assume for coreutils we'd have to actually backport the gnulib fix? | 02:31:56 |
spewdins | Totally kinda sorta off topic | 02:32:11 |
spewdins | I’m porting wayland to macOS | 02:32:17 |
spewdins | And I’m getting somewhere | 02:32:24 |
spewdins |  Download image0.jpeg | 02:32:39 |
spewdins |  Download Screenshot_2025-11-15_at_9.37.41_PM.png | 02:32:39 |
spewdins | I wish a nix build of wayland was just readily available but isn’t. So.. | 02:32:54 |
spewdins | I also did write my own CALayer compositor (still wip) but I’m able to render nixos foot over waypipe | 02:33:20 |
spewdins | Oh yea I ported waypipe too | 02:33:25 |