summaryrefslogtreecommitdiff
path: root/libreoffice-no-destdircheck.patch
diff options
context:
space:
mode:
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