git.iko.soy/typeable/nixpkgs
on master help sign in
gambit: disable use of poll() on Darwin

Darwin has a bug which affects the use of poll() with a tty fd, which affects gambit's REPL when at a console, causing 100% CPU usage. Gambit recommends this is disabled on Darwin.

commit61335d51ace64fa75daa14c58768945af255d997 authorJason Felice <jason.m.felice@gmail.com> dateMon 18 May 2020, 17:23 (7 years ago) parentb32a59d
1 file changed+3−2
pkgs/development/compilers/gambit/build.nix+3−2
pkgs/development/compilers/gambit/build.nix+3−2
@@ -40,7 +40,6 @@ gccStdenv.mkDerivation rec {
4040 "--enable-gcc-opts"
4141 "--enable-shared"
4242 "--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
43− "--enable-poll"
4443 "--enable-openssl"
4544 "--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
4645 # "--enable-debug" # Nope: enables plenty of good stuff, but also the costly console.log
@@ -57,7 +56,9 @@ gccStdenv.mkDerivation rec {
5756 # "--enable-coverage"
5857 # "--enable-inline-jumps"
5958 # "--enable-char-size=1" # default is 4
60− ];
59+ ] ++
60+ # due not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
61+ lib.optional (!gccStdenv.isDarwin) "--enable-poll";
6162
6263 configurePhase = ''
6364 export CC=${gcc}/bin/gcc \