Bug 986160

Summary: eclipse-platform: Move directory ownership to a different subpackage
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: eclipseAssignee: Krzysztof Daniel <kdaniel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akurtako, andjrobins, jerboaa, kdaniel, mbenitez, overholt, rgrunber, swagiaal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: eclipse-4.3.0-4.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-07 23:01:00 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: 985674    

Description Mikolaj Izdebski 2013-07-19 05:50:57 UTC
Description of problem:
Currently eclipse-platform owns /usr/share/eclipse/dropins directory.  This means that any package installing files under this directory needs to require eclipse-platform.

IMO this is really bad thing.  I am packaging some Eclipse plugins which can be used outside of Eclipse and they shouldn't pull in the whole platform just for directory ownership.

I would suggest either creating a lightweight subpackage of eclipse (like eclipse-filesystem) without any requires, which would just own these directories, or moving ownership to filesystem package.

Version-Release number of selected component (if applicable):
4.3.0-4

Additional info:
Aether and Sisu are both Eclipse plugins, but also dependencies of Maven.  If they require Eclipse Platform then Maven will require it too, which would be a really bad thing.

/usr/share/eclipse is not owned by any package.  It should probably be owned by eclipse-filesystem too.

Comment 1 Alexander Kurtakov 2013-07-19 06:05:26 UTC
If it's a plugin it needs the platform. If it's installed in /usr/[lib|lib64|share]/eclipse it must be plugin. 
I'm not willing to see non-eclipse things in these directories as they are crawled on startup of eclipse so this slows down startup. 
The right approach is for sisu/aether/etc. to be installed in _javadir as regular jars and if needed a subpackage symlinking them eclipse specific dirs like done in findbugs-contrib. 
Also are Aether and Sisu eclipse plugins or OSGi bundles? I think it's the later and OSGi bundles are not put in eclipse dirs unless needed by plugin (all the apache-commons* ane others).

Comment 2 Krzysztof Daniel 2013-07-23 12:01:20 UTC
I agree with Alex here:
dropins is scanned on startup by Eclipse, and only Eclipse plugins should get there.

A situation where installing maven or maven deps changes Eclipse installation is undesired.

Jars that need to be available both as plain jars and OSGi apps may apply following strategy:
* jars go into /usr/share/java and are symlinked as needed into dropins and/or /usr/lib64/eclipse/plugins by *other* (sub)packages 

examples

 eclipse-emf-core
* goes into /usr/share/java
* symlinked by Eclipse platform into /usr/lib64/eclipse/plugins

 jacoco
* located in /usr/share/java/jacoco
* symlinked by eclipse-eclemma into /usr/share/eclipse/dropins/eclemma/eclipse/plugins/

If you have exactly the same jar that needs to be available as an Eclipse bundle and a plain jar, I'd recommend creating a subpackage (*-plugin) with a symlink.


I'll add the owhership to /usr/share/eclipse

Comment 3 Mikolaj Izdebski 2013-07-23 12:04:45 UTC
OK, I understand that now.
Thanks.

Comment 4 Fedora Update System 2013-07-23 13:58:36 UTC
eclipse-4.3.0-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/eclipse-4.3.0-3.fc19

Comment 5 Fedora Update System 2013-07-24 03:37:18 UTC
Package eclipse-4.3.0-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing eclipse-4.3.0-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-13494/eclipse-4.3.0-3.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-07-29 19:28:32 UTC
eclipse-4.3.0-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/eclipse-4.3.0-4.fc19

Comment 7 Fedora Update System 2013-08-07 23:01:00 UTC
eclipse-4.3.0-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.