Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146647 - migrate dev-libs/cyrus-sasl-2.1.22 to generation-2
Summary: migrate dev-libs/cyrus-sasl-2.1.22 to generation-2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 22:42 UTC by Alon Bar-Lev (RETIRED)
Modified: 2007-02-03 15:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cyrus-sasl-2.1.22.ebuild.diff - generation-2 (cyrus-sasl-2.1.22.ebuild.diff,1017 bytes, patch)
2006-09-06 22:56 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
cyrus-sasl-2.1.22.ebuild.diff - generation-1 (cyrus-sasl-2.1.22.ebuild.diff,502 bytes, patch)
2006-09-07 16:49 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
cyrus-sasl-2.1.22.ebuild.diff - generation-2 (cyrus-sasl-2.1.22.ebuild.diff,1005 bytes, patch)
2006-09-15 00:32 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
patch for generation 2 revbumped ebuild (cyrus-sasl-2.1.22-r1.ebuild.patch,2.54 KB, patch)
2006-09-20 14:58 UTC, Vlastimil Babka (Caster) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-06 22:42:04 UTC
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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-06 22:56:51 UTC
Created attachment 96248 [details, diff]
cyrus-sasl-2.1.22.ebuild.diff - generation-2

using generation 2 java eclass
Comment 2 Tuan Van (RETIRED) gentoo-dev 2006-09-07 16:13:07 UTC
(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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-07 16:48:33 UTC
For generation-22 I supply the attachment#96248 [details, diff].
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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-07 16:49:26 UTC
Created attachment 96338 [details, diff]
cyrus-sasl-2.1.22.ebuild.diff - generation-1

This is for generation-1 (stable)
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-07 16:50:03 UTC
Comment on attachment 96248 [details, diff]
cyrus-sasl-2.1.22.ebuild.diff - generation-2

This is for generation-2 (unstable)
Comment 6 Tuan Van (RETIRED) gentoo-dev 2006-09-07 17:02:12 UTC
$ 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 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-07 17:19:48 UTC
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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-07 17:28:43 UTC
(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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-07 17:37:50 UTC
(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 Josh Nichols (RETIRED) gentoo-dev 2006-09-07 21:20:24 UTC
(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 Josh Nichols (RETIRED) gentoo-dev 2006-09-07 21:23:26 UTC
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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-15 00:32:00 UTC
Created attachment 97033 [details, diff]
cyrus-sasl-2.1.22.ebuild.diff - generation-2

This is modified generation-2, without use java &&
Please approve.
Comment 13 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-15 00:35:32 UTC
(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 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-20 14:58:04 UTC
Created attachment 97579 [details, diff]
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 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-21 03:14:55 UTC
Reminder: java generation 2 is stable, can fix this.
Comment 16 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-30 21:23:34 UTC
Please... At least correct dependency for generation 1.
Comment 17 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-10-31 01:08:01 UTC
Yeah, you could revbump with patch from comment 14, please.
Comment 18 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-11 13:39:15 UTC
PPPPPlease.... please revbump.
Comment 19 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-02 12:45:59 UTC
Hello?
Is there anyone here?
Comment 20 Andrej Kacian (RETIRED) gentoo-dev 2007-01-02 13:21:47 UTC
(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 Andrej Kacian (RETIRED) gentoo-dev 2007-01-02 13:22:24 UTC
(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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-02 13:32:12 UTC
Look at java-pkg-opt-2.eclass:
JAVA_PKG_OPT_USE=${JAVA_PKG_OPT_USE:-java}
IUSE="${JAVA_PKG_OPT_USE}"
Comment 23 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-16 19:37:02 UTC
This should not be difficult to close... Any reason why leave this open so much time?
Comment 24 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-03 15:07:58 UTC
OK. Finish waiting.
Fixed QA issues and upgraded to new java build.
CC me if anyone have problem with this modification.