Control: tags 957138 + patch
Control: tags 957138 + pending
--

Dear maintainer,

I've prepared an NMU for directvnc (versioned as 0.7.7-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should cancel it.

--
Regards
Sudip

diff -Nru directvnc-0.7.7/debian/changelog directvnc-0.7.7/debian/changelog
--- directvnc-0.7.7/debian/changelog    2011-07-31 17:20:41.000000000 +0100
+++ directvnc-0.7.7/debian/changelog    2020-10-27 19:25:19.000000000 +0000
@@ -1,3 +1,10 @@
+directvnc (0.7.7-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix ftbfs with GCC-10. (Closes: #957138)
+
+ -- Sudip Mukherjee <sudipm.mukher...@gmail.com>  Tue, 27 Oct 2020 19:25:19 
+0000
+
 directvnc (0.7.7-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru directvnc-0.7.7/debian/patches/fix_gcc-10.patch 
directvnc-0.7.7/debian/patches/fix_gcc-10.patch
--- directvnc-0.7.7/debian/patches/fix_gcc-10.patch     1970-01-01 
01:00:00.000000000 +0100
+++ directvnc-0.7.7/debian/patches/fix_gcc-10.patch     2020-10-27 
19:19:25.000000000 +0000
@@ -0,0 +1,44 @@
+Description: Fix ftbfs with GCC-10
+
+Author: Sudip Mukherjee <sudipm.mukher...@gmail.com>
+Bug-Debian: https://bugs.debian.org/957138
+Forwarded: no
+
+---
+
+--- directvnc-0.7.7.orig/src/directvnc.h
++++ directvnc-0.7.7/src/directvnc.h
+@@ -42,7 +42,7 @@
+    Tight encoding assumes BUFFER_SIZE is at least 16384 bytes. */
+ 
+ #define BUFFER_SIZE (640*480) 
+-char buffer[BUFFER_SIZE];
++extern char buffer[BUFFER_SIZE];
+ 
+ #define MAX_ENCODINGS 10
+ 
+@@ -64,9 +64,9 @@ struct _mousestate
+    unsigned int buttonmask;
+ };
+ 
+-struct _mousestate mousestate;
++extern struct _mousestate mousestate;
+ 
+-int sock;
++extern int sock;
+ 
+ /* rfb.c */
+ int rfb_connect_to_server (char *server, int display);
+--- directvnc-0.7.7.orig/src/main.c
++++ directvnc-0.7.7/src/main.c
+@@ -24,6 +24,10 @@
+ #include <math.h>
+ #include <signal.h>
+ 
++struct _mousestate mousestate;
++int sock;
++char buffer[BUFFER_SIZE];
++
+ /* little convenience function */
+ static inline double get_time(void);
+ static inline void sig_handler(int foo) { exit(1); }
diff -Nru directvnc-0.7.7/debian/patches/series 
directvnc-0.7.7/debian/patches/series
--- directvnc-0.7.7/debian/patches/series       1970-01-01 01:00:00.000000000 
+0100
+++ directvnc-0.7.7/debian/patches/series       2020-10-27 18:52:57.000000000 
+0000
@@ -0,0 +1 @@
+fix_gcc-10.patch

Reply via email to