You are not logged in.

#1 2015-07-21 18:55:35

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

eclipse-java vs. eclipse-cpp

Since today there appears to be an update to Eclipse in the official repositories. However, the structure of the packages has changed. For some reason, I have to choose between eclipse-java and eclipse-cpp (CDT) since they are both in conflict. However, up till now I was totally fine installing the regular eclipse package together with CDT since I require Eclipse support for java as well as cpp. Does eclipse-cpp include (basic) JAVA support as well? Or should I install eclipse-java and get CDT from the marketplace?

Thanks and best regards,
Karsten

Offline

#2 2015-07-21 20:00:45

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,533

Re: eclipse-java vs. eclipse-cpp

Trying to ignore eclipse-* and still being needed to select between eclipse-cpp and eclipse-php.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2015-07-21 22:56:58

Potomac
Member
Registered: 2011-12-25
Posts: 551

Re: eclipse-java vs. eclipse-cpp

rocktale wrote:

Or should I install eclipse-java and get CDT from the marketplace?

it seems the best solution, install inside eclipse the CDT plugin, no need to have a special package for that,

you can use the "install new software" dialog menu in eclipse, and add this url for the repository :

http://download.eclipse.org/tools/cdt/releases/8.7

https://eclipse.org/cdt/downloads.php

Last edited by Potomac (2015-07-21 22:58:14)

Offline

#4 2015-07-23 16:19:25

rocktale
Member
From: Munich, Germany
Registered: 2009-03-18
Posts: 24

Re: eclipse-java vs. eclipse-cpp

I'd still like to know, what the difference between the three versions is. Apparently there is no way anymore to install a plain version of eclipse? Or is eclipse-java supposed to be the plain version? And if so, why isn't it labeled that way? Being an eclipse user for its flexibility (with different languages) I find the new packaging very irritating. Especially since there appears to be no explanation whatsoever - even the wiki article appears to have no idea why.

But maybe I'm just spoiled after several years of arch linux...

Offline

#5 2015-07-24 13:10:54

cro
Member
From: Germany
Registered: 2006-01-02
Posts: 101

Re: eclipse-java vs. eclipse-cpp

Same problem here.
Why are eclipse-java and eclipse-cpp in conflict? It doesn't make sense. Looks like a bug.
The packages don't even declare each other as conflicting.


EDIT: I filed a bug report. https://bugs.archlinux.org/task/45761

Last edited by cro (2015-07-24 14:09:30)

Offline

#6 2015-07-24 13:29:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: eclipse-java vs. eclipse-cpp

cro wrote:

EDIT: I filed a bug report. https://bugs.archlinux.org/task/45761

And closed. Please do a search before filing bug reports.

Offline

#7 2015-07-24 14:16:42

cro
Member
From: Germany
Registered: 2006-01-02
Posts: 101

Re: eclipse-java vs. eclipse-cpp

Scimmia wrote:
cro wrote:

EDIT: I filed a bug report. https://bugs.archlinux.org/task/45761

And closed. Please do a search before filing bug reports.

I searched before filing, obviously the default search setting is "only tasks with open status", so I missed the closed one.
I find your reason ("packages include conflicting files") questionable. Can't this be avoided by building the packages differently and putting common files in the common package?

This makes the eclipse-cpp (and eclipse-php) packages unusable for me. Maybe I will try the workaround from above.
Does it really make sense to offer separate eclipse packages if you can't install them together??

Offline

#8 2015-07-24 14:23:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: eclipse-java vs. eclipse-cpp

You my find my reasoning questionable, but it's the way it is. This is how upstream is releasing them, so this is how Arch is packaging them.

Offline

#9 2015-07-24 15:46:05

cro
Member
From: Germany
Registered: 2006-01-02
Posts: 101

Re: eclipse-java vs. eclipse-cpp

Scimmia wrote:

You my find my reasoning questionable, but it's the way it is. This is how upstream is releasing them, so this is how Arch is packaging them.

Well, then give the reason "upstream".

Offline

#10 2015-07-26 14:37:48

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: eclipse-java vs. eclipse-cpp

But why the package 'eclipse' is suggested to be replaced with 'eclipse-java' and not with 'eclipse-common'? Did upstream decide to be "less multilanguage"? Could someone advise please how to upgrade the  'eclipse' package ('4.4.2 Luna') to 'eclipse-common' so that all settings are preserved? (I don't need Java plugins in Eclipse).


bing different

Offline

#11 2015-07-26 17:32:56

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: eclipse-java vs. eclipse-cpp

Well, older version of the Eclipse wiki page said the 'eclipse' package came with support for Java development (and that's how I remember it from using Eclipse for Java a couple of years ago). So maybe you always had the Java plugins installed, but now you get to choose to remove them and use eclipse-common only?

Offline

#12 2015-07-26 18:01:43

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: eclipse-java vs. eclipse-cpp

That's probably as it is. Thanks for the advise. I'll install eclipse-java then, and remove the Java-related content if it's removable.


bing different

Offline

#13 2015-07-26 18:22:33

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,533

Re: eclipse-java vs. eclipse-cpp

Installing either eclipse-* will automatically install eclipse-common, but would eclipse-cpp include eclipse-java?  Eclipse-cpp is the bigger of the two.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#14 2015-07-29 17:33:39

dphoyes
Member
Registered: 2009-02-19
Posts: 8

Re: eclipse-java vs. eclipse-cpp

This seems to summarise what is included with each version: https://eclipse.org/downloads/compare.php?release=mars

Looks like neither of eclipse-cpp or eclipse-java is a superset of the other.

Offline

#15 2015-07-31 14:04:32

Potomac
Member
Registered: 2011-12-25
Posts: 551

Re: eclipse-java vs. eclipse-cpp

That's why it's better to install C++ or php plugin with the "marketplace way"  inside eclipse (  the "install new software" dialog menu in eclipse ), if you want to use both java and C++ languages with eclipse.

Last edited by Potomac (2015-07-31 14:11:59)

Offline

#16 2015-08-01 17:09:04

vonPalitroque
Member
Registered: 2010-08-01
Posts: 8

Re: eclipse-java vs. eclipse-cpp

Potomac wrote:

That's why it's better to install C++ or php plugin with the "marketplace way"  inside eclipse (  the "install new software" dialog menu in eclipse ), if you want to use both java and C++ languages with eclipse.

This is an unacceptable proposition.

It implies that EVERY USER in the computer needs to perform this operation in order to utilize the IDE with both Java and C/C++ instead of having a global install. Not only this bloats the user's home directory, it also wastes space in /home with duplicate components. Having a global package installed like it was before is a better solution in my opinion.

Cheers.

Last edited by vonPalitroque (2015-08-01 17:09:41)

Offline

#17 2015-08-01 20:56:39

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,533

Re: eclipse-java vs. eclipse-cpp

vonPalitroque wrote:
Potomac wrote:

That's why it's better to install C++ or php plugin with the "marketplace way"  inside eclipse (  the "install new software" dialog menu in eclipse ), if you want to use both java and C++ languages with eclipse.

This is an unacceptable proposition.

It implies that EVERY USER in the computer needs to perform this operation in order to utilize the IDE with both Java and C/C++ instead of having a global install. Not only this bloats the user's home directory, it also wastes space in /home with duplicate components. Having a global package installed like it was before is a better solution in my opinion.

Cheers.

This definitely isn't the arch way.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#18 2015-08-01 21:15:19

vonPalitroque
Member
Registered: 2010-08-01
Posts: 8

Re: eclipse-java vs. eclipse-cpp

nomorewindows wrote:

This definitely isn't the arch way.

Sorry, I do not quite follow.

The Arch Way wrote:

Packages are only split when compelling advantages exist rather than it being the norm. Splitting is only done to save disk space in particularly bad cases of waste.

It seems to me that my suggestion does follow The Arch Way. With these conflicting packages, every user is forced to install CDT and whatever else they wish in their home directory in order to be able to use Eclipse with C/C++ and any other languages they wish to utilize. I suppose that if you are the unique user of your system, this is acceptable, but it is most definitely not acceptable in multi-user systems, especially if every user has a quota on their home directory.

Cheers.

Last edited by vonPalitroque (2015-08-01 21:15:28)

Offline

#19 2015-08-01 21:25:03

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,533

Re: eclipse-java vs. eclipse-cpp

vonPalitroque wrote:
nomorewindows wrote:

This definitely isn't the arch way.

Sorry, I do not quite follow.

The Arch Way wrote:

Packages are only split when compelling advantages exist rather than it being the norm. Splitting is only done to save disk space in particularly bad cases of waste.

It seems to me that my suggestion does follow The Arch Way. With these conflicting packages, every user is forced to install CDT and whatever else they wish in their home directory in order to be able to use Eclipse with C/C++ and any other languages they wish to utilize. I suppose that if you are the unique user of your system, this is acceptable, but it is most definitely not acceptable in multi-user systems, especially if every user has a quota on their home directory.

Cheers.

The marketplace thing isn't the right way, but your'e right on. I should've split the quotes up.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#20 2015-08-01 22:44:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: eclipse-java vs. eclipse-cpp

nomorewindows wrote:

This definitely isn't the arch way.

That may be, but with some packages (Eclipse, emacs) it works better.  Eclipse is an extreme case.  Adding things from the Maretplace only impact the user doing it -- not really an anti Arch thing to do.  Actually, I always install all of Eclipse as a user to my home directory from sites on the Internet.  Always.   That is not the un-Arch way either -- just don't go installing things outside of the /home tree...

Of course, I've been known to build and install my own kernel by hand too. but that is a different story....


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#21 2015-08-03 00:28:26

Potomac
Member
Registered: 2011-12-25
Posts: 551

Re: eclipse-java vs. eclipse-cpp

vonPalitroque wrote:

I suppose that if you are the unique user of your system, this is acceptable, but it is most definitely not acceptable in multi-user systems, especially if every user has a quota on their home directory.

Cheers.

probably 90% of people who use archlinux are the unique user of the PC, so it's a false problem, marketplace seems the easy way to install a plugin in eclipse

Offline

#22 2015-09-07 17:02:25

vonPalitroque
Member
Registered: 2010-08-01
Posts: 8

Re: eclipse-java vs. eclipse-cpp

Potomac wrote:

probably 90% of people who use archlinux are the unique user of the PC, so it's a false problem, marketplace seems the easy way to install a plugin in eclipse

Yeah, and probably 80% of statistics are made up as well. The argument is invalid. In any case, instead of arguing about semantics or what should be done, here is a PKGBUILD that performs a global install of CDT using what is given in the marketplace. At the very least, this works in my system. Whoever is interested, feel free to use it, modify it or whatever.

# Contributor: Orlando Arias <oarias <at> knights <dot> ucf <dot> edu>

pkgname=eclipse-cdt
_basever=8.6
pkgver=${_basever}.0
pkgrel=1
pkgdesc="Eclipse CDT plugin from marketplace"
arch=('any')
url="https://marketplace.eclipse.org/content/eclipse-cdt-cc-development-tooling"
license=('EPL')
depends=('eclipse-java')
provides=('eclipse-cpp')
conflicts=('eclipse-cpp')
replaces=('eclipse-cpp')
source=("http://download.eclipse.org/tools/cdt/releases/${_basever}/cdt-${pkgver}.zip")
sha256sums=('81b7d19d57c4a3009f4761699a72e8d642b5e1d9251d2bb98df438b1e28f8ba9')


package() {
	cd "${srcdir}"
	
	install -d \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/"{features,plugins,binary}
	install -m644 features/* \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/features/"
	install -m644 plugins/* \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/plugins/"
	install -m644 binary/* \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/binary/"
}

Cheers.

Last edited by vonPalitroque (2015-09-07 17:06:31)

Offline

#23 2015-09-14 23:23:32

nicovell3
Member
Registered: 2015-06-12
Posts: 12
Website

Re: eclipse-java vs. eclipse-cpp

vonPalitroque wrote:

here is a PKGBUILD that performs a global install of CDT using what is given in the marketplace. At the very least, this works in my system. Whoever is interested, feel free to use it, modify it or whatever.

# Contributor: Orlando Arias <oarias <at> knights <dot> ucf <dot> edu>

pkgname=eclipse-cdt
_basever=8.6
pkgver=${_basever}.0
pkgrel=1
pkgdesc="Eclipse CDT plugin from marketplace"
arch=('any')
url="https://marketplace.eclipse.org/content/eclipse-cdt-cc-development-tooling"
license=('EPL')
depends=('eclipse-java')
provides=('eclipse-cpp')
conflicts=('eclipse-cpp')
replaces=('eclipse-cpp')
source=("http://download.eclipse.org/tools/cdt/releases/${_basever}/cdt-${pkgver}.zip")
sha256sums=('81b7d19d57c4a3009f4761699a72e8d642b5e1d9251d2bb98df438b1e28f8ba9')


package() {
	cd "${srcdir}"
	
	install -d \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/"{features,plugins,binary}
	install -m644 features/* \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/features/"
	install -m644 plugins/* \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/plugins/"
	install -m644 binary/* \
		"${pkgdir}/usr/lib/eclipse/dropins/cdt-${pkgver}/eclipse/binary/"
}

Cheers.

Why don't you upload that pkgbuild to aur? When I saw it, I ran into aur to look for it and have it installed through yaourt.
Please, upload it to aur.

Offline

#24 2015-09-15 18:17:02

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,048

Re: eclipse-java vs. eclipse-cpp

I tried upload it but aparently someonther already take ounership of eclipse-cdt, so for now I will wait the 24 to see if upload something, else something is wrong here.


Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::

Offline

#25 2015-09-19 15:39:31

vonPalitroque
Member
Registered: 2010-08-01
Posts: 8

Re: eclipse-java vs. eclipse-cpp

nicovell3 wrote:

Why don't you upload that pkgbuild to aur? When I saw it, I ran into aur to look for it and have it installed through yaourt.
Please, upload it to aur.

Since I do not have the time to maintain it, there is no point on me submitting the PKGBUILD to the AUR just for it to be orphaned straight away. Hence Why I listed myself as "Contributor" and not "Maintainer".

Jristz wrote:

I tried upload it but aparently someonther already take ounership of eclipse-cdt, so for now I will wait the 24 to see if upload something, else something is wrong here.

This is likely because eclipse-cdt was the name of the old package, which the new eclipse-cpp aims to replace. It may still be cached somewhere, not sure.

Offline

Board footer

Powered by FluxBB