| View previous topic :: View next topic |
| Author |
Message |
Nick C Guru

Joined: 18 Mar 2005 Posts: 526 Location: Portsmouth, England
|
Posted: Wed Jun 14, 2006 9:50 am Post subject: |
|
|
anyone got a copy of the ebuild still, i dont seem to be able to access the link above, if it works with 4.1.2 it might be worth posting on bugs.g.o in hope someone will take the ebuild and add it to the main portage tree  |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Wed Jun 14, 2006 8:21 pm Post subject: |
|
|
Here it is:
| Code: | # Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vnc/vnc-4.0-r1.ebuild,v 1.16 2005/11/18 10:00
:05 hansmi Exp $
inherit eutils toolchain-funcs multilib
X_VERSION="6.9.0"
MY_P="vnc-4_1_2-unixsrc"
DESCRIPTION="Remote desktop viewer display system"
HOMEPAGE="http://www.realvnc.com/"
SRC_URI="http://www.realvnc.com/dist/${MY_P}.tar.gz
server? (
http://xorg.freedesktop.org/X11R${X_VERSION}/src/X11R${X_VERSION}-src.tar
.bz2
)"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="server"
DEPEND="sys-libs/zlib
media-libs/freetype
x11-base/xorg-x11"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${MY_P}.tar.gz ; cd ${S}
epatch ${FILESDIR}/${P}/vnc-cookie.patch
epatch ${FILESDIR}/${P}/vnc-gcc4.patch
epatch ${FILESDIR}/${P}/vnc-fPIC.patch
epatch ${FILESDIR}/${P}/vnc-idle.patch
epatch ${FILESDIR}/${P}/vnc-restart.patch
epatch ${FILESDIR}/${P}/vnc-via.patch
if use server; then
cd ${S}/unix
unpack X11R${X_VERSION}-src.tar.bz2
cd ${S}
# patches from Redhat
epatch ${FILESDIR}/${P}/vnc-build.patch
#epatch ${FILESDIR}/${P}/vnc-xorg-x11-fixes.patch
epatch ${FILESDIR}/${P}/vnc-def.patch
epatch ${FILESDIR}/${P}/vnc-xclients.patch
epatch ${FILESDIR}/${P}/vnc-xorg.patch
epatch ${FILESDIR}/${P}/imake-tmpdir.patch
epatch ${FILESDIR}/${P}/xc.patch-cfbglblt8.patch
cd ${S}/unix
epatch ${S}/unix/xc.patch
HOSTCONF="${S}/unix/xc/config/cf/vnc.def"
echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF}
echo "#define FontDir /usr/share/fonts" >> ${HOSTCONF}
echo "#define LibDir /usr/$(get_libdir)/X11" >> ${HOSTCONF}
echo "#define UsrLibDir /usr/$(get_libdir)" >> ${HOSTCONF}
cd ${S}
fi
}
src_compile() {
cd ${S}/unix
econf --with-installed-zlib || die
emake || die
if use server; then
cd ${S}/unix/xc
make CDEBUGFLAGS="${CFLAGS}" CXXDEBUGFLAGS="${CXXFLAGS}" World FAST=1 ||
die
fi
}
src_install() {
dodir /usr/bin /usr/share/man/man1
use server && dodir /usr/$(get_libdir)/modules/extensions
cd ${S}/unix
./vncinstall ${D}/usr/bin ${D}/usr/share/man ${D}/usr/$(get_libdir)/modules/exten
sions || die
dodoc LICENCE.TXT README
use server || (
rm ${D}/usr/bin/vncserver
rm ${D}/usr/bin/x0vncserver
rm ${D}/usr/share/man/man1/vncpasswd.1.gz
rm ${D}/usr/bin/vncpasswd
rm ${D}/usr/share/man/man1/vncconfig.1.gz
rm ${D}/usr/bin/vncconfig
rm ${D}/usr/share/man/man1/vncserver.1.gz
rm ${D}/usr/share/man/man1/x0vncserver.1.gz
)
ewarn "Note that the free VNC release is not designed for use on untrusted networ
ks"
}
|
|
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Thu Jun 15, 2006 1:21 am Post subject: |
|
|
| Nick C wrote: | anyone got a copy of the ebuild still, i dont seem to be able to access the link above, if it works with 4.1.2 it might be worth posting on bugs.g.o in hope someone will take the ebuild and add it to the main portage tree  |
Nick C,
you can also get the vnc ebuild from the bug report indicated way at the top of this topic. It is found here.
-jekyll |
|
| Back to top |
|
 |
Nick C Guru

Joined: 18 Mar 2005 Posts: 526 Location: Portsmouth, England
|
Posted: Thu Jun 15, 2006 4:59 am Post subject: |
|
|
cheers!
Cant believe i missed that bug report, spent ages going through anything in bugzilla to do with vnc hoping it was posted there!  |
|
| Back to top |
|
 |
cuicui Apprentice


Joined: 17 Dec 2004 Posts: 208
|
Posted: Mon Jul 17, 2006 9:25 am Post subject: |
|
|
Cairo version 1.2.0 breaks VNC 4.1.x (4.1.1 inc., 4.1.2 not tested).
I'm in ~x86, switching dev-python/pycairo and x11-libs/cairo to stable does the tricks.
(No problem w/ TightVNC).
| Code: | Error: Cairo does not yet support the requested image format:
Depth: 32
Alpha mask: 0x00000000
Red mask: 0x000000ff
Blue mask: 0x0000ff00
Green mask: 0x00ff0000
Please file an enhacement request (quoting the above) at:
http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
gnome_segv: cairo-image-surface.c:144: _cairo_format_from_pixman_format: l'assertion « NOT_REACHED » a échoué. |
|
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Fri Aug 04, 2006 3:06 am Post subject: |
|
|
There is another ebuild that is available that compiles vnc using modular X 7.1. It is found at the bottom of the original
buglist page. The patches can be downloaded using the directions from this bugpage.
-jekyll |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Fri Aug 04, 2006 4:02 am Post subject: |
|
|
| jekyll wrote: | There is another ebuild that is available that compiles vnc using modular X 7.1. It is found at the bottom of the original
buglist page. The patches can be downloaded using the directions from this bugpage.
-jekyll |
Using the ebuild above, I get an error compiling: Anyone have any insight as to why in can't find the panoramiX.h file? It is there, in the Xext directory.
| Code: | /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../Xprint -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -DVENDOR_STRING=\""The X.Org Foundation"\" -DVENDOR_RELEASE="(((7) * 10000000) + ((1) * 100000) + ((0) * 1000) + 0)" -march=pentium4 -O2 -pipe -fomit-frame-pointer -c -o cursor.lo cursor.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../Xprint -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER "-DVENDOR_STRING=\"The X.Org Foundation\"" "-DVENDOR_RELEASE=(((7) * 10000000) + ((1) * 100000) + ((0) * 1000) + 0)" -march=pentium4 -O2 -pipe -fomit-frame-pointer -c cursor.c -fPIC -DPIC -o .libs/cursor.o
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../Xprint -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -DVENDOR_STRING=\""The X.Org Foundation"\" -DVENDOR_RELEASE="(((7) * 10000000) + ((1) * 100000) + ((0) * 1000) + 0)" -march=pentium4 -O2 -pipe -fomit-frame-pointer -c -o devices.lo devices.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../Xprint -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER "-DVENDOR_STRING=\"The X.Org Foundation\"" "-DVENDOR_RELEASE=(((7) * 10000000) + ((1) * 100000) + ((0) * 1000) + 0)" -march=pentium4 -O2 -pipe -fomit-frame-pointer -c devices.c -fPIC -DPIC -o .libs/devices.o
devices.c:69:1: warning: "XKB_IN_SERVER" redefined
In file included from devices.c:54:
../include/dix-config.h:346:1: warning: this is the location of the previous definition
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../Xprint -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -DVENDOR_STRING=\""The X.Org Foundation"\" -DVENDOR_RELEASE="(((7) * 10000000) + ((1) * 100000) + ((0) * 1000) + 0)" -march=pentium4 -O2 -pipe -fomit-frame-pointer -c -o dispatch.lo dispatch.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../Xprint -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER "-DVENDOR_STRING=\"The X.Org Foundation\"" "-DVENDOR_RELEASE=(((7) * 10000000) + ((1) * 100000) + ((0) * 1000) + 0)" -march=pentium4 -O2 -pipe -fomit-frame-pointer -c dispatch.c -fPIC -DPIC -o .libs/dispatch.o
dispatch.c:107:23: panoramiX.h: No such file or directory
dispatch.c:108:26: panoramiXsrv.h: No such file or directory
dispatch.c:118:1: warning: "XKB_IN_SERVER" redefined
In file included from dispatch.c:82:
../include/dix-config.h:346:1: warning: this is the location of the previous definition
make[1]: *** [dispatch.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/vnc-4.1.2/work/vnc-4_1_2-unixsrc/unix/xorg-server-1.1.0/dix'
make: *** [all-recursive] Error 1
!!! ERROR: net-misc/vnc-4.1.2 failed.
Call stack:
ebuild.sh, line 1543: Called dyn_compile
ebuild.sh, line 938: Called src_compile
vnc-4.1.2.ebuild, line 140: Called die
!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
Edit:
I was able to get it to compile cleanly. Read below:
Last edited by jekyll on Sat Aug 05, 2006 7:58 am; edited 1 time in total |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Sat Aug 05, 2006 7:57 am Post subject: |
|
|
| jekyll wrote: | There is another ebuild that is available that compiles vnc using modular X 7.1. It is found at the bottom of the original
buglist page. The patches can be downloaded using the directions from this bugpage.
-jekyll |
I was able to get the new ebuild to compile using Modular X. Using this ebuild has some advantages as compared to the old ebuild above. One is that you don't have to download the 40+MB xorg-6.8.2 or xorg-6.9.0 to build the vnc server. It instead uses the smaller xorg-server-1.1.1 package, which is a 6MB package.
To get it to compile, I modified the ebuild with the following changes
- Change XSERVER_VERSION to 1.1.1
- Comment out the patch vnc-ppc64.patch
- Edit the patch vnc-modular-xorg.patch and change all references from xorg-server 1.1.0 to xorg-server 1.1.1
- Rebuild the digest for vnc-4.1.2
After making these changes, it compiles cleanly for me. I haven't tested it much yet, but the vnc.so module seems to work correctly. Manually started vncservers work correctly also.
-jekyll |
|
| Back to top |
|
 |
armin76 Developer

Joined: 24 Apr 2006 Posts: 163
|
Posted: Wed Aug 16, 2006 11:24 am Post subject: |
|
|
BUG no: 86520
The ebuild is now on the tree(thanks genstef)
Since it's a ~arch package, you'll need to mask it(unless you're using ~arch);
-echo "=net-misc/vnc-4.1.2" >> /etc/portage/package.keywords
Last edited by armin76 on Thu Aug 17, 2006 10:28 am; edited 1 time in total |
|
| Back to top |
|
 |
mslinn Apprentice


Joined: 24 Sep 2004 Posts: 206 Location: Half Moon Bay, CA
|
Posted: Thu Aug 17, 2006 6:36 am Post subject: Can't build digest |
|
|
Can't run VNC on the new X11, so I tried to emerge vnc-4.1.2:
| Code: | ]$ sudo emerge -av vnc --digest
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] net-misc/vnc-4.1.2 [4.0-r1] USE="server" 0 kB [1]
Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage
[2] /usr/local/sci
Would you like to merge these packages? [Yes/No]
>>> Creating Manifest for /usr/local/portage/net-misc/vnc
Traceback (most recent call last):
File "/usr/bin/emerge", line 4032, in ?
emerge_main()
File "/usr/bin/emerge", line 4027, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/bin/emerge", line 3558, in action_build
tree="porttree")
File "/usr/lib/portage/pym/portage.py", line 2908, in doebuild
myportdb=mydbapi)
File "/usr/lib/portage/pym/portage.py", line 2314, in digestgen
assumeDistHashesAlways=("assume-digests" in mysettings.features))
File "/usr/lib/portage/pym/portage_manifest.py", line 432, in create
self.fhashdict[mytype][f] = perform_multiple_checksums(self.pkgdir+f, self.hashes)
File "/usr/lib/portage/pym/portage_checksum.py", line 166, in perform_multiple_checksums
raise portage_exception.DigestException, x+" hash function not available (needs dev-python/pycrypto)"
portage_exception.DigestException: 'RMD160 hash function not available (needs dev-python/pycrypto)' |
Tried this but no joy:
| Code: | $sudo emerge dev-python/pycrypto
$ sudo emerge -av vnc --digest |
Still the same error. Any ideas? |
|
| Back to top |
|
 |
armin76 Developer

Joined: 24 Apr 2006 Posts: 163
|
Posted: Thu Aug 17, 2006 10:31 am Post subject: |
|
|
@mslinn:
Try using the ebuild on the tree. But first you'll need to remove the ebuild from the overlay. Then sync your tree, and then 'emerge -avu vnc'. |
|
| Back to top |
|
 |
mslinn Apprentice


Joined: 24 Sep 2004 Posts: 206 Location: Half Moon Bay, CA
|
Posted: Thu Aug 17, 2006 2:45 pm Post subject: Can't build digest |
|
|
| Thanks, but that still leaves me without the ability to create a digest for ebuilds. |
|
| Back to top |
|
 |
armin76 Developer

Joined: 24 Apr 2006 Posts: 163
|
Posted: Thu Aug 17, 2006 3:20 pm Post subject: |
|
|
| I'm sorry, but i'm not a portage expert. |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Sat Aug 19, 2006 1:14 am Post subject: Re: Can't build digest |
|
|
| mslinn wrote: | | Thanks, but that still leaves me without the ability to create a digest for ebuilds. |
It seems others are having the same problem you are. They suggested to move to a previous version of portage. Have you tried to build the digest by:
| Code: | su -
cd /usr/local/portage/net-misc/vnc
ebuild vnc-4.1.2.ebuild digest |
-jekyll |
|
| Back to top |
|
 |
mslinn Apprentice


Joined: 24 Sep 2004 Posts: 206 Location: Half Moon Bay, CA
|
Posted: Sat Aug 19, 2006 3:19 am Post subject: |
|
|
| Yes, I tried that. Same result. |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Sat Aug 19, 2006 8:58 pm Post subject: |
|
|
| mslinn wrote: | | Yes, I tried that. Same result. |
When you say you "tried" it, was it install an earlier version of portage, or the "ebuild vnc-4.1.2.ebuild digest"?
-jekyll |
|
| Back to top |
|
 |
mslinn Apprentice


Joined: 24 Sep 2004 Posts: 206 Location: Half Moon Bay, CA
|
Posted: Sat Aug 19, 2006 11:10 pm Post subject: |
|
|
| I tried the ebuild and the emerge commands with the digest option |
|
| Back to top |
|
 |
devsk Advocate


Joined: 24 Oct 2003 Posts: 2632 Location: Bay Area, CA
|
Posted: Sun Aug 20, 2006 7:27 am Post subject: |
|
|
| Does anyone know insider info about when are they releasing the source for 4.1.8? 4.1.8 is the first version which does render extension. They have commercial versions going up to 4.2.6 already and I was hoping we will see source for higher versions now. 4.1.2 is already a year old. |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Sun Aug 20, 2006 9:05 am Post subject: |
|
|
| mslinn wrote: | | I tried the ebuild and the emerge commands with the digest option |
I'd suggest you downgrade to version 2.0.54-r2 as a possible solution to your digest problem (That's what the other link suggests). As a side note, I have version 2.1.1_pre5-r2 installed and it has no problems with the digest and install. Go figure.....
Another thought: Perhaps your version of python should be updated. The python-updater command should be run when a new version of python comes out. It updates the python environment, and recompiles stuff that needs recompiling. Maybe this might fix your problem.
-jekyll |
|
| Back to top |
|
 |
jekyll n00b

Joined: 07 Mar 2006 Posts: 63
|
Posted: Sun Aug 20, 2006 9:18 am Post subject: |
|
|
| devsk wrote: | | Does anyone know insider info about when are they releasing the source for 4.1.8? 4.1.8 is the first version which does render extension. They have commercial versions going up to 4.2.6 already and I was hoping we will see source for higher versions now. 4.1.2 is already a year old. |
They might never release the code. They rewrote the code for vnc with the 4.x series (as compared to the 3.3 series) and now release it under two licenses. One for money, and a gpl version. I wouldn't hold my breath waiting for them to release it under the gpl license.
Note that the render extension does work when connecting to the console display (:0) using the vnc.so module.
-jekyll |
|
| Back to top |
|
 |
|