ports/editors/libreoffice/patches/patch-solenv_bin_ooinstall

20 lines
879 B
Text

Index: solenv/bin/ooinstall
--- solenv/bin/ooinstall.orig
+++ solenv/bin/ooinstall
@@ -81,10 +81,12 @@ if ($is_windows) {
# make distro-pack-install shuffle with the SDK installation to make it LSB compliant
# it creates symlinks from the original path to /usr/share; they are not valid with $DESTDIR
# and potential second ooinstall call fails with strange error messages if the old tree is still there
-if ($destdir && "$ENV{DESTDIR}" ne "/" && -d "$ENV{DESTDIR}") {
- print "Cleaning destdir...\n";
- system ("rm -rf \"$ENV{DESTDIR}\"") && die "Failed to clean up destdir: $!";
-}
+### SKIP ON OPENBSD ###
+#if ($destdir && "$ENV{DESTDIR}" ne "/" && -d "$ENV{DESTDIR}") {
+# print "Cleaning destdir...\n";
+# system ("rm -rf \"$ENV{DESTDIR}\"") && die "Failed to clean up destdir: $!";
+#}
+#######################
print "Running LibreOffice installer\n";