[packages/libreoffice] test whether hardlinks can be used and fallback to cp
atler
atler at pld-linux.org
Thu Feb 16 12:39:29 CET 2023
commit a95c3c704292b14102b6c49594fe64351904e95f
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Feb 16 09:09:22 2023 +0100
test whether hardlinks can be used and fallback to cp
libreoffice.spec | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
---
diff --git a/libreoffice.spec b/libreoffice.spec
index 70eedaa..cf02a7c 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -2899,24 +2899,28 @@ for dir in *-%{version}; do
done
install -d ext_sources
-ln %{SOURCE20} ext_sources
-ln %{SOURCE21} ext_sources
-ln %{SOURCE22} ext_sources
-ln %{SOURCE23} ext_sources
-ln %{SOURCE24} ext_sources
-ln %{SOURCE25} ext_sources
-ln %{SOURCE26} ext_sources
-ln %{SOURCE27} ext_sources
-ln %{SOURCE28} ext_sources
-ln %{SOURCE30} ext_sources
-ln %{SOURCE31} ext_sources
-ln %{SOURCE32} ext_sources
+if cp -pl %{SOURCE20} ext_sources; then
+ l=l
+else
+ cp -p %{SOURCE20} ext_sources
+fi
+cp -p$l %{SOURCE21} ext_sources
+cp -p$l %{SOURCE22} ext_sources
+cp -p$l %{SOURCE23} ext_sources
+cp -p$l %{SOURCE24} ext_sources
+cp -p$l %{SOURCE25} ext_sources
+cp -p$l %{SOURCE26} ext_sources
+cp -p$l %{SOURCE27} ext_sources
+cp -p$l %{SOURCE28} ext_sources
+cp -p$l %{SOURCE30} ext_sources
+cp -p$l %{SOURCE31} ext_sources
+cp -p$l %{SOURCE32} ext_sources
%if %{without system_cmis}
-ln %{SOURCE33} ext_sources
+cp -p$l %{SOURCE33} ext_sources
%endif
:> src.downloaded
-ln %{SOURCE34} external/skia
+cp -p$l %{SOURCE34} external/skia
%build
# Make sure we have /proc mounted - otherwise idlc will fail later.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libreoffice.git/commitdiff/b5fdb33e8cba51bb86042643605edb78a5d5b654
More information about the pld-cvs-commit
mailing list