[packages/libvncserver] - rel 5; build fixes added

arekm arekm at pld-linux.org
Sun Nov 3 09:42:07 CET 2013


commit aa808c9db13b1b0b2def00ba679f2980f56cd5d5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Nov 3 09:42:04 2013 +0100

    - rel 5; build fixes added

 format_string.patch | 27 +++++++++++++++++++++++++++
 libvncserver.spec   |  5 ++++-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/libvncserver.spec b/libvncserver.spec
index d93feed..5fc114c 100644
--- a/libvncserver.spec
+++ b/libvncserver.spec
@@ -3,13 +3,14 @@ Summary:	LibVNCServer - a for easy implementation of VNC/RDP server
 Summary(pl.UTF-8):	LibVNCServer - biblioteka do łatwego implementowania serwera VNC/RDP
 Name:		libvncserver
 Version:	0.9.9
-Release:	4
+Release:	5
 Epoch:		0
 License:	GPL v2
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libvncserver/%{srcname}-%{version}.tar.gz
 # Source0-md5:	70422169b122765693d2a294d13e3714
 Patch0:		%{name}-linux.patch
+Patch1:		format_string.patch
 URL:		http://libvncserver.sourceforge.net/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -106,6 +107,7 @@ Przykładowe programy wykorzystujące LibVNCServer.
 %prep
 %setup -q -n %{srcname}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 install -d x11vnc/misc
 touch x11vnc/Makefile.in x11vnc/misc/Makefile.in
@@ -122,6 +124,7 @@ sed -i -e '/AC_CONFIG_FILES.*x11vnc/d' configure.ac
 %{__autoheader}
 %{__automake}
 %configure \
+	--disable-silent-rules \
 	--without-x11vnc
 %{__make}
 
diff --git a/format_string.patch b/format_string.patch
new file mode 100644
index 0000000..950b0c7
--- /dev/null
+++ b/format_string.patch
@@ -0,0 +1,27 @@
+Description: Use format string argument with fprintf.
+Author: Luca Falavigna <dktrkranz at debian.org>
+
+Index: libvncserver/test/encodingstest.c
+===================================================================
+--- libvncserver.orig/test/encodingstest.c	2012-05-05 13:52:52.457034521 +0200
++++ libvncserver/test/encodingstest.c	2012-05-05 23:11:51.650769263 +0200
+@@ -256,7 +256,7 @@
+ 
+ 	time(&log_clock);
+ 	strftime(buf, 255, "%d/%m/%Y %X (client) ", localtime(&log_clock));
+-	fprintf(stderr,buf);
++	fprintf(stderr,"%s",buf);
+ 
+ 	vfprintf(stderr, format, args);
+ 	fflush(stderr);
+--- LibVNCServer-0.9.9/client_examples/gtkvncviewer.c~	2012-05-04 16:19:00.000000000 +0200
++++ LibVNCServer-0.9.9/client_examples/gtkvncviewer.c	2013-11-03 09:40:26.573431061 +0100
+@@ -563,7 +563,7 @@
+ 
+ 	time (&log_clock);
+ 	strftime (buf, 255, "%d/%m/%Y %X ", localtime (&log_clock));
+-	fprintf (stdout, buf);
++	fprintf (stdout, "%s", buf);
+ 
+ 	vfprintf (stdout, format, args);
+ 	fflush (stdout);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libvncserver.git/commitdiff/aa808c9db13b1b0b2def00ba679f2980f56cd5d5



More information about the pld-cvs-commit mailing list