Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 235822
Collapse All | Expand All

(-)R-2.7.2/src/scripts/javareconf (-9 / +13 lines)
Lines 125-140 Link Here
125
javac_works='not present'
125
javac_works='not present'
126
if test -n "$JAVAC"; then
126
if test -n "$JAVAC"; then
127
    javac_works='not functional'
127
    javac_works='not functional'
128
    rm -rf /tmp/A.java /tmp/A.class
128
    # edd 25 Aug 2008  use mktemp -t -d
129
    echo "public class A { }" > /tmp/A.java
129
    #rm -rf /tmp/A.java /tmp/A.class
130
    if test -e /tmp/A.java; then
130
    if jctmpdir=`mktemp -t -d`; then
131
	if "${JAVAC}" /tmp/A.java >/dev/null; then
131
      echo "public class A { }" > ${jctmpdir}/A.java
132
	    if test -e /tmp/A.class; then
132
      if test -e ${jctmpdir}/A.java; then
133
		javac_works=yes
133
        if "${JAVAC}" ${jctmpdir}/A.java >/dev/null; then
134
	    fi
134
          if test -e ${jctmpdir}/A.class; then
135
	fi
135
            javac_works=yes
136
          fi
137
        fi
138
      fi
136
    fi
139
    fi
137
    rm -rf /tmp/A.java /tmp/A.class
140
    # rm -rf /tmp/A.java /tmp/A.class
141
    rm -rf ${jctmpdir}
138
fi
142
fi
139
if test "${javac_works}" = yes; then
143
if test "${javac_works}" = yes; then
140
    echo "Java compiler    : ${JAVAC}"
144
    echo "Java compiler    : ${JAVAC}"

Return to bug 235822