Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#48562 - eclipse packaging causing conflicting dependencies

Attached to Project: Arch Linux
Opened by Bill Mair (red-lichtie) - Sunday, 13 March 2016, 11:16 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 13 March 2016, 14:52 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When upgrading eclipse I get the following error because I use java and cpp.

# pacman -Su
:: Starting full system upgrade...
:: Replace eclipse with extra/eclipse-java? [Y/n]
:: Replace eclipse-cdt with extra/eclipse-cpp? [Y/n]
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: eclipse-java and eclipse-cpp are in conflict

This is because the packages eclipse "product" packages have overlapping files.

One suggested resolution is to only install one of the products, i.e. java or cpp and then add support for the other product via the eclipse installation mechanisms.

The way that I think it could be resolved is to have the 3 current product packages installed in their own directory and linked with standard eclipse mechanism for product extensions.

This mechanism is described here: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fproduct_extension.htm

I think they should be installed as follows:

-------------

eclipse-common remains unchanged but for the addition of the "links" directory
add directory: /usr/lib/eclipse/links

-------------

eclipse-java is installed in to /usr/lib/eclipse-java/eclipse
add empty file: /usr/lib/eclipse-java/eclipse/.eclipseextension
add link file: /usr/lib/eclipse/links/eclipse-java.link whose contents would then be:

path=/usr/lib/eclipse-java/eclipse
name=Eclipse Java Developer Toolkit
id=org.eclipse.jdt
version=4.5.2

-------------

eclipse-cpp is installed in to /usr/lib/eclipse-cpp/eclipse
add empty file: /usr/lib/eclipse-cpp/eclipse/.eclipseextension
add link file: /usr/lib/eclipse/links/eclipse-cpp.link whose contents would then be:

path=/usr/lib/eclipse-cpp/eclipse
name=Eclipse C Developers Toolkit
id=org.eclipse.cdt
version=4.5.2

-------------

eclipse-php is installed in to /usr/lib/eclipse-php/eclipse
add empty file: /usr/lib/eclipse-php/eclipse/.eclipseextension
add link file: /usr/lib/eclipse/links/eclipse-php.link whose contents would then be:

path=/usr/lib/eclipse-php/eclipse
name=Eclipse PHP Developers Toolkit
id=org.eclipse.php
version=4.5.2

-------------
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 13 March 2016, 14:52 GMT
Reason for closing:  Duplicate
Additional comments about closing:  FS#45577
Comment by Bill Mair (red-lichtie) - Sunday, 13 March 2016, 11:24 GMT
Maybe this should have been added to: https://bugs.archlinux.org/task/45577 ?
Comment by Bill Mair (red-lichtie) - Sunday, 13 March 2016, 11:28 GMT
Please close, on review I've added my comment to https://bugs.archlinux.org/task/45577

Loading...