public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petteri Räty" <betelgeuse@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] java-vm-2.eclass dependancies
Date: Fri, 22 Dec 2006 17:36:40 +0200	[thread overview]
Message-ID: <458BFB88.7040103@gentoo.org> (raw)
In-Reply-To: <458BF6E1.5010409@severinsson.net>


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



Jon Severinsson kirjoitti:
> Dear Gentoo/Java team
> 
> I recently noticed that sun-jdk-1.5 RDEPEND on =java-config-1.3*, which
> I found quite odd, considering that jdk-1.5 isn't compatible with
> java-config-1.
> 
> Digging a bit deeper I found that the problem is in java-vm-2.eclass,
> witch doesn't consider JAVA_SUPPORTS_GENERATION_1 when it defines DEPEND
> and RDEPEND. (It does in the rest of the eclass).
> 
> With the attached patch it does, and the end result works just fine on
> both mixed generation systems, and generation 2 only systems, in the
> first case with both java-config-1 and java-config-2, and the second
> with only java-config-2.
> 
> Please consider adding it to the tree (so I don't have to do it myself
> after every emerge --sync on my "pure" java 1.5 / generation 2 system).
> 
> Regards
> - Jonno
> 
> P.S. To get a pure java 1.5 / generation 2 system you'll have to get
> creative in packages.keywords, but it is certainly possible. I'm
> currently doing it on one system, where HD space is at a premium, and
> two VM is overkill just to run tomcat. While java-config-1 isn't exactly
> a space killer, it's the principle of the thing. After working hard on
> getting rid of generation-1 I still can't get rid of this last piece.

Attached patch is a bit cleaner. Yeah, I think we can add something like
this.

Regards,
Petteri

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: java-vm-2-deps.patch --]
[-- Type: text/x-patch; name="java-vm-2-deps.patch", Size: 650 bytes --]

Index: java-vm-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v
retrieving revision 1.16
diff -u -r1.16 java-vm-2.eclass
--- java-vm-2.eclass	11 Nov 2006 00:13:22 -0000	1.16
+++ java-vm-2.eclass	22 Dec 2006 15:35:15 -0000
@@ -18,8 +18,11 @@
 	=dev-java/java-config-2.0*
 	>=sys-apps/portage-2.1"
 RDEPEND="
-	=dev-java/java-config-2.0*
-	=dev-java/java-config-1.3*"
+	=dev-java/java-config-2.0*"
+
+if [[ "${JAVA_SUPPORTS_GENERATION_1}" == 'true' ]]; then
+	RDEPEND="${RDEPEND} =dev-java/java-config-1.3*"
+fi
 
 export WANT_JAVA_CONFIG=2
 

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

  reply	other threads:[~2006-12-22 15:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-22 15:16 [gentoo-java] java-vm-2.eclass dependancies Jon Severinsson
2006-12-22 15:36 ` Petteri Räty [this message]
2006-12-23  0:06   ` Vlastimil Babka

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=458BFB88.7040103@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