File install-with-hardlinks.diff of Package libreoffice

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: $!";
openSUSE Build Service is sponsored by