aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-30 15:18:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-10-30 15:18:22 +0000
commit1cfa2a674757f6ee776436154d2b8d34fb2b1114 (patch)
tree898baad12cda2872f7f7050d32eaf9abfb47607f /package/utils/busybox
parente35d42e890024b1612780444a785132abbdfd70d (diff)
downloadupstream-1cfa2a674757f6ee776436154d2b8d34fb2b1114.tar.gz
upstream-1cfa2a674757f6ee776436154d2b8d34fb2b1114.tar.bz2
upstream-1cfa2a674757f6ee776436154d2b8d34fb2b1114.zip
busybox: fix non-portable invocation of mktemp
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47289
Diffstat (limited to 'package/utils/busybox')
-rw-r--r--package/utils/busybox/patches/102-trylink_mktemp_fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/102-trylink_mktemp_fix.patch b/package/utils/busybox/patches/102-trylink_mktemp_fix.patch
new file mode 100644
index 0000000000..ed1dcbb66f
--- /dev/null
+++ b/package/utils/busybox/patches/102-trylink_mktemp_fix.patch
@@ -0,0 +1,20 @@
+--- a/scripts/trylink
++++ b/scripts/trylink
+@@ -46,7 +46,7 @@ try() {
+ }
+
+ check_cc() {
+- local tempname="$(mktemp)"
++ local tempname="$(mktemp /tmp/tmp.XXXXXXXXXX)"
+ local r
+ echo "int main(int argc,char**argv){return argv?argc:0;}" >"$tempname".c
+ # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :(
+@@ -61,7 +61,7 @@ check_cc() {
+ }
+
+ check_libc_is_glibc() {
+- local tempname="$(mktemp)"
++ local tempname="$(mktemp /tmp/tmp.XXXXXXXXXX)"
+ local r
+ echo "\
+ #include <stdlib.h>