pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/R Fix for http://secunia.com/advisories/31647/ fr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3b7e5e02820
branches:  trunk
changeset: 546414:e3b7e5e02820
user:      markd <markd%pkgsrc.org@localhost>
date:      Sun Aug 31 12:33:53 2008 +0000

description:
Fix for http://secunia.com/advisories/31647/ from R svn.

diffstat:

 math/R/Makefile         |   3 ++-
 math/R/distinfo         |   3 ++-
 math/R/patches/patch-ae |  41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+), 2 deletions(-)

diffs (71 lines):

diff -r 7da4149eb7b7 -r e3b7e5e02820 math/R/Makefile
--- a/math/R/Makefile   Sun Aug 31 10:55:08 2008 +0000
+++ b/math/R/Makefile   Sun Aug 31 12:33:53 2008 +0000
@@ -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 -r 7da4149eb7b7 -r e3b7e5e02820 math/R/distinfo
--- a/math/R/distinfo   Sun Aug 31 10:55:08 2008 +0000
+++ b/math/R/distinfo   Sun Aug 31 12:33:53 2008 +0000
@@ -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 @@
 SHA1 (patch-ab) = b724b549cd9920865c4d4ae60c71dff48c4c0c06
 SHA1 (patch-ac) = 64c47fc44c437ad79de53fc313f280700590704f
 SHA1 (patch-ad) = e8f6b6989957a6872806716263eabb9feb636638
+SHA1 (patch-ae) = ce2a7e26cd7c44776075affd4c999bc1b74fe9cf
diff -r 7da4149eb7b7 -r e3b7e5e02820 math/R/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/R/patches/patch-ae   Sun Aug 31 12:33:53 2008 +0000
@@ -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}"



Home | Main Index | Thread Index | Old Index