Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92980 - Metabug: Java packages shouldn't install JAR files that contain version numbers
Summary: Metabug: Java packages shouldn't install JAR files that contain version numbers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 92883 92884 92888 92984 93029 93030 93032 93035 93280 93529
Blocks:
  Show dependency tree
 
Reported: 2005-05-17 13:32 UTC by Josh Nichols (RETIRED)
Modified: 2005-06-04 09:04 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 Josh Nichols (RETIRED) gentoo-dev 2005-05-17 13:32:04 UTC
Adding dependencies to packages which install versioned JARs is tricky business. It involves requiring a specific version of the package, which isn't a good idea for packages which aren't slotted.

A simple work fix would be simply renaming the jar files in the ebuild. Something like:
	# Adjust jar filenames
	cd ${S}/bin
	rename "-${PV}" "" *.jar

is enough to suffice.

A slightly more complicated (depending on the package) fix would be to patch the build.xml to not include the version in the JAR filename.
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2005-05-17 14:27:12 UTC
Rename shouldn't be used, because it is not in the system profile. Instead, mv
should be used.
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2005-05-18 04:57:37 UTC
or the shiney new java-pkg_newjar
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-06-04 09:04:22 UTC
since our policy states this for quite a while (even before this bug was filed)
and all open bugs about this issue are marked as resolved i'm going to mark this
one as fixed