SOURCES: jpackage-utils-rpm_macros_ignore_env.patch (NEW) - ignore...

jajcus jajcus at pld-linux.org
Sun May 21 20:02:35 CEST 2006


Author: jajcus                       Date: Sun May 21 18:02:35 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- ignore environment settings when evaluating %{java_home} and %{java} macros

---- Files affected:
SOURCES:
   jpackage-utils-rpm_macros_ignore_env.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/jpackage-utils-rpm_macros_ignore_env.patch
diff -u /dev/null SOURCES/jpackage-utils-rpm_macros_ignore_env.patch:1.1
--- /dev/null	Sun May 21 20:02:35 2006
+++ SOURCES/jpackage-utils-rpm_macros_ignore_env.patch	Sun May 21 20:02:30 2006
@@ -0,0 +1,20 @@
+diff -dur -x '*~' jpackage-utils-1.6.6.orig/misc/macros.jpackage jpackage-utils-1.6.6/misc/macros.jpackage
+--- jpackage-utils-1.6.6.orig/misc/macros.jpackage	2005-09-19 00:46:48.000000000 +0000
++++ jpackage-utils-1.6.6/misc/macros.jpackage	2006-05-21 17:49:06.000000000 +0000
+@@ -91,14 +91,14 @@
+ #
+ # Current default JVM home.
+ #
+-%java_home      %(. %{_javadir}-utils/java-functions; set_jvm; echo $JAVA_HOME)
++%java_home      %(unset JAVA_HOME; . %{_javadir}-utils/java-functions; set_jvm; echo $JAVA_HOME)
+ 
+ #==============================================================================
+ # ---- default Java commands
+ 
+ %ant            JAVA_HOME=%{java_home} ant
+ %jar            %{java_home}/bin/jar
+-%java           %(. %{_javadir}-utils/java-functions; set_javacmd; echo $JAVACMD)
++%java           %(unset JAVACMD; . %{_javadir}-utils/java-functions; set_javacmd; echo $JAVACMD)
+ %javac          %{java_home}/bin/javac
+ %javadoc        %{java_home}/bin/javadoc
+ 
================================================================


More information about the pld-cvs-commit mailing list