pkgsrc-Bugs archive

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

pkg/46080: Please ignore user-set JAVA_HOME when building lang/openjdk7



>Number:         46080
>Category:       pkg
>Synopsis:       Please ignore user-set JAVA_HOME when building lang/openjdk7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 23 14:30:00 +0000 2012
>Originator:     Ryo ONODERA
>Release:        NetBSD 6.99.3
>Organization:
        
>Environment:
        
        
System: NetBSD hydrogen.elements.tetera.org 6.99.3 NetBSD 6.99.3 (LEAFGIRLA) 
#5: Thu Feb 23 16:29:25 JST 2012 
root%hydrogen.elements.tetera.org@localhost:/usr/obj/sys/arch/i386/compile/LEAFGIRLA
 i386
Architecture: i386
Machine: i386
>Description:
When JAVA_HOME is set, lang/openjdk7 generates the following error.

ERROR: Your JAVA_HOME environment variable is set.  This will \n       most 
likely cause the build to fail.  Please unset it \n       and start your build 
again. \n
Exiting because of the above error(s). \n
gmake: *** [post-sanity] Error 1
*** Error code 2
        
>How-To-Repeat:
$ cd pkgsrc/lang/openjdk7
$ export JAVA_HOME=/usr/pkg/java/openjdk7
$ make
        
>Fix:
        
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/openjdk7/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile    16 Feb 2012 22:14:12 -0000      1.29
+++ Makefile    23 Feb 2012 14:28:38 -0000
@@ -64,6 +64,7 @@
 MAKE_ENV+=     SKIP_COMPARE_IMAGES=true
 MAKE_ENV+=     SKIP_FASTDEBUG_BUILD=yes
 MAKE_ENV+=     SKIP_DEBUG_BUILD=yes
+MAKE_ENV+=     JAVA_HOME=
 
 MAKE_ENV+=     
EXTRA_CFLAGS="-DDEFAULT_LIBPATH=\\\"${PREFIX}/lib/jni:${PREFIX}/lib:/lib:/usr/lib\\\""
 


>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index