Requires: gstream-plugins-good
This commit is contained in:
parent
304d0acd15
commit
02be0c7213
@ -1,14 +0,0 @@
|
|||||||
diff --git a/unix/xserver/hw/vnc/RFBGlue.cc b/unix/xserver/hw/vnc/RFBGlue.cc
|
|
||||||
index 09832ab..a150792 100644
|
|
||||||
--- a/unix/xserver/hw/vnc/RFBGlue.cc
|
|
||||||
+++ b/unix/xserver/hw/vnc/RFBGlue.cc
|
|
||||||
@@ -194,7 +194,7 @@ int vncIsTCPPortUsed(int port)
|
|
||||||
std::list<network::TcpListener> dummy;
|
|
||||||
network::createTcpListeners (&dummy, 0, port);
|
|
||||||
} catch (rdr::Exception& e) {
|
|
||||||
- return 0;
|
|
||||||
+ return 1;
|
|
||||||
}
|
|
||||||
- return 1;
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
@ -1,21 +1,21 @@
|
|||||||
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
|
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
|
||||||
index 1ebaeec..2d7a52f 100644
|
index 5a8f75d..6ef8f2e 100644
|
||||||
--- a/common/network/TcpSocket.cxx
|
--- a/common/network/TcpSocket.cxx
|
||||||
+++ b/common/network/TcpSocket.cxx
|
+++ b/common/network/TcpSocket.cxx
|
||||||
@@ -369,18 +369,12 @@ bool TcpSocket::cork(int sock, bool enable) {
|
@@ -360,18 +360,12 @@ bool TcpSocket::cork(int sock, bool enable) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
-bool TcpSocket::isSocket(int sock)
|
-bool TcpSocket::isSocket(int sock)
|
||||||
-{
|
+bool TcpSocket::isListening(int sock)
|
||||||
|
{
|
||||||
- vnc_sockaddr_t sa;
|
- vnc_sockaddr_t sa;
|
||||||
- socklen_t sa_size = sizeof(sa);
|
- socklen_t sa_size = sizeof(sa);
|
||||||
- return getsockname(sock, &sa.u.sa, &sa_size) >= 0;
|
- return getsockname(sock, &sa.u.sa, &sa_size) >= 0;
|
||||||
-}
|
-}
|
||||||
-
|
-
|
||||||
-bool TcpSocket::isConnected(int sock)
|
-bool TcpSocket::isConnected(int sock)
|
||||||
+bool TcpSocket::isListening(int sock)
|
-{
|
||||||
{
|
|
||||||
- vnc_sockaddr_t sa;
|
- vnc_sockaddr_t sa;
|
||||||
- socklen_t sa_size = sizeof(sa);
|
- socklen_t sa_size = sizeof(sa);
|
||||||
- return getpeername(sock, &sa.u.sa, &sa_size) >= 0;
|
- return getpeername(sock, &sa.u.sa, &sa_size) >= 0;
|
||||||
@ -24,14 +24,14 @@ index 1ebaeec..2d7a52f 100644
|
|||||||
+ return getsockopt(sock, SOL_SOCKET, SO_ACCEPTCONN, &listening,
|
+ return getsockopt(sock, SOL_SOCKET, SO_ACCEPTCONN, &listening,
|
||||||
+ &listening_size) >= 0 && listening;
|
+ &listening_size) >= 0 && listening;
|
||||||
}
|
}
|
||||||
|
|
||||||
int TcpSocket::getSockPort(int sock)
|
int TcpSocket::getSockPort(int sock)
|
||||||
diff --git a/common/network/TcpSocket.h b/common/network/TcpSocket.h
|
diff --git a/common/network/TcpSocket.h b/common/network/TcpSocket.h
|
||||||
index 979cd4b..2bfe47b 100644
|
index 02f04c9..a97e683 100644
|
||||||
--- a/common/network/TcpSocket.h
|
--- a/common/network/TcpSocket.h
|
||||||
+++ b/common/network/TcpSocket.h
|
+++ b/common/network/TcpSocket.h
|
||||||
@@ -65,8 +65,7 @@ namespace network {
|
@@ -65,8 +65,7 @@ namespace network {
|
||||||
|
|
||||||
static bool enableNagles(int sock, bool enable);
|
static bool enableNagles(int sock, bool enable);
|
||||||
static bool cork(int sock, bool enable);
|
static bool cork(int sock, bool enable);
|
||||||
- static bool isSocket(int sock);
|
- static bool isSocket(int sock);
|
||||||
@ -41,16 +41,16 @@ index 979cd4b..2bfe47b 100644
|
|||||||
private:
|
private:
|
||||||
bool closeFd;
|
bool closeFd;
|
||||||
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc
|
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc
|
||||||
index e307e31..dc449bd 100644
|
index 2d918b0..863cd36 100644
|
||||||
--- a/unix/xserver/hw/vnc/vncExtInit.cc
|
--- a/unix/xserver/hw/vnc/vncExtInit.cc
|
||||||
+++ b/unix/xserver/hw/vnc/vncExtInit.cc
|
+++ b/unix/xserver/hw/vnc/vncExtInit.cc
|
||||||
@@ -137,8 +137,7 @@ void vncExtensionInit(void)
|
@@ -137,8 +137,7 @@ void vncExtensionInit(void)
|
||||||
std::list<network::TcpListener> listeners;
|
std::list<network::TcpListener*> listeners;
|
||||||
std::list<network::TcpListener> httpListeners;
|
std::list<network::TcpListener*> httpListeners;
|
||||||
if (scr == 0 && vncInetdSock != -1) {
|
if (scr == 0 && vncInetdSock != -1) {
|
||||||
- if (network::TcpSocket::isSocket(vncInetdSock) &&
|
- if (network::TcpSocket::isSocket(vncInetdSock) &&
|
||||||
- !network::TcpSocket::isConnected(vncInetdSock))
|
- !network::TcpSocket::isConnected(vncInetdSock))
|
||||||
+ if (network::TcpSocket::isListening(vncInetdSock))
|
+ if (network::TcpSocket::isListening(vncInetdSock))
|
||||||
{
|
{
|
||||||
listeners.push_back (network::TcpListener(vncInetdSock));
|
listeners.push_back(new network::TcpListener(vncInetdSock));
|
||||||
vlog.info("inetd wait");
|
vlog.info("inetd wait");
|
||||||
|
@ -1,18 +1,20 @@
|
|||||||
diff -up tigervnc-1.4.2/unix/vncserver.manpages tigervnc-1.4.2/unix/vncserver
|
diff --git a/unix/vncserver b/unix/vncserver
|
||||||
--- tigervnc-1.4.2/unix/vncserver.manpages 2015-02-12 19:39:32.253788841 +0000
|
index c4d0535..08a9308 100755
|
||||||
+++ tigervnc-1.4.2/unix/vncserver 2015-02-12 19:39:32.326789294 +0000
|
--- a/unix/vncserver
|
||||||
@@ -551,6 +551,7 @@ sub Usage
|
+++ b/unix/vncserver
|
||||||
|
@@ -637,6 +637,7 @@ sub Usage
|
||||||
" [-geometry <width>x<height>]\n".
|
" [-geometry <width>x<height>]\n".
|
||||||
" [-pixelformat rgbNNN|bgrNNN]\n".
|
" [-pixelformat rgbNNN|bgrNNN]\n".
|
||||||
" [-fp <font-path>]\n".
|
" [-fp <font-path>]\n".
|
||||||
+ " [-cc <visual>]\n".
|
+ " [-cc <visual>]\n".
|
||||||
" [-fg]\n".
|
" [-fg]\n".
|
||||||
" [-autokill]\n".
|
" [-autokill]\n".
|
||||||
" <Xvnc-options>...\n\n".
|
" [-noxstartup]\n".
|
||||||
diff -up tigervnc-1.4.2/vncviewer/vncviewer.cxx.manpages tigervnc-1.4.2/vncviewer/vncviewer.cxx
|
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
|
||||||
--- tigervnc-1.4.2/vncviewer/vncviewer.cxx.manpages 2015-01-23 23:37:23.000000000 +0000
|
index a2bc029..6923d0e 100644
|
||||||
+++ tigervnc-1.4.2/vncviewer/vncviewer.cxx 2015-02-12 19:39:32.327789300 +0000
|
--- a/vncviewer/vncviewer.cxx
|
||||||
@@ -265,6 +265,11 @@ static void usage(const char *programNam
|
+++ b/vncviewer/vncviewer.cxx
|
||||||
|
@@ -338,6 +338,11 @@ static void usage(const char *programName)
|
||||||
" %s [parameters] -listen [port] [parameters]\n",
|
" %s [parameters] -listen [port] [parameters]\n",
|
||||||
programName, programName);
|
programName, programName);
|
||||||
fprintf(stderr,"\n"
|
fprintf(stderr,"\n"
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
diff -up tigervnc-1.3.0/unix/vncserver.xstartup tigervnc-1.3.0/unix/vncserver
|
diff --git a/unix/vncserver b/unix/vncserver
|
||||||
--- tigervnc-1.3.0/unix/vncserver.xstartup 2014-02-10 14:52:39.902673875 +0000
|
index c4d0535..64c6744 100755
|
||||||
+++ tigervnc-1.3.0/unix/vncserver 2014-02-10 14:53:30.398847723 +0000
|
--- a/unix/vncserver
|
||||||
@@ -59,27 +59,7 @@ $defaultXStartup
|
+++ b/unix/vncserver
|
||||||
|
@@ -61,27 +61,7 @@ $defaultXStartup
|
||||||
= ("#!/bin/sh\n\n".
|
= ("#!/bin/sh\n\n".
|
||||||
"unset SESSION_MANAGER\n".
|
"unset SESSION_MANAGER\n".
|
||||||
"unset DBUS_SESSION_BUS_ADDRESS\n".
|
"unset DBUS_SESSION_BUS_ADDRESS\n".
|
||||||
@ -28,5 +29,5 @@ diff -up tigervnc-1.3.0/unix/vncserver.xstartup tigervnc-1.3.0/unix/vncserver
|
|||||||
- "twm &\n");
|
- "twm &\n");
|
||||||
+ "exec /etc/X11/xinit/xinitrc\n");
|
+ "exec /etc/X11/xinit/xinitrc\n");
|
||||||
|
|
||||||
chop($host = `uname -n`);
|
$defaultConfig
|
||||||
|
= ("## Supported server options to pass to vncserver upon invocation can be listed\n".
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: tigervnc
|
Name: tigervnc
|
||||||
Version: 1.5.0
|
Version: 1.5.90
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A TigerVNC remote display system
|
Summary: A TigerVNC remote display system
|
||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
@ -22,7 +22,7 @@ BuildRequires: xorg-x11-xtrans-devel, xorg-x11-util-macros, libXtst-devel
|
|||||||
BuildRequires: libdrm-devel, libXt-devel, pixman-devel libXfont-devel
|
BuildRequires: libdrm-devel, libXt-devel, pixman-devel libXfont-devel
|
||||||
BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel
|
BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel
|
||||||
BuildRequires: mesa-libGL-devel, libXinerama-devel, ImageMagick
|
BuildRequires: mesa-libGL-devel, libXinerama-devel, ImageMagick
|
||||||
BuildRequires: freetype-devel, libXdmcp-devel
|
BuildRequires: freetype-devel, libXdmcp-devel, libxshmfence-devel
|
||||||
BuildRequires: desktop-file-utils, java-devel, jpackage-utils
|
BuildRequires: desktop-file-utils, java-devel, jpackage-utils
|
||||||
BuildRequires: libjpeg-turbo-devel, gnutls-devel, pam-devel
|
BuildRequires: libjpeg-turbo-devel, gnutls-devel, pam-devel
|
||||||
BuildRequires: systemd, cmake
|
BuildRequires: systemd, cmake
|
||||||
@ -46,7 +46,6 @@ Provides: tightvnc = 1.5.0-0.15.20090204svn3586
|
|||||||
Obsoletes: tightvnc < 1.5.0-0.15.20090204svn3586
|
Obsoletes: tightvnc < 1.5.0-0.15.20090204svn3586
|
||||||
|
|
||||||
Patch1: tigervnc-cookie.patch
|
Patch1: tigervnc-cookie.patch
|
||||||
Patch2: tigervnc-fix-reversed-logic.patch
|
|
||||||
Patch3: tigervnc-libvnc-os.patch
|
Patch3: tigervnc-libvnc-os.patch
|
||||||
Patch4: tigervnc11-rh692048.patch
|
Patch4: tigervnc11-rh692048.patch
|
||||||
Patch5: tigervnc-inetd-nowait.patch
|
Patch5: tigervnc-inetd-nowait.patch
|
||||||
@ -154,7 +153,6 @@ This package contains icons for TigerVNC viewer
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch1 -p1 -b .cookie
|
%patch1 -p1 -b .cookie
|
||||||
%patch2 -p1 -b .fix-reversed-logic
|
|
||||||
%patch3 -p1 -b .libvnc-os
|
%patch3 -p1 -b .libvnc-os
|
||||||
%patch4 -p1 -b .rh692048
|
%patch4 -p1 -b .rh692048
|
||||||
|
|
||||||
@ -356,6 +354,9 @@ fi
|
|||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 01 2015 Jan Grulich <jgrulich@redhat.com> - 1.5.90-1
|
||||||
|
- Update to 1.5.90 (1.6.0 beta)
|
||||||
|
|
||||||
* Thu Nov 19 2015 Jan Grulich <jgrulich@redhat.com> - 1.5.0-4
|
* Thu Nov 19 2015 Jan Grulich <jgrulich@redhat.com> - 1.5.0-4
|
||||||
- rebuild against final xorg server 1.18 release (bug #1279146)
|
- rebuild against final xorg server 1.18 release (bug #1279146)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user