Commit ad91b28c authored by Adam Joseph's avatar Adam Joseph
Browse files

skalibs: fix cross



skalibs-2.14.0.0 added detection for some weird bug exhibited in
"old glibcs and some virtual platforms".  When cross compiling the
detector cannot be run:

> posixspawnearlyreturn: `yes` if the target has a broken
> `posix_spawn()` implementation that can return before the
> child has successfully exec'ed. That happens with old glibcs
> and some virtual platforms.

I just took a wild guess here and picked `no`.

Co-authored-by: default avatarAlyssa Ross <hi@alyssa.is>
parent eb2f8aa6
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
{ skawarePackages, pkgs }:
{ lib
, stdenv
, skawarePackages
, pkgs
}:

with skawarePackages;

@@ -21,6 +25,17 @@ buildPackage {
    # Empty the default path, which would be "/usr/bin:bin".
    # It would be set when PATH is empty. This hurts hermeticity.
    "--with-default-path="

  ] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [
    # ./configure: sysdep posixspawnearlyreturn cannot be autodetected
    # when cross-compiling. Please manually provide a value with the
    # --with-sysdep-posixspawnearlyreturn=yes|no|... option.
    #
    # posixspawnearlyreturn: `yes` if the target has a broken
    # `posix_spawn()` implementation that can return before the
    # child has successfully exec'ed. That happens with old glibcs
    # and some virtual platforms.
    "--with-sysdep-posixspawnearlyreturn=no"
  ];

  postInstall = ''