Commit 06c817b2 authored by sternenseemann's avatar sternenseemann
Browse files

s6-rc: use --replace-fail for cross substitutions

We would probably prefer a warning if an additional header is added we
need to substitute, but that is practically impossible…
parent 4b46c7e8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -50,9 +50,9 @@ skawarePackages.buildPackage {
  # system we're cross-compiling for.
  postConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform) ''
    substituteInPlace src/s6-rc/s6-rc-compile.c \
        --replace '<execline/config.h>' '"${targetPackages.execline.dev}/include/execline/config.h"' \
        --replace '<s6/config.h>' '"${targetPackages.s6.dev}/include/s6/config.h"' \
        --replace '<s6-rc/config.h>' '"${targetPackages.s6-rc.dev}/include/s6-rc/config.h"'
        --replace-fail '<execline/config.h>' '"${targetPackages.execline.dev}/include/execline/config.h"' \
        --replace-fail '<s6/config.h>' '"${targetPackages.s6.dev}/include/s6/config.h"' \
        --replace-fail '<s6-rc/config.h>' '"${targetPackages.s6-rc.dev}/include/s6-rc/config.h"'
  '';

  postInstall = ''