Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504774 - dev-java/jflex-1.5.0 file collision
Summary: dev-java/jflex-1.5.0 file collision
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 10:15 UTC by Martin von Gagern
Modified: 2015-02-22 19:26 UTC (History)
4 users (show)

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 Martin von Gagern 2014-03-16 10:15:34 UTC
I thought I had this here reported already, but it seems I did not.

A world upgrade fails on jflex due to a file collision:

 * package dev-java/jflex-1.5.0 NOT merged
 * 
 * Detected file collision(s):
 * 
 * dev-java/jflex-1.4.3:0::gentoo
 *      /usr/bin/jflex

This is because I have jflex:0 installed. Simply adding a SLOT=1.5 to the ebuild doesn't allow the two versions to be installed simultaneously.

This is on top of the USE=doc issue reported in bug #498874 comment #2 which I avoided by setting USE=-doc.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-04-04 19:08:44 UTC
A collision occurs with 

> /usr/share/vim/vimfiles/syntax/jflex.vim

Also happens with SLOT=1.5 vs SLOT=0

Not sure how you'll solve that, maybe split that into a separate app-vim/ package.
Comment 2 Martin von Gagern 2014-04-27 13:07:46 UTC
Same in jflex-1.5.1. Please fix this SLOT mess! Masking >=1.5 locally for now.
Comment 3 Martin von Gagern 2015-01-25 14:10:33 UTC
Same for jflex 1.6.0, which introduces yet another slot to provide the same launcher. Please fix this!
Comment 4 Kobboi 2015-02-22 17:54:29 UTC
Hitting this one as well
Comment 5 Kobboi 2015-02-22 17:55:31 UTC
 * Detected file collision(s):
 * 
 * 	/usr/bin/jflex
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-java/jflex-1.4.3:0::gentoo
 * 	/usr/bin/jflex
 * 
 * Package 'dev-java/jflex-1.6.0' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.
Comment 6 Patrice Clement gentoo-dev 2015-02-22 18:50:31 UTC
Here's my diff to fix the problem (discussed with fordfrog):

patrice@freshmint ~/gentoo-x86/dev-java/jflex $ cvs diff
cvs diff: Diffing .
Index: jflex-1.4.3.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.4.3.ebuild,v
retrieving revision 1.8
diff -r1.8 jflex-1.4.3.ebuild
17c17
< SLOT="0"
---
> SLOT="1.4"
59c59
<       java-pkg_dolauncher "${PN}" --main JFlex.Main
---
>       java-pkg_dolauncher "${PN}-${SLOT}" --main JFlex.Main
Index: jflex-1.5.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.5.0.ebuild,v
retrieving revision 1.2
diff -r1.2 jflex-1.5.0.ebuild
62c62
<       java-pkg_dolauncher "${PN}" --main jflex.Main
---
>       java-pkg_dolauncher "${P}" --main jflex.Main
Index: jflex-1.5.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.5.1.ebuild,v
retrieving revision 1.3
diff -r1.3 jflex-1.5.1.ebuild
72c72
<       java-pkg_dolauncher "${PN}" --main jflex.Main
---
>       java-pkg_dolauncher "${P}" --main jflex.Main
Index: jflex-1.6.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.6.0.ebuild,v
retrieving revision 1.1
diff -r1.1 jflex-1.6.0.ebuild
72c72
<       java-pkg_dolauncher "${PN}" --main jflex.Main
---
>       java-pkg_dolauncher "${PN}-${SLOT}" --main jflex.Main

Going forward, package collisions should not occur again.
Comment 7 Patrice Clement gentoo-dev 2015-02-22 18:55:58 UTC
+  22 Feb 2015; Patrice Clement <monsieurp@gentoo.org> jflex-1.4.3.ebuild,
+  jflex-1.5.0.ebuild, jflex-1.5.1.ebuild, jflex-1.6.0.ebuild:
+  Fix package collisions and bug #504774.
+
Comment 8 Patrice Clement gentoo-dev 2015-02-22 19:26:13 UTC
BTW, in case of issues, reopen and assign the bug to me. Thank you.