!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
17 Nov 2025
@lt1379:matrix.orgLun26.101:09:22
@reckenrode:matrix.orgRandy EckenrodeThis is also a known issue. I was complaining about it earlier today. I had thought someone would have submitted PRs to disable the tests.01:09:28
@reckenrode:matrix.orgRandy EckenrodeDoes the patch fix the issue? I was using a workaround set of commits that just disabled the test.01:10:22
@ihar.hrachyshka:matrix.orgIhar 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
@reckenrode:matrix.orgRandy Eckenrodehttps://matrix.to/#/!lheuhImcToQZYTQTuI:nixos.org/$lL5OOpX3h6xkj46aagLfnJGDZFA_4TxSysI7IyIqToU?via=nixos.org&via=matrix.org&via=nixos.dev01:12:59
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI saw c-ares thingy. is it the same?01:13:40
@reckenrode:matrix.orgRandy Eckenrode Why not check for __APPLE__ and error out for an unknown platform? 01:13:42
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaoops nevermind, matrix client is misbehaving01:14:01
@reckenrode:matrix.orgRandy 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
@reckenrode:matrix.orgRandy 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:matrix.orgIhar Hrachyshkaguess 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
@reckenrode:matrix.orgRandy EckenrodeMy 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
@reckenrode:matrix.orgRandy EckenrodeIt 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
@reckenrode:matrix.orgRandy EckenrodeNow that I have a working Lix again, I can try building KosmicKrisp.01:19:07
@ihar.hrachyshka:matrix.orgIhar Hrachyshkayep 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:matrix.orgIhar Hrachyshka(if they use the interface AND assume it's safe)01:19:42
@ihar.hrachyshka:matrix.orgIhar Hrachyshkait's not clear if gnugrep is affected per se - I don't think it's multi-threaded?01:20:20
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathey just run all tests from gnulib regardless.01:20:33
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathe 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 all01:26:10
@reckenrode:matrix.orgRandy EckenrodeRequires Metal 4. Good thing we have the 26.0 SDK.01:28:19
@reckenrode:matrix.orgRandy EckenrodeKosmicKrisp doesn’t appear to be included in Mesa 25.3.01:31:37
@reckenrode:matrix.orgRandy Eckenrodehttps://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
@reckenrode:matrix.orgRandy Eckenrode mesa_clc crashes when building KosmicKrisp. 😭 02:13:49
@ihar.hrachyshka:matrix.orgIhar Hrachyshkagnugrep 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:matrix.orgIhar HrachyshkaI assume for coreutils we'd have to actually backport the gnulib fix?02:31:56
@spewdins:beeper.comspewdinsTotally kinda sorta off topic02:32:11
@spewdins:beeper.comspewdinsI’m porting wayland to macOS02:32:17
@spewdins:beeper.comspewdinsAnd I’m getting somewhere02:32:24
@spewdins:beeper.comspewdinsimage0.jpeg
Download image0.jpeg
02:32:39
@spewdins:beeper.comspewdinsScreenshot_2025-11-15_at_9.37.41_PM.png
Download Screenshot_2025-11-15_at_9.37.41_PM.png
02:32:39

Show newer messages


Back to Room ListRoom Version: 6