public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petteri Räty" <betelgeuse@gentoo.org>
To: Gentoo Java <gentoo-java@lists.gentoo.org>
Subject: [gentoo-java] jamvm now integrates to our setup
Date: Mon, 03 Mar 2008 19:58:32 +0200	[thread overview]
Message-ID: <47CC3C48.2010000@gentoo.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 517 bytes --]

With jamvm-1.5.0 and a couple of eclass patches it's now possible to 
emerge things with jamvm as a JDK. You do get a warning about tools.jar 
missing so we have to think about what to do with that.

pena commons-net # devebuild commons-net-1.4.1-r1.ebuild clean compile
  * commons-net-1.4.1-src.tar.gz RMD160 SHA1 SHA256 size ;-) ... 
 
                                                          [ ok ]
  * Using: jamvm

BUILD SUCCESSFUL
Total time: 3 seconds
 >>> Source compiled.

Regards,
Petteri

[-- Attachment #1.2: jdk-compiler.patch --]
[-- Type: text/plain, Size: 1844 bytes --]

Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.103
diff -u -r1.103 java-utils-2.eclass
--- java-utils-2.eclass	12 Jan 2008 15:08:47 -0000	1.103
+++ java-utils-2.eclass	3 Mar 2008 17:53:21 -0000
@@ -293,7 +295,6 @@
 	java-pkg_do_write_
 }
 
-
 # ------------------------------------------------------------------------------
 # @internal-function depend-java-query
 #
@@ -649,13 +650,7 @@
 
 	if ! [[ ${DEPEND} = *app-arch/zip* ]]; then
 		local msg="${FUNCNAME} called without app-arch/zip in DEPEND"
-		if is-java-strict; then
-			eerror "${msg}"
-			die "${msg}"
-		else
-			echo "${msg}"
-			echo "Please report this to http://bugs.gentoo.org."
-		fi
+		java-pkg_announce-qa-violation ${msg}
 	fi
 
 	java-pkg_init_paths_
@@ -2178,12 +2206,16 @@
 	# If it hasn't been defined already, default to javac
 	if [[ -z ${GENTOO_COMPILER} ]]; then
 		if [[ -n ${compilers} ]]; then
-			einfo "No suitable compiler found: defaulting javac for compilation"
+			einfo "No suitable compiler found: defaulting to JDK default for compilation"
 		else
 			# probably don't need to notify users about the default.
 			:;#einfo "Defaulting to javac for compilation"
 		fi
-		export GENTOO_COMPILER=javac
+		if java-config -g GENTOO_COMPILER 2> /dev/null; then
+			export GENTOO_COMPILER=$(java-config -g GENTOO_COMPILER)
+		else
+			export GENTOO_COMPILER=javac
+		fi
 	else
 		einfo "Using ${GENTOO_COMPILER} for compilation"
 	fi
@@ -2244,6 +2276,7 @@
 		(
 			echo "DESCRIPTION=\"${DESCRIPTION}\""
 			echo "GENERATION=\"2\""
+			echo "SLOT=\"${SLOT}\""
 
 			[[ -n "${JAVA_PKG_CLASSPATH}" ]] && echo "CLASSPATH=\"${JAVA_PKG_CLASSPATH}\""
 			[[ -n "${JAVA_PKG_LIBRARY}" ]] && echo "LIBRARY_PATH=\"${JAVA_PKG_LIBRARY}\""

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

                 reply	other threads:[~2008-03-03 17:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47CC3C48.2010000@gentoo.org \
    --to=betelgeuse@gentoo.org \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox