Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. 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#3319 - GTK2 - Missing Eclipse dependency

Attached to Project: Arch Linux
Opened by Tomasz Zielinski (t_ziel) - Monday, 10 October 2005, 13:59 GMT
Last edited by Dale Blount (dale) - Monday, 10 October 2005, 14:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture not specified
Severity Very Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

GTK2 library is Eclipse dependency. Pacman ignores this fact (Eclipse unusable after install). Detailed description: http://bbs.archlinux.org/viewtopic.php?p=117756#117756
This task depends upon

Closed by  Paul Mattal (paul)
Friday, 14 October 2005, 03:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  Runtime dependency on gtk2 added in eclipse 3.1.1-2
Comment by Dale Blount (dale) - Monday, 10 October 2005, 14:02 GMT
Are you using an eclipse binary that is not ours?
Comment by Tomasz Zielinski (t_ziel) - Monday, 10 October 2005, 14:04 GMT
I have used Eclipse from original Arch Linux repository (0.7 code name: Wombat) - I have used pacman manager. I have not downloaded Eclipse from external website (eclipse.org etc.). Please ask if more details is needed.
Comment by Dale Blount (dale) - Monday, 10 October 2005, 14:12 GMT
sorry JGC, mis clicked on assignment.
Comment by Paul Mattal (paul) - Monday, 10 October 2005, 14:59 GMT
This is one we've been over a million times.

Eclipse requires libgnomeui which requires gnome-keyring which requires gtk2. So the explicit dependency is not needed; gtk2 is a prerequisite of install.

If your system didn't make you install gtk2 first, I *think* that is a bug in pacman, but that would require more research.

Please indicate versions of the eclipse package and the pacman package you're using.
Comment by Dale Blount (dale) - Monday, 10 October 2005, 15:02 GMT
I'm not sure pacman follows the dependancy chain that far when it checks for prereqs. If libgnomeui is installed, that's all pacman cares about when eclipse is installed, AFAIK.

Comment by Paul Mattal (paul) - Monday, 10 October 2005, 17:24 GMT
It shouldn't have to check for gtk2 when it installs eclipse, right? When libgnomeui was installed, it should have checked to make sure gtk2 was installed, and it should not have let gtk2 be uninstalled without first or concurrently uninstalling libgnomeui.

It seems like the only way one can get into a bad situation here is if one overrides dependencies in some pacman operation, either in the past or at install time for eclipse.

Correct me if I'm wrong!
Comment by Dale Blount (dale) - Monday, 10 October 2005, 17:26 GMT
No, that's my guess too. I'm guessing libgnomeui or gnome-keyring were either installed using --nodeps OR one of those packages had a bug when it was originally installed. No clue if pacman checks packages for new dependancies on upgrade.
Comment by Tomasz Zielinski (t_ziel) - Monday, 10 October 2005, 18:10 GMT
Folks! There is one more aspect! :-(

I was playing on two consols (ctrl+alt+f1 as root and ctrl+alt+f2 as ordinary user). After installing Eclipse on first console as root, I get error on second console "...something cannot be locked... eclipse...". The bad thing - I do not remember correctly. I have included this information in forum thread.

Other question: please provide information how to check pacman and Eclipse versions. I have Arch Linux for 2 days and I am not fluent with it. Thank You for Your consideration!
Comment by Paul Mattal (paul) - Monday, 10 October 2005, 18:16 GMT
Sorry, "pacman -Q eclipse pacman".

Wow, I'm really not getting things right the first time today.
Comment by Dale Blount (dale) - Monday, 10 October 2005, 18:16 GMT
you mean:

pacman -Q eclipse pacman libgnomeui gnome-keyring

Comment by Paul Mattal (paul) - Monday, 10 October 2005, 18:17 GMT
Wow, and Dale really is the fastest poster I know. ;)
Comment by Judd Vinet (judd) - Monday, 10 October 2005, 19:15 GMT
Correct. Pacman only checks the first level of dependencies when installing a package. It trusts that the dependency tree is intact, so it doesn't verify the entire tree.
Comment by Paul Mattal (paul) - Monday, 10 October 2005, 19:35 GMT
So this gets us back to the matter immediately at hand: if t_ziel installed without ever using --nodeps, how did (s)he end up without gtk2?

I'll try to test this on a clean test machine (installing base packages and then eclipse directly) in our lab if I get a few seconds today. If that works fine, I'm going to close this bug. Otherwise, I will figure out what makes it work correctly and do that.

- P
Comment by Dale Blount (dale) - Monday, 10 October 2005, 19:38 GMT Comment by Paul Mattal (paul) - Monday, 10 October 2005, 19:43 GMT
Ah, of course. I'm mixing up makedepends and depends. Yes, this must need a RUNTIME dependency on gtk2 which isn't going to be caught by the makedepends on libgnomeui.

I will add this in the next version of the package. It might take a day or two to roll out -- this is a huge sucker of a package.

Sorry for the confusion; trying to do too many things here today. Thanks to all for helping to work through it.

- P

Loading...