Summary: | /usr/bin/vim depends on X11 libs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ian Kumlien <ian.kumlien> |
Component: | Current packages | Assignee: | Aron Griffis (RETIRED) <agriffis> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ian Kumlien
2003-04-10 20:52:14 UTC
I bet more information is going to be required for this. Things like emerge --info, epm -q vim, and ldd /usr/bin/vim would probably be helpful. Have you tried remerging vim? It works fine for me. Even if I set DISPLAY to something invalid, vim still works. It just puts out a warning that it couldn't connect to the X server, but it continues to function just fine. pomac@blue export $ ldd `which vim` libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40022000) libncurses.so.5 => /lib/libncurses.so.5 (0x4007f000) libgpm.so.1 => /usr/lib/libgpm.so.1 (0x400c0000) libdl.so.2 => /lib/libdl.so.2 (0x400c6000) libperl.so.1 => /usr/lib/libperl.so.1 (0x400c9000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x401bb000) libutil.so.1 => /lib/libutil.so.1 (0x401e8000) libpthread.so.0 => /lib/libpthread.so.0 (0x401ec000) libm.so.6 => /lib/libm.so.6 (0x4023c000) libc.so.6 => /lib/libc.so.6 (0x4025e000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40389000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40480000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4048b000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) pomac@blue export $ I have reemegred 2 times, I think i'd have to USES="-X" emerge vim or something to get it to install propperly. But i see it more as a broken package dependecy that should be fixed. Well, here are my thoughts: First, I think you're right, that the vim ebuild should not link against the X libraries. It kinda obviates the point of having a leaner terminal-based version of vim. So I will make that change. The downside is that vim will no longer set the xterm titlebar. I know I will get complaints on this. Here is the answer: emerge -C vim emerge gvim When you emerge gvim, it will notice that there is no /usr/bin/vim, and it will create a symlink. That version has the ability to set xterm titlebars because it will be linked against the X libraries. If any users desperately want a vim that's linked against X but not against any toolkits, do USE="-gtk -gtk2 -gnome -motif" emerge gvim That will generate an executable that is effectively what you want, along with the /usr/bin/vim symbolic link. Finally, note that the real problem in your bug report was a vim bug. Vim normally drops to terminal mode when it can't establish the X connection. This was reported and fixed in vim recently. The fix is available in 6.2a, aka 6.2_pre1 in Gentoo. Ahhh, Well, When that version of vim becomes a part of gentoo's update list it'll all go away then... Nice =) And this should leave this issue resolved/fixed imho =) okay, it's all committed now |