summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2008-08-31 12:33:53 +0000
committermarkd <markd@pkgsrc.org>2008-08-31 12:33:53 +0000
commit634a54d2a2a763ec6043f6082fe64e938b581154 (patch)
treeb605c5910195bf5bd7eacf4f2cdec657152316f5
parent2d7adcbe9603592ae85620a7981480a7b421c7ae (diff)
downloadpkgsrc-634a54d2a2a763ec6043f6082fe64e938b581154.tar.gz
Fix for http://secunia.com/advisories/31647/ from R svn.
-rw-r--r--math/R/Makefile3
-rw-r--r--math/R/distinfo3
-rw-r--r--math/R/patches/patch-ae41
3 files changed, 45 insertions, 2 deletions
diff --git a/math/R/Makefile b/math/R/Makefile
index 0cdc14d22d4..148a87b3994 100644
--- a/math/R/Makefile
+++ b/math/R/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.98 2008/07/20 23:18:28 dbj Exp $
+# $NetBSD: Makefile,v 1.99 2008/08/31 12:33:53 markd Exp $
DISTNAME= R-2.7.0
+PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_R_CRAN:=base/R-2/}
diff --git a/math/R/distinfo b/math/R/distinfo
index bc17836138d..28a9667a73f 100644
--- a/math/R/distinfo
+++ b/math/R/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.38 2008/04/26 02:39:27 markd Exp $
+$NetBSD: distinfo,v 1.39 2008/08/31 12:33:53 markd Exp $
SHA1 (R-2.7.0.tar.gz) = d0a3193e474696ad767845ef6b8ee1555a26b898
RMD160 (R-2.7.0.tar.gz) = c3c9cf0c0a1eb6191492f1be19e277e8223a42c9
@@ -6,3 +6,4 @@ Size (R-2.7.0.tar.gz) = 16396250 bytes
SHA1 (patch-ab) = b724b549cd9920865c4d4ae60c71dff48c4c0c06
SHA1 (patch-ac) = 64c47fc44c437ad79de53fc313f280700590704f
SHA1 (patch-ad) = e8f6b6989957a6872806716263eabb9feb636638
+SHA1 (patch-ae) = ce2a7e26cd7c44776075affd4c999bc1b74fe9cf
diff --git a/math/R/patches/patch-ae b/math/R/patches/patch-ae
new file mode 100644
index 00000000000..efe5d61b26b
--- /dev/null
+++ b/math/R/patches/patch-ae
@@ -0,0 +1,41 @@
+$NetBSD: patch-ae,v 1.15 2008/08/31 12:33:53 markd Exp $
+
+From SVN revision r46461
+
+--- src/scripts/javareconf.orig 2008-03-26 01:26:44.000000000 +1300
++++ src/scripts/javareconf
+@@ -125,16 +125,28 @@ fi
+ javac_works='not present'
+ if test -n "$JAVAC"; then
+ javac_works='not functional'
+- rm -rf /tmp/A.java /tmp/A.class
+- echo "public class A { }" > /tmp/A.java
+- if test -e /tmp/A.java; then
+- if "${JAVAC}" /tmp/A.java >/dev/null; then
+- if test -e /tmp/A.class; then
++# tempdir=`mktemp -d`
++
++ : ${TMPDIR=/tmp}
++ { tempdir=`(mktemp -d -q "${TMPDIR}/RJRECONF.XXXXXX") 2>/dev/null` \
++ && test -n "${tempdir}" && test -d "${tempdir}" ; } ||
++ { test -n "${RANDOM}" && tempdir=${TMPDIR}/RJRECONF$$-${RANDOM} \
++ && (mkdir "${tempdir}") ; } ||
++ { tempdir=${TMPDIR}/RJRECONF.$$-`date +%m%d%H%M%S` \
++ && (mkdir "${tempdir}"); } ||
++ { tempdir=${TMPDIR}/RJRECONF.$$ && (mkdir "${tempdir}") ; } ||
++ (error "cannot create temporary directory" && exit 1)
++
++ echo "public class A { }" > ${tempdir}/A.java
++ if test -e ${tempdir}/A.java; then
++ if "${JAVAC}" ${tempdir}/A.java >/dev/null; then
++ if test -e ${tempdir}/A.class; then
+ javac_works=yes
+ fi
+ fi
+ fi
+- rm -rf /tmp/A.java /tmp/A.class
++ rm -rf ${tempdir}
++
+ fi
+ if test "${javac_works}" = yes; then
+ echo "Java compiler : ${JAVAC}"