Ticket #34730: patch-LibVNCServer.diff
File patch-LibVNCServer.diff, 2.9 KB (added by pixilla (Bradley Giesbrecht), 12 years ago) |
---|
-
files/patch-libvncserver-sockets.c.diff
1 --- a/libvncserver/sockets.c 2012-06-03 09:58:44.000000000 -0700 2 +++ b/libvncserver/sockets.c 2012-06-03 09:58:31.000000000 -0700 3 @@ -402,9 +402,9 @@ 4 rfbLogPerror("rfbProcessNewConnection: error in select"); 5 return FALSE; 6 } 7 - if (FD_ISSET(rfbScreen->listenSock, &listen_fds)) 8 + if (rfbScreen->listenSock >= 0 && FD_ISSET(rfbScreen->listenSock, &listen_fds)) 9 chosen_listen_sock = rfbScreen->listenSock; 10 - if (FD_ISSET(rfbScreen->listen6Sock, &listen_fds)) 11 + if (rfbScreen->listen6Sock >= 0 && FD_ISSET(rfbScreen->listen6Sock, &listen_fds)) 12 chosen_listen_sock = rfbScreen->listen6Sock; 13 14 if ((sock = accept(chosen_listen_sock, -
files/patch-configure.ac.diff
1 --- a/configure.ac 2012-06-03 09:58:44.000000000 -0700 2 +++ b/configure.ac 2012-06-03 10:32:12.000000000 -0700 3 @@ -791,7 +791,11 @@ 4 5 6 # Check for GTK+. if present, build the GTK+ vnc viewer example 7 -PKG_CHECK_MODULES([GTK], [gtk+-2.0],,:) 8 +AC_ARG_WITH(gtk, 9 +[ --without-gtk disable support for gtk],,) 10 +if test "x$with_gtk" != "xno"; then 11 + PKG_CHECK_MODULES([GTK], [gtk+-2.0],,:) 12 +fi 13 AM_CONDITIONAL(HAVE_LIBGTK, test ! -z "$GTK_LIBS") 14 15 AC_CANONICAL_HOST -
Portfile
5 5 6 6 name LibVNCServer 7 7 version 0.9.9 8 revision 1 8 9 categories devel 9 10 platforms darwin 10 11 maintainers ryandesign … … 19 20 homepage http://libvncserver.sourceforge.net/ 20 21 master_sites sourceforge:project/libvncserver/libvncserver/${version} 21 22 23 patch.pre_args -p1 24 patchfiles patch-configure.ac.diff 25 # Don't segfault when listenSock/listen6Sock == -1 26 patchfiles-append patch-libvncserver-sockets.c.diff 27 22 28 checksums rmd160 e62e0903124abb85746bcac6498214fe09c3b4d7 \ 23 29 sha256 cf060d3525c2fb92be2fa18bbc697fb355592b52484e60745f3bcac5c3f803f9 24 30 … … 26 32 port:jpeg \ 27 33 port:zlib 28 34 35 use_autoconf yes 36 29 37 configure.f77 no 30 38 31 39 configure.args --without-x \ 32 --without-sdl-config 40 --without-sdl-config \ 41 --without-gtk 33 42 34 43 post-destroot { 35 44 set docdir ${destroot}${prefix}/share/doc/${name}