Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 146647
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alon Bar-Lev (RETIRED) <alonbl@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cyrus-sasl-2.1.22.ebuild.diff cyrus-sasl-2.1.22.ebuild.diff - generation-2 patch Alon Bar-Lev (RETIRED) 2006-09-06 22:56 0000 1017 bytes Details | Diff
cyrus-sasl-2.1.22.ebuild.diff cyrus-sasl-2.1.22.ebuild.diff - generation-1 patch Alon Bar-Lev (RETIRED) 2006-09-07 16:49 0000 502 bytes Details | Diff
cyrus-sasl-2.1.22.ebuild.diff cyrus-sasl-2.1.22.ebuild.diff - generation-2 patch Alon Bar-Lev (RETIRED) 2006-09-15 00:32 0000 1005 bytes Details | Diff
cyrus-sasl-2.1.22-r1.ebuild.patch patch for generation 2 revbumped ebuild patch Vlastimil Babka (Caster) 2006-09-20 14:58 0000 2.54 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 146647 depends on: Show dependency tree
Bug 146647 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-06 22:42 0000
cyrus-sasl-2.1.22 forces jdk-1.4, while there is no need to.
You should force >=jdk-1.4 for stable, so people may use jdk-1.5.

But better migrate to the new java build system and allow >=jdk-1.4

------- Comment #1 From Alon Bar-Lev (RETIRED) 2006-09-06 22:56:51 0000 -------
Created an attachment (id=96248) [details]
cyrus-sasl-2.1.22.ebuild.diff

using generation 2 java eclass

------- Comment #2 From Tuan Van (RETIRED) 2006-09-07 16:13:07 0000 -------
(In reply to comment #0)
> cyrus-sasl-2.1.22 forces jdk-1.4, while there is no need to.
> You should force >=jdk-1.4 for stable, so people may use jdk-1.5.
> 
> But better migrate to the new java build system and allow >=jdk-1.4
> 

I don't know if your modification would work for both java generation. CC java
team for comment.

------- Comment #3 From Alon Bar-Lev (RETIRED) 2006-09-07 16:48:33 0000 -------
For generation-22 I supply the attachment#96248 [details].
The problem is that the generation-2 is not stable.

Since your package is stable, just add the right dependency >=jdk-1.4.
It is working with generation-1 if the user have jdk-1.5 configured as
generation one. And it does not hurt the current users.

------- Comment #4 From Alon Bar-Lev (RETIRED) 2006-09-07 16:49:26 0000 -------
Created an attachment (id=96338) [details]
cyrus-sasl-2.1.22.ebuild.diff - generation-1

This is for generation-1 (stable)

------- Comment #5 From Alon Bar-Lev (RETIRED) 2006-09-07 16:50:03 0000 -------
(From update of attachment 96248 [details])
This is for generation-2 (unstable)

------- Comment #6 From Tuan Van (RETIRED) 2006-09-07 17:02:12 0000 -------
$ earch
jdk-1.4.1:
jdk-1.4.2:  ppc amd64 ppc64 ia64 x86
jdk-1.5.0:  ~amd64 ~x86 ~x86-fbsd ~ia64 ~ppc ~ppc64 ~s390

virtual/jdk-1.4 is not stable on any arch yet. how about I do a revision bump
for generation-2 and leave the stable ebuild alone?

------- Comment #7 From Vlastimil Babka (Caster) 2006-09-07 17:19:48 0000 -------
Patch from comment 4 would slightly improve the deps for stable ebuild so that
user doesn't need a JDK for runtime where JRE is enough. Changing '=' to '>='
doesn't really mean anything for generation-1 ebuild.

For the future we will of course want revision bump migrated to generation-2
but not the one from comment 5. Just looking at it I see "use java &&
java-pkg-opt-2_pkg_setup" - this is not how it should be done. I will see about
a proper gen-2 ebuild tomorrow.

------- Comment #8 From Alon Bar-Lev (RETIRED) 2006-09-07 17:28:43 0000 -------
(In reply to comment #6)
> virtual/jdk-1.4 is not stable on any arch yet. how about I do a revision bump
> for generation-2 and leave the stable ebuild alone?

That would be great!

------- Comment #9 From Alon Bar-Lev (RETIRED) 2006-09-07 17:37:50 0000 -------
(In reply to comment #7)
> Patch from comment 4 would slightly improve the deps for stable ebuild so that
> user doesn't need a JDK for runtime where JRE is enough. Changing '=' to '>='
> doesn't really mean anything for generation-1 ebuild.

It does... Since we can modify jdk-1.5 to be generation-1 and then have only
one jvm on your machine.
If there is no explicit reason why support only 1.4, I don't see why explicit
downgrade.

> For the future we will of course want revision bump migrated to generation-2
> but not the one from comment 5. Just looking at it I see "use java &&
> java-pkg-opt-2_pkg_setup" - this is not how it should be done. I will see about
> a proper gen-2 ebuild tomorrow.

OK... Thanks... And then it needs to be documented why it is wrong... Since
from http://www.gentoo.org/proj/en/java/java-devel.xml I cannot understand why.

------- Comment #10 From Josh Nichols (RETIRED) 2006-09-07 21:20:24 0000 -------
(In reply to comment #9)
> OK... Thanks... And then it needs to be documented why it is wrong... Since
> from http://www.gentoo.org/proj/en/java/java-devel.xml I cannot understand why.
> 

It is already documented how to use optional java support. There is even an
example of it.

http://www.gentoo.org/proj/en/java/java-devel.xml#java-pkg-opt-2.eclass
example under 'Typical Examples'

------- Comment #11 From Josh Nichols (RETIRED) 2006-09-07 21:23:26 0000 -------
As for why not to do use java && java-pkg-opt-2_pkg_setup,
java-pkg-opt-2_pkg_setup already does the appropriate conditional for you.

The docs actually should mention that the java-pkg-2's pkg_setup does need to
be called if you override the default pkg_setup. Separate issue (ie new bug)
for that though.

------- Comment #12 From Alon Bar-Lev (RETIRED) 2006-09-15 00:32:00 0000 -------
Created an attachment (id=97033) [details]
cyrus-sasl-2.1.22.ebuild.diff - generation-2

This is modified generation-2, without use java &&
Please approve.

------- Comment #13 From Alon Bar-Lev (RETIRED) 2006-09-15 00:35:32 0000 -------
(In reply to comment #11)
> The docs actually should mention that the java-pkg-2's pkg_setup does need to
> be called if you override the default pkg_setup. Separate issue (ie new bug)
> for that though.
Will you fix documentation, open a bug to your-self, or wish someone else to
open bug for this?

------- Comment #14 From Vlastimil Babka (Caster) 2006-09-20 14:58:04 0000 -------
Created an attachment (id=97579) [details]
patch for generation 2 revbumped ebuild

Aside from the usual stuff it was needed to pass the right JAVACFLAGS to ensure
1.4 bytecode for the .jar produced. Because this buildsystem doesn't seem to
have a way to pass flags for JAVAC separately, I was forced to stick them to
the JAVAC variable, which is honored. Seems to work fine.

------- Comment #15 From Alon Bar-Lev (RETIRED) 2006-10-21 03:14:55 0000 -------
Reminder: java generation 2 is stable, can fix this.

------- Comment #16 From Alon Bar-Lev (RETIRED) 2006-10-30 21:23:34 0000 -------
Please... At least correct dependency for generation 1.

------- Comment #17 From Vlastimil Babka (Caster) 2006-10-31 01:08:01 0000 -------
Yeah, you could revbump with patch from comment 14, please.

------- Comment #18 From Alon Bar-Lev (RETIRED) 2006-12-11 13:39:15 0000 -------
PPPPPlease.... please revbump.

------- Comment #19 From Alon Bar-Lev (RETIRED) 2007-01-02 12:45:59 0000 -------
Hello?
Is there anyone here?

------- Comment #20 From Andrej Kacian (RETIRED) 2007-01-02 13:21:47 0000 -------
(In reply to comment #17)
> Yeah, you could revbump with patch from comment 14, please.
> 

Why does the path remove java from IUSE, yet it continues to use the flag in
(R)DEPEND ?

------- Comment #21 From Andrej Kacian (RETIRED) 2007-01-02 13:22:24 0000 -------
(In reply to comment #20)
> (In reply to comment #17)
> > Yeah, you could revbump with patch from comment 14, please.
> > 
> 
> Why does the path remove java from IUSE, yet it continues to use the flag in
> (R)DEPEND ?
> 

s/path/patch/, obviously, sorry about that.

------- Comment #22 From Alon Bar-Lev (RETIRED) 2007-01-02 13:32:12 0000 -------
Look at java-pkg-opt-2.eclass:
JAVA_PKG_OPT_USE=${JAVA_PKG_OPT_USE:-java}
IUSE="${JAVA_PKG_OPT_USE}"

------- Comment #23 From Alon Bar-Lev (RETIRED) 2007-01-16 19:37:02 0000 -------
This should not be difficult to close... Any reason why leave this open so much
time?

------- Comment #24 From Alon Bar-Lev (RETIRED) 2007-02-03 15:07:58 0000 -------
OK. Finish waiting.
Fixed QA issues and upgraded to new java build.
CC me if anyone have problem with this modification.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug