add postgresql and mariadb as disabled packages (#741)
[termux-packages] / disabled-packages / postgresql / tempdir-fix-old.patch.old
diff --git a/disabled-packages/postgresql/tempdir-fix-old.patch.old b/disabled-packages/postgresql/tempdir-fix-old.patch.old
new file mode 100644 (file)
index 0000000..b9a981d
--- /dev/null
@@ -0,0 +1,21 @@
+--- ./src/bin/pg_upgrade/test.sh       2016-10-25 01:38:51.000000000 +0530
++++ ../test.sh 2017-01-23 10:08:52.568213209 +0530
+@@ -44,15 +44,15 @@
+               if [ "x$PGHOST" = x ]; then
+                       {
+                               dir=`(umask 077 &&
+-                                        mktemp -d /tmp/pg_upgrade_check-XXXXXX) 2>/dev/null` &&
++                                        mktemp -d @TERMUX_PREFIX@/tmp/pg_upgrade_check-XXXXXX) 2>/dev/null` &&
+                               [ -d "$dir" ]
+                       } ||
+                       {
+-                              dir=/tmp/pg_upgrade_check-$$-$RANDOM
++                              dir=@TERMUX_PREFIX@/tmp/pg_upgrade_check-$$-$RANDOM
+                               (umask 077 && mkdir "$dir")
+                       } ||
+                       {
+-                              echo "could not create socket temporary directory in \"/tmp\""
++                              echo "could not create socket temporary directory in \"@TERMUX_PREFIX@/tmp\""
+                               exit 1
+                       }