55
66 # For fixing up execution of /bin/ls, which is necessary for
77 # product unlocking.
8- , coreutils , libredirect
8+ , coreutils
99
1010, pname , version , edition , suiteName , src , archive
1111
@@ -49,22 +49,7 @@ in stdenv.mkDerivation rec {
4949 runHook postUnpack
5050 '' ;
5151
52- installPhase = let
53- # SoftMaker/FreeOffice collects some system information upon
54- # unlocking the product. But in doing so, it attempts to execute
55- # /bin/ls. If the execve syscall fails, the whole unlock
56- # procedure fails. This works around that by rewriting /bin/ls
57- # to the proper path.
58- #
59- # SoftMaker Office restarts itself upon some operations, such
60- # changing the theme and unlocking. Unfortunately, we do not
61- # have control over its environment then and it will fail
62- # with an error.
63- lsIntercept = ''
64- --set LD_PRELOAD "${ libredirect } /lib/libredirect.so" \
65- --set NIX_REDIRECTS "/bin/ls=${ coreutils } /bin/ls"
66- '' ;
67- in ''
52+ installPhase = ''
6853 runHook preInstall
6954
7055 mkdir -p $out/share
@@ -73,12 +58,9 @@ in stdenv.mkDerivation rec {
7358 # Wrap rather than symlinking, so that the programs can determine
7459 # their resource path.
7560 mkdir -p $out/bin
76- makeWrapper $out/share/${ pname } ${ edition } /planmaker $out/bin/${ pname } -planmaker \
77- ${ lsIntercept }
78- makeWrapper $out/share/${ pname } ${ edition } /presentations $out/bin/${ pname } -presentations \
79- ${ lsIntercept }
80- makeWrapper $out/share/${ pname } ${ edition } /textmaker $out/bin/${ pname } -textmaker \
81- ${ lsIntercept }
61+ makeWrapper $out/share/${ pname } ${ edition } /planmaker $out/bin/${ pname } -planmaker
62+ makeWrapper $out/share/${ pname } ${ edition } /presentations $out/bin/${ pname } -presentations
63+ makeWrapper $out/share/${ pname } ${ edition } /textmaker $out/bin/${ pname } -textmaker
8264
8365 for size in 16 32 48 64 96 128 256 512 1024; do
8466 mkdir -p $out/share/icons/hicolor/'' ${size}x'' ${size}/apps
0 commit comments