pkgsrc-Bugs archive

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

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



The following reply was made to PR pkg/46080; it has been noted by GNATS.

From: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost, bertelsen.erik%gmail.com@localhost
Cc: 
Subject: Re: pkg/46080: Please ignore user-set JAVA_HOME when building
 lang/openjdk7
Date: Mon, 05 Mar 2012 14:05:43 +0900 (JST)

 ----Next_Part(Mon_Mar__5_14_05_43_2012_923)--
 Content-Type: Text/Plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 From: Erik Bertelsen <bertelsen.erik%gmail.com@localhost>, Date: Thu, 23 Feb 
2012 15:40:04 +0000 (UTC)
 
 >  Yes, this problem has been rather annoying for a long time.
 >  
 >  Please consider also unsetting CLASSPATH, I think that this is also
 >  needed in some scenaria.
 
 How about attached patch?
 It works fine for me.
 
 -- 
 Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
 
 ----Next_Part(Mon_Mar__5_14_05_43_2012_923)--
 Content-Type: Text/X-Patch; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="openjdk7.diff"
 
 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   5 Mar 2012 05:03:35 -0000
 @@ -65,6 +65,10 @@
  MAKE_ENV+=    SKIP_FASTDEBUG_BUILD=yes
  MAKE_ENV+=    SKIP_DEBUG_BUILD=yes
  
 +# Avoid build errors when JAVA_HOME and CLASSPATH are defined by user.
 +MAKE_ENV+=    JAVA_HOME=
 +MAKE_ENV+=    CLASSPATH=
 +
  MAKE_ENV+=    
EXTRA_CFLAGS="-DDEFAULT_LIBPATH=\\\"${PREFIX}/lib/jni:${PREFIX}/lib:/lib:/usr/lib\\\""
  
  BUILDDIR=     
${WRKSRC}/build/${OPSYS:C/.*BSD/bsd/:S/DragonFly/bsd/}-${MACHINE_ARCH:S/i386/i586/:S/x86_64/amd64/}
 
 ----Next_Part(Mon_Mar__5_14_05_43_2012_923)----
 
 


Home | Main Index | Thread Index | Old Index