When modular X11 stabilized, rgb.txt moved from /usr/X11R6/lib/X11/ to /usr/share/X11; the TightVNC server refers to it via the old path, which causes some programs (notably, xterm) to fail. The default xstartup included in vncserver uses miscellaneous programs, which TightVNC also needs to depend on when USE="server". Under modular X, xterm, twm, xrdb, and xsetroot are required; under old X, only xterm is required. Portage already contains two patches to fix paths in the vncserver script. I'm attaching a new patch to replace both, which also fixes the rgb.txt path, and a new ebuild which references the new patch and has the new dependencies.
Created attachment 94291 [details, diff] New patch (for files/ directory)
Created attachment 94292 [details] New ebuild
Comment on attachment 94291 [details, diff] New patch (for files/ directory) There's already Bug 78385 about this.
*** Bug 138633 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > Created an attachment (id=94292) [edit] > New ebuild You are missing xauth there, see Bug 138633.
Also missing are font dependencies. The (updated) fontPath needs to point at real font directories, or you get: Fatal server error: could not open default font 'fixed' So there is at least a dependency on the 'fixed' font and should probably be depedencies on a more useful font list. Perhaps the font dependency list from x11-base/xorg-x11-7.0-r1.ebuild would make the most sense: media-fonts/ttf-bitstream-vera >=media-fonts/font-bh-type1-1 >=media-fonts/font-adobe-utopia-type1-1.0.1 >=media-fonts/font-adobe-100dpi-1
Also missing is a dependency providing the rgb.txt file itself: x11-apps/rgb
Further investigation has revealed that the 2 fonts actually *required* to make Xvnc run are misc & cursor, provided by: media-fonts/font-misc-misc media-fonts/font-cursor-misc
When building with modular X, x11-misc/gcc-makedep is required (tightvnc should depend on it), otherwise compilation fails.
(In reply to comment #9) > When building with modular X, x11-misc/gcc-makedep is required (tightvnc should > depend on it) It already does, read the ebuild.
Ok, this is what I had to emerge before tightvnc worked on a headless server: - font-misc-misc - font-cursor-misc - xauth - rgb - xfs (I'm not sure about that, tried to specify the fonts in a config file, but there were some other problems then... don't remember exactly) Would be nice if I could remove those from my world file again, I don't like having deps in there. :P
Fixed on cvs, tightvnc-1.2.9-r3.