aboutsummaryrefslogtreecommitdiffstats
path: root/community/cabal/cabal-0002-busybox-od.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/cabal/cabal-0002-busybox-od.patch')
-rw-r--r--community/cabal/cabal-0002-busybox-od.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/cabal/cabal-0002-busybox-od.patch b/community/cabal/cabal-0002-busybox-od.patch
new file mode 100644
index 0000000000..6a4c884959
--- /dev/null
+++ b/community/cabal/cabal-0002-busybox-od.patch
@@ -0,0 +1,11 @@
+--- a/bootstrap.sh
++++ b/bootstrap.sh
+@@ -53,7 +53,7 @@
+
+ # Try to respect $TMPDIR.
+ [ -"$TMPDIR"- = -""- ] &&
+- export TMPDIR=/tmp/cabal-$(echo $(od -XN4 -An /dev/random)) && mkdir $TMPDIR
++ export TMPDIR=/tmp/cabal-$(echo $(od -tx2 -N4 -An /dev/random | tr -cd [0-9a-f])) && mkdir $TMPDIR
+
+ # Check for a C compiler, using user-set $CC, if any, first.
+ for c in $CC gcc clang cc icc; do