git.iko.soy/typeable/nixpkgs
on master help sign in
glib: fix compilation on SmartOS/Illumos (close #12479)

Recent illumos includes a linux-incompatible `inotify.h` header, which configure detects: compilation fails. Also, a newer `dtrace` on SmartOS fails creating the probes ELF linkable object (with `dtrace -G`). Disable for now. Remove old configure option `--disable-modular-tests`.

commite67717bc8d545c593f974163a8a496f5f898b73d authorDanny Wilson <danny@prime.vc> dateTue 19 Jan 2016, 15:59 (11 years ago) parentd51204e
1 file changed+7−2
pkgs/development/libraries/glib/default.nix+7−2
pkgs/development/libraries/glib/default.nix+7−2
@@ -68,12 +68,17 @@ stdenv.mkDerivation rec {
6868
6969 configureFlags =
7070 optional stdenv.isDarwin "--disable-compile-warnings"
71− ++ optional stdenv.isFreeBSD "--with-libiconv=gnu"
72− ++ optional stdenv.isSunOS ["--disable-modular-tests" "--with-libiconv"];
71+ ++ optional (stdenv.isFreeBSD || stdenv.isSunOS) "--with-libiconv=gnu"
72+ ++ optional stdenv.isSunOS "--disable-dtrace";
7373
7474 NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl"
7575 + optionalString stdenv.isSunOS " -DBSD_COMP";
7676
77+ preConfigure = if !stdenv.isSunOS then null else
78+ ''
79+ sed -i -e 's|inotify.h|foobar-inotify.h|g' configure
80+ '';
81+
7782 preBuild = optionalString stdenv.isDarwin
7883 ''
7984 export MACOSX_DEPLOYMENT_TARGET=