Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205768 - problem with java-osgi_newjar()
Summary: problem with java-osgi_newjar()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-14 09:43 UTC by Vlastimil Babka (Caster) (RETIRED)
Modified: 2008-01-14 18:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-01-14 09:43:19 UTC
As (I think) Obeliks said on IRC, this line is missing a "${5}" parameter
                _java-osgi_makejar "${1}" "${3}" "${4}"

And I noticed that the @example has last two params in different order than in the actual jsch ebuild :) Which is it?

# @example
#       java-osgi_newjar "dist/${PN}.jar" "com.jcraft.jsch" "com.jcraft.jsch, com.jcraft.jsch.jce;x-internal:=true" "JSch"

Rather trivial fix, the reason I fill this bug is that it looks weird to handle parameters like this, with second being optional, I would probably move it as the last parameter which would simplify the function. But I understand that it's as second param because of what normal newjar() does. So we should decide together.
Comment 1 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2008-01-14 09:50:23 UTC
Yes, this is a trivial fix. Regarding the @example, it is wrong, the actual jsch ebuild is right, eg, "com.jcraft.jsch,com.jcraft.jsch.jce;x-internal:=true" is the export header.

Regarding the handling of parameters, I agree it is a bit weird, as you pointed out I did that because of what newjar does. Meet on IRC to discuss if you don't like it.
Comment 2 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2008-01-14 16:42:53 UTC
I commited the fix. Shall I close the bug, or leave it open for discussion?
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-01-14 18:39:54 UTC
OK let's close.