[packages/w_scan] debian patch to fix build with gcc 10

atler atler at pld-linux.org
Wed May 26 19:46:38 CEST 2021


commit ee05e968918abb228fc1792dd00c6258e023ddf0
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed May 26 19:45:51 2021 +0200

    debian patch to fix build with gcc 10

 gcc10.patch | 32 ++++++++++++++++++++++++++++++++
 w_scan.spec |  2 ++
 2 files changed, 34 insertions(+)
---
diff --git a/w_scan.spec b/w_scan.spec
index ee2e8cf..6d140f8 100644
--- a/w_scan.spec
+++ b/w_scan.spec
@@ -7,6 +7,7 @@ License:	GPL v2
 Group:		Applications
 Source0:	http://wirbel.htpc-forum.de/w_scan/%{name}-%{version}.tar.bz2
 # Source0-md5:	c7f9adf92d46b8da5391be80be6fbd72
+Patch0:		gcc10.patch
 URL:		http://wirbel.htpc-forum.de/w_scan/index2.html
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake
@@ -31,6 +32,7 @@ różnicami:
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644
index 0000000..eb9c5ea
--- /dev/null
+++ b/gcc10.patch
@@ -0,0 +1,32 @@
+Description: support compilation with -fno-common (default in GCC 10)
+Bug-Debian: https://bugs.debian.org/957919
+
+--- w-scan-20170107.orig/si_types.h
++++ w-scan-20170107/si_types.h
+@@ -62,7 +62,7 @@ typedef struct section_buf {
+   time_t running_time;
+   struct section_buf * next_seg;        // this is used to handle segmented tables (like NIT-other)
+   pList  garbage;
+-} section_t, * p_section_t;
++};
+ 
+ /*******************************************************************************
+ /* service type.
+@@ -114,7 +114,7 @@ struct service {
+   uint32_t logical_channel_number;
+   uint8_t  running;
+   void   * priv;
+-} service_t, * p_service_t;
++};
+ 
+ /*******************************************************************************
+ /* transponder type.
+@@ -201,7 +201,7 @@ struct transponder {
+   /*----------------------------*/
+   char * network_name;
+   network_change_t network_change;
+-} __attribute__((packed))  transponder_t, * p_transponder_t;
++} __attribute__((packed));
+ 
+ /*******************************************************************************
+ /* satellite channel routing type.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/w_scan.git/commitdiff/ee05e968918abb228fc1792dd00c6258e023ddf0



More information about the pld-cvs-commit mailing list