summaryrefslogtreecommitdiff
path: root/install-with-hardlinks.diff
diff options
context:
space:
mode:
Diffstat (limited to 'install-with-hardlinks.diff')
-rw-r--r--install-with-hardlinks.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/install-with-hardlinks.diff b/install-with-hardlinks.diff
new file mode 100644
index 0000000..956f41f
--- /dev/null
+++ b/install-with-hardlinks.diff
@@ -0,0 +1,13 @@
+Index: libreoffice-7.0.0.0.beta2/solenv/bin/modules/installer/worker.pm
+===================================================================
+--- libreoffice-7.0.0.0.beta2.orig/solenv/bin/modules/installer/worker.pm
++++ libreoffice-7.0.0.0.beta2/solenv/bin/modules/installer/worker.pm
+@@ -347,7 +347,7 @@ sub install_simple ($$$$$$)
+ `mkdir -p "$destdir$destination"`;
+ }
+ else {
+- copy ("$sourcepath", "$destdir$destination") || die "Can't copy file: $sourcepath -> $destdir$destination $!";
++ link ("$sourcepath", "$destdir$destination") || die "Can't hardlink file: $sourcepath -> $destdir$destination $!";
+ my $sourcestat = stat($sourcepath);
+ utime ($sourcestat->atime, $sourcestat->mtime, "$destdir$destination");
+ chmod (oct($unixrights), "$destdir$destination") || die "Can't change permissions: $!";