Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 4603
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Grant Goodyear <g2boojum@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ivan C. <navi_@hotmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
tightvnc-1.2.3-r2.ebuild tightvnc-1.2.3-r2.ebuild text/plain Ivan C. 2002-07-06 16:19 0000 1.22 KB Details
tightvnc-gentoo.diff tightvnc-gentoo.diff patch Ivan C. 2002-07-06 16:20 0000 636 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 4603 depends on: Show dependency tree
Bug 4603 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-07-05 19:14 0000
Currently the tightvnc web based interface is broken.  Usually when a vncserver 
is started, an internal httpd server is setup for (in unix) port 5800 + display 
number.  In the current tighvnc, the webserver portion is broken due to the 
vnc_unixsrc/classes/* not being copied over to /usr/local/vnc/classes during 
installation.

This bug can be fixed by several means, all that is required is that the entire 
classes/ directory be copied somewhere during the installation (and if that 
place is not /usr/local/vnc/classes/ then the vncserver script should be 
modified to point to the location of those files.  Line 38 
of /usr/bin/vncserver).

I am not too familiar with the filesystem layout of Gentoo (yet ;)) so I am 
unsure how to propose a fix for this bug.  If creating a directory 
under /usr/local/ is no big deal then a simple copy of the class files during 
installation (via ebuild) would work.  If it is a big deal, then a patch to 
vncserver to point to the appropiate location for accessory files such as the 
java classes would be in order. 

I hope someone can shed some more light on how to proceed with this issue.


Thanks,

Ivan C.

------- Comment #1 From Grant Goodyear 2002-07-05 20:57:56 0000 -------
We reserve /usr/local for the users; ebuilds shouldn't touch it.
You probably want /usr/share/vnc for the class files.

Thanks!

------- Comment #2 From Ivan C. 2002-07-06 16:18:45 0000 -------
Attached below is a new ebuild (tightvnc-1.2.3-r2.ebuild) along with a patch
(tightvnc-gentoo.diff) which fixes the web interface / java class issue.

The ebuild file has been modified to include the following lines:

   # fix the web based interface, it needs the java class files
   mkdir -p ${D}/usr/share/tightvnc
   mkdir -p ${D}/usr/share/tightvnc/classes
   insinto /usr/share/tightvnc/classes ; doins classes/*

   # and then patch vncserver to point to /usr/share/tightvnc/classes
   patch -p0 < ${FILESDIR}/tightvnc-gentoo.diff || die


The patch itself simply modifies vncserver to look for the class files under
/usr/share/tightvnc/classes instead of the default /usr/local/vnc/classes:

-$vncClasses = "/usr/local/vnc/classes";
+$vncClasses = "/usr/share/tightvnc/classes";

The patch also fixes a $fontPath issue with tightvnc looking in the wrong dir
for the fonts, it now looks in /usr/lib/X11/fonts.  I named the patch file
tightvnc-gentoo.diff as all versions (new and old) of tightvnc will need this
patch to have the web interace work - not just the 1.2.3-r2 version.

Also I believe the regular VNC package will have/has a similiar problem with its
web interface and the solution should be very similiar to this one (just in case
any regular VNC users want to patch there version ;))


Thanks,

Ivan C. 

------- Comment #3 From Ivan C. 2002-07-06 16:19:55 0000 -------
Created an attachment (id=1996) [details]
tightvnc-1.2.3-r2.ebuild

------- Comment #4 From Ivan C. 2002-07-06 16:20:48 0000 -------
Created an attachment (id=1997) [details]
tightvnc-gentoo.diff

------- Comment #5 From Grant Goodyear 2002-07-12 15:44:23 0000 -------
Done.  Thanks!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug