summaryrefslogtreecommitdiff
path: root/libreoffice-no-destdircheck.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-20 11:17:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-20 11:17:42 +0000
commite2ab3c3fc1131020c02df50dc2ecf4e8c454c0ab (patch)
tree60ab00f87d59bb0c7d2c863b65d2c5ccfd8774c6 /libreoffice-no-destdircheck.patch
parent5b94c33165b2b247e6929598a643bfee776d397c (diff)
automatic import of libreoffice
Diffstat (limited to 'libreoffice-no-destdircheck.patch')
-rw-r--r--libreoffice-no-destdircheck.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/libreoffice-no-destdircheck.patch b/libreoffice-no-destdircheck.patch
new file mode 100644
index 0000000..c9f5f18
--- /dev/null
+++ b/libreoffice-no-destdircheck.patch
@@ -0,0 +1,27 @@
+diff --git a/bin/distro-install-clean-up b/bin/distro-install-clean-up
+index 701c9ffa0972..0d0fc27246ff 100755
+--- a/bin/distro-install-clean-up
++++ b/bin/distro-install-clean-up
+@@ -71,22 +71,3 @@ for dir in $DESTDIR$DOCDIR $DESTDIR$INSTALLDIR/sdk/examples ; do
+ -name "manifest.mf" \) -exec chmod 644 {} \;
+ fi
+ done
+-
+-if test "z$DESTDIR" != "z" ; then
+- echo "Checking for DESTDIR inside installed files..."
+- found_destdir=
+- for file in `find $DESTDIR -type f` ; do
+- grep -q "$DESTDIR" $file && echo "$file: includes the string \"$DESTDIR\"" && found_destdir=1
+- done
+- if test "z$found_destdir" != "z" ; then
+- echo "!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!"
+- echo "The path DESTDIR:$DESTDIR was found inside some"
+- echo "installed files. It is probably a bug."
+- echo
+- echo "Especially, if the DESTDIR is set to \$RPM_BUILD_ROOT"
+- echo "when creating RPM packages. Even it could be a security hole"
+- echo "if the application searches /var/tmp for binaries or"
+- echo "config files because the directory is world-writable."
+- echo "!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!"
+- fi
+-fi