diffstat for linuxtv-dvb-apps-1.1.1+rev1500 linuxtv-dvb-apps-1.1.1+rev1500

 changelog                            |   10 ++++++++++
 patches/atsc_epg-unsigned-char.patch |   15 +++++++++++++++
 patches/gcc-15.patch                 |   25 +++++++++++++++++++++++++
 patches/series                       |    2 ++
 4 files changed, 52 insertions(+)

diff -Nru linuxtv-dvb-apps-1.1.1+rev1500/debian/changelog linuxtv-dvb-apps-1.1.1+rev1500/debian/changelog
--- linuxtv-dvb-apps-1.1.1+rev1500/debian/changelog	2025-02-04 17:37:29.000000000 +0200
+++ linuxtv-dvb-apps-1.1.1+rev1500/debian/changelog	2025-10-09 17:05:28.000000000 +0300
@@ -1,3 +1,13 @@
+linuxtv-dvb-apps (1.1.1+rev1500-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Build with -std=gnu17 to workaround FTBFS with GCC 15.
+    (Closes: #1097301)
+  * Fix atsc_epg on architectures with unsigned char,
+    thanks to John Scott. (Closes: #1102029)
+
+ -- Adrian Bunk <bunk@debian.org>  Thu, 09 Oct 2025 17:05:28 +0300
+
 linuxtv-dvb-apps (1.1.1+rev1500-2) unstable; urgency=low
 
   * Team upload.
diff -Nru linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/atsc_epg-unsigned-char.patch linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/atsc_epg-unsigned-char.patch
--- linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/atsc_epg-unsigned-char.patch	1970-01-01 02:00:00.000000000 +0200
+++ linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/atsc_epg-unsigned-char.patch	2025-10-09 17:05:28.000000000 +0300
@@ -0,0 +1,15 @@
+Description: Fix atsc_epg on architectures with unsigned char
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1102029
+
+--- linuxtv-dvb-apps-1.1.1+rev1500.orig/util/atsc_epg/atsc_epg.c
++++ linuxtv-dvb-apps-1.1.1+rev1500/util/atsc_epg/atsc_epg.c
+@@ -1108,7 +1108,7 @@ int main(int argc, char *argv[])
+ 	}
+ 
+ 	for( ; ; ) {
+-		char c;
++		int c;
+ 
+ 		if(-1 == (c = getopt(argc, argv, "a:f:p:m:th"))) {
+ 			break;
diff -Nru linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/gcc-15.patch linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/gcc-15.patch
--- linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/gcc-15.patch	1970-01-01 02:00:00.000000000 +0200
+++ linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/gcc-15.patch	2025-10-09 17:05:28.000000000 +0300
@@ -0,0 +1,25 @@
+Description: Build with -std=gnu17 to workaround FTBFS with GCC 15
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1097301
+
+--- linuxtv-dvb-apps-1.1.1+rev1500.orig/Make.rules
++++ linuxtv-dvb-apps-1.1.1+rev1500/Make.rules
+@@ -1,6 +1,6 @@
+ # build rules for linuxtv.org dvb-apps
+ 
+-CFLAGS ?= -g -Wall -W -Wshadow -Wpointer-arith -Wstrict-prototypes
++CFLAGS ?= -g -Wall -W -Wshadow -Wpointer-arith -Wstrict-prototypes -std=gnu17
+ 
+ ifneq ($(lib_name),)
+ 
+--- linuxtv-dvb-apps-1.1.1+rev1500.orig/util/alevt/Makefile
++++ linuxtv-dvb-apps-1.1.1+rev1500/util/alevt/Makefile
+@@ -7,7 +7,7 @@ MAN_DIR=man
+ DESTDIR=
+ PREFIX=/usr
+ HOSTCC=$(CC)
+-CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I$(USR_X11R6)/include
++CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I$(USR_X11R6)/include -std=gnu17
+ EXPOBJS=export.o exp-txt.o exp-html.o exp-gfx.o font.o
+ OBJS=main.o ui.o xio.o fdset.o vbi.o cache.o help.o search.o misc.o hamm.o lang.o $(EXPOBJS)
+ TOBJS=alevt-date.o vbi.o fdset.o misc.o hamm.o lang.o
diff -Nru linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series
--- linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series	2025-02-04 17:37:29.000000000 +0200
+++ linuxtv-dvb-apps-1.1.1+rev1500/debian/patches/series	2025-10-09 17:05:28.000000000 +0300
@@ -18,3 +18,5 @@
 bug779520.patch
 program_table_overflow.patch
 alevt-doublefont.patch
+gcc-15.patch
+atsc_epg-unsigned-char.patch
