Unverified Commit 82f86c7e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

wpsoffice-cn: fix et/wpp/wpspdf failure to launch with no mode configured (#462142)

parents 60b1c9d7 1693402b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -139,6 +139,11 @@ stdenv.mkDerivation {
    # libmysqlclient dependency
    patchelf --replace-needed libmysqlclient.so.18 libmysqlclient.so $out/opt/kingsoft/wps-office/office6/libFontWatermark.so
    patchelf --add-rpath ${libmysqlclient}/lib/mariadb $out/opt/kingsoft/wps-office/office6/libFontWatermark.so
    # fix et/wpp/wpspdf failure to launch with no mode configured
    for i in $out/bin/*; do
      substituteInPlace $i \
        --replace-fail '[ $haveConf -eq 1 ] &&' '[ ! $currentMode ] ||'
    done
  '';

  passthru.updateScript = ./update.sh;