diff --git a/apache-ant-1.6.5-javah.patch b/apache-ant-1.6.5-javah.patch new file mode 100644 index 0000000..2de15e3 --- /dev/null +++ b/apache-ant-1.6.5-javah.patch @@ -0,0 +1,22 @@ +--- apache-ant-1.6.5/src/main/org/apache/tools/ant/util/JavaEnvUtils.java.original 2005-10-31 15:05:55.000000000 -0500 ++++ apache-ant-1.6.5/src/main/org/apache/tools/ant/util/JavaEnvUtils.java 2005-10-31 15:11:31.000000000 -0500 +@@ -104,7 +104,7 @@ + } + kaffeDetected = false; + try { +- Class.forName("kaffe.util.NotImplemented"); ++ Class.forName("gnu.classpath.Configuration"); + kaffeDetected = true; + } catch (Throwable t) { + // swallow as this simply doesn't seem to be Kaffe +--- apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/optional/javah/Kaffeh.java.original 2005-10-31 15:06:34.000000000 -0500 ++++ apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/optional/javah/Kaffeh.java 2005-10-31 15:08:13.000000000 -0500 +@@ -52,7 +52,7 @@ + + private Commandline setupKaffehCommand(Javah javah) { + Commandline cmd = new Commandline(); +- cmd.setExecutable(JavaEnvUtils.getJdkExecutable("kaffeh")); ++ cmd.setExecutable(JavaEnvUtils.getJdkExecutable("javah")); + + if (javah.getDestdir() != null) { + cmd.createArgument().setValue("-d"); diff --git a/apache-ant-1.6.5-rpm.patch b/apache-ant-1.6.5-rpm.patch new file mode 100644 index 0000000..a225707 --- /dev/null +++ b/apache-ant-1.6.5-rpm.patch @@ -0,0 +1,31 @@ +--- apache-ant-1.6.5/src/script/ant.original 2005-10-27 17:06:55.000000000 -0400 ++++ apache-ant-1.6.5/src/script/ant 2005-10-27 17:08:45.000000000 -0400 +@@ -150,6 +150,28 @@ + # variable + if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then + LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)" ++ ++ # If no optional jars have been specified then build the default list ++ if [ -z "$OPT_JAR_LIST" ] ; then ++ for file in /etc/ant.d/*; do ++ if [ -f "$file" ]; then ++ case "$file" in ++ *~) ;; ++ *#*) ;; ++ *.rpmsave) ;; ++ *.rpmnew) ;; ++ *) ++ for dep in `cat "$file"`; do ++ case "$OPT_JAR_LIST" in ++ *"$dep"*) ;; ++ *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep" ++ esac ++ done ++ esac ++ fi ++ done ++ fi ++ + # If the user requested to try to add some other jars to the classpath + if [ -n "$OPT_JAR_LIST" ] ; then + _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"