Commit e1786d99 authored by FliegendeWurst's avatar FliegendeWurst
Browse files

clisp: disable PIE hardening, fix strictDeps build

parent 844f2a5f
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  fetchFromGitLab,
  autoconf269,
  automake,
  bash,
  libtool,
  libsigsegv,
  gettext,
@@ -77,7 +78,10 @@ stdenv.mkDerivation {
    libtool
  ];
  buildInputs =
    [ libsigsegv ]
    [
      bash
      libsigsegv
    ]
    ++ lib.optional (gettext != null) gettext
    ++ lib.optional (ncurses != null) ncurses
    ++ lib.optional (pcre != null) pcre
@@ -141,10 +145,15 @@ stdenv.mkDerivation {
    cd builddir
  '';

  # ;; Loading file ../src/defmacro.lisp ...
  # *** - handle_fault error2 ! address = 0x8 not in [0x1000000c0000,0x1000000c0000) !
  # SIGSEGV cannot be cured. Fault address = 0x8.
  hardeningDisable = [ "pie" ];

  doCheck = true;

  postInstall = lib.optionalString (withModules != [ ]) (
    ''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full''
    ''bash ./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full''
    + lib.concatMapStrings (x: " " + x) withModules
  );