Bug 916924
Summary: | gshell 2.6.5 don't build with jline2 2.10 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | gil cattaneo <puntogil> | ||||||
Component: | jline2 | Assignee: | Marek Goldmann <mgoldman> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 19 | CC: | mat.booth, mgoldman, mizdebsk | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-07-23 12:57:44 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 914056 | ||||||||
Attachments: |
|
Description
gil cattaneo
2013-03-01 09:28:14 UTC
Do you have a Rawhide scratch build available for this? I do happen to have a scratch build (made yesterday): http://koji.fedoraproject.org/koji/taskinfo?taskID=5064801 i have this one http://koji.fedoraproject.org/koji/taskinfo?taskID=5049533 and added to spec file for p in core ui; do %pom_remove_dep org.sonatype.jline:jline gshell-${p} %pom_xpath_inject "pom:project/pom:dependencies" " <dependency> <groupId>jline</groupId> <artifactId>jline</artifactId> <version>any</version> <classifier>tests</classifier> <scope>system</scope> <systemPath>$(build-classpath jline2)</systemPath> </dependency>" gshell-${p} done (In reply to comment #3) > %pom_remove_dep org.sonatype.jline:jline gshell-${p} > %pom_xpath_inject "pom:project/pom:dependencies" " > <dependency> > <groupId>jline</groupId> > <artifactId>jline</artifactId> > <version>any</version> > <classifier>tests</classifier> > <scope>system</scope> > <systemPath>$(build-classpath jline2)</systemPath> > </dependency>" gshell-${p} This is not the correct way to solve this. If you hardcode path to jline2 JAR then your build will break with next jline update. See the packaging guidelines for compatibility packages: http://fedoraproject.org/wiki/Packaging:Java#Compatibility_packages Quote from the guidelines: "Maven will use dependency information from main package and will return versioned jar if it matches the version asked for in the pom file." In your case version in POM (2.3) does not match version in the system (2.5), so maven resolves the main package instead (1.0) Created attachment 704109 [details]
gshell spec file
As a note: I really think compatibility package should be the older one and that jline should be renamed to jline1 and jline2 to jline. That would prevent problems like this. (In reply to comment #4) > (In reply to comment #3) > This is not the correct way to solve this. If you hardcode path to jline2 > JAR then your build will break with next jline update. > > See the packaging guidelines for compatibility packages: > http://fedoraproject.org/wiki/Packaging:Java#Compatibility_packages > > Quote from the guidelines: "Maven will use dependency information from main > package and will return versioned jar if it matches the version asked for in > the pom file." In your case version in POM (2.3) does not match version in > the system (2.5), so maven resolves the main package instead (1.0) yes i know but i made these change, before you corrected the jline2 spec file RHBZ#911559 (In reply to comment #6) > As a note: I really think compatibility package should be the older one and > that jline should be renamed to jline1 and jline2 to jline. That would > prevent problems like this. sorry, isn't this the case. latest jline2 (2.10) package breaks backward compatibility. Created attachment 704123 [details] gshell spec file http://koji.fedoraproject.org/koji/watchlogs?taskID=5066367 This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 hi gshell has been retired from rawhide, 2013-07-18 if you want can close this issue thanks regards |