summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-08-31 14:44:24 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-08-31 14:44:24 +0000
commit7160d874910e6b8a09516c956c11c4cf28b52a49 (patch)
tree22a5d562939c943c3d7f1d0d2fa0b7dd9ac12958 /dev-lang/R/files
parentamd64 stable, bug #221795 (diff)
downloadhistorical-7160d874910e6b8a09516c956c11c4cf28b52a49.tar.gz
historical-7160d874910e6b8a09516c956c11c4cf28b52a49.tar.bz2
historical-7160d874910e6b8a09516c956c11c4cf28b52a49.zip
Added further enhancements to R-javareconf.patch (see bug #235822).
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-SENTINEL-2 i686
Diffstat (limited to 'dev-lang/R/files')
-rw-r--r--dev-lang/R/files/R-javareconf.patch28
1 files changed, 14 insertions, 14 deletions
diff --git a/dev-lang/R/files/R-javareconf.patch b/dev-lang/R/files/R-javareconf.patch
index 229dbb293ecb..fb9ea6b52c7b 100644
--- a/dev-lang/R/files/R-javareconf.patch
+++ b/dev-lang/R/files/R-javareconf.patch
@@ -1,9 +1,6 @@
-# this patch fixes the insecure tempfile usage reported in bug #235822
-# it was extracted from Debian's r-base_2.7.2-1.diff patch
-
diff -Naur R-2.7.2/src/scripts/javareconf R-2.7.2.new/src/scripts/javareconf
--- R-2.7.2/src/scripts/javareconf 2008-03-25 08:26:44.000000000 -0400
-+++ R-2.7.2.new/src/scripts/javareconf 2008-08-27 16:49:04.000000000 -0400
++++ R-2.7.2.new/src/scripts/javareconf 2008-08-31 10:28:48.000000000 -0400
@@ -125,16 +125,19 @@
javac_works='not present'
if test -n "$JAVAC"; then
@@ -13,20 +10,23 @@ diff -Naur R-2.7.2/src/scripts/javareconf R-2.7.2.new/src/scripts/javareconf
- if test -e /tmp/A.java; then
- if "${JAVAC}" /tmp/A.java >/dev/null; then
- if test -e /tmp/A.class; then
+- javac_works=yes
+- fi
+- fi
+ # edd 25 Aug 2008 use mktemp -t -d
+ #rm -rf /tmp/A.java /tmp/A.class
-+ jctmpdir=`mktemp -t -d`
-+ echo "public class A { }" > ${jctmpdir}/A.java
-+ if test -e ${jctmpdir}/A.java; then
-+ if "${JAVAC}" ${jctmpdir}/A.java >/dev/null; then
-+ if test -e ${jctmpdir}/A.class; then
- javac_works=yes
- fi
- fi
++ if jctmpdir=`mktemp -t -d`; then
++ echo "public class A { }" > ${jctmpdir}/A.java
++ if test -e ${jctmpdir}/A.java; then
++ if "${JAVAC}" ${jctmpdir}/A.java >/dev/null; then
++ if test -e ${jctmpdir}/A.class; then
++ javac_works=yes
++ fi
++ fi
++ fi
++ rm -rf ${jctmpdir}
fi
- rm -rf /tmp/A.java /tmp/A.class
-+ # rm -rf /tmp/A.java /tmp/A.class
-+ rm -rf ${jctmpdir}
fi
if test "${javac_works}" = yes; then
echo "Java compiler : ${JAVAC}"