Merge ~liushuyu-011/ubuntu/+source/scrollz:ubuntu/devel into ubuntu/+source/scrollz:ubuntu/devel

Proposed by Zixing Liu
Status: Merged
Merged at revision: fa0acfc01192c0be16d9147f41f24b8edbdebb9e
Proposed branch: ~liushuyu-011/ubuntu/+source/scrollz:ubuntu/devel
Merge into: ubuntu/+source/scrollz:ubuntu/devel
Diff against target: 161 lines (+139/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/gcc13.patch (+131/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Steve Langasek (community) Approve
Review via email: mp+464236@code.launchpad.net

Description of the change

This MP fixes an FTBFS on armhf after the time_t transition that made compiler stricter.

To post a comment you must log in.
Revision history for this message
Zixing Liu (liushuyu-011) wrote :
Revision history for this message
Steve Langasek (vorlon) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index f50b698..b3c103c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1scrollz (2.2.3-2ubuntu1) noble; urgency=medium
2
3 * debian/patches/gcc13.patch: Fix build with GCC 13 and add missing
4 includes. Closes LP: #2061184.
5
6 -- Zixing Liu <zixing.liu@canonical.com> Fri, 12 Apr 2024 16:18:51 -0600
7
1scrollz (2.2.3-2build2) noble; urgency=medium8scrollz (2.2.3-2build2) noble; urgency=medium
29
3 * No-change rebuild for CVE-2024-309410 * No-change rebuild for CVE-2024-3094
diff --git a/debian/patches/gcc13.patch b/debian/patches/gcc13.patch
4new file mode 10064411new file mode 100644
index 0000000..81cc772
--- /dev/null
+++ b/debian/patches/gcc13.patch
@@ -0,0 +1,131 @@
1Description: Fix build with GCC 13 and add missing includes
2 Also included missing function prototypes
3Author: Zixing Liu <zixing.liu@canonical.com>
4Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066483
5Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/scrollz/+bug/2061184
6Forwarded: no
7Last-Update: 2024-04-12
8---
9This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10Index: scrollz/configure
11===================================================================
12--- scrollz.orig/configure
13+++ scrollz/configure
14@@ -2317,6 +2317,7 @@ else
15 /* System header to define __stub macros and hopefully few prototypes,
16 which can conflict with char snprintf(); below. */
17 #include <assert.h>
18+#include <stdio.h>
19 /* Override any gcc2 internal prototype to avoid an error. */
20 /* We use char because int might match the return type of a gcc2
21 builtin and then its argument prototype would still apply. */
22@@ -2368,6 +2369,7 @@ else
23 /* System header to define __stub macros and hopefully few prototypes,
24 which can conflict with char vsnprintf(); below. */
25 #include <assert.h>
26+#include <stdio.h>
27 /* Override any gcc2 internal prototype to avoid an error. */
28 /* We use char because int might match the return type of a gcc2
29 builtin and then its argument prototype would still apply. */
30@@ -2536,6 +2538,7 @@ else
31 #line 2537 "configure"
32 #include "confdefs.h"
33 #include <ctype.h>
34+#include <stdlib.h>
35 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
37 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
38@@ -5472,6 +5475,7 @@ else
39 #include <string.h>
40 #include <sys/socket.h>
41 #include <netinet/in.h>
42+#include <stdlib.h>
43
44 main()
45 {
46Index: scrollz/include/edit.h
47===================================================================
48--- scrollz.orig/include/edit.h
49+++ scrollz/include/edit.h
50@@ -72,7 +72,7 @@ extern u_char *recv_nick;
51 void command_completion _((u_int, char *));
52 void e_quit _((char *, char *, char *));
53 int check_wait_command _((char *));
54-
55+ int GrabURL _((char *, char *, char *, char *));
56 #define AWAY_ONE 0
57 #define AWAY_ALL 1
58
59Index: scrollz/include/trace.h
60===================================================================
61--- scrollz.orig/include/trace.h
62+++ scrollz/include/trace.h
63@@ -29,4 +29,6 @@ void TraceChannelInfo _((int indent, Cha
64 void TraceNickListInfo _((int indent, NickList *nicks));
65 void TraceWindowInfo _((int indent, Window *window));
66
67+void Trace(long area, char *format, ...);
68+
69 #endif
70Index: scrollz/source/edit.c
71===================================================================
72--- scrollz.orig/source/edit.c
73+++ scrollz/source/edit.c
74@@ -101,6 +101,7 @@ static void send_action _((char *, char
75
76 TimerList *PendingTimers = (TimerList *) 0;
77
78+extern void PopLine(void);
79 /* used with input_move_cursor */
80 #define RIGHT 1
81 #define LEFT 0
82Index: scrollz/source/edit2.c
83===================================================================
84--- scrollz.orig/source/edit2.c
85+++ scrollz/source/edit2.c
86@@ -195,6 +195,8 @@ static char *celeawaystr=(char *) 0;
87 static time_t CeleAwayTime=0;
88 #endif
89 extern char *CelerityNtfy;
90+extern int DecryptMessage _((char *, char *));
91+extern int EncryptMessage _((char *, char *));
92
93 /* Kicks all unopped people from current channel */
94 void LameKick(command,args,subargs)
95Index: scrollz/source/edit3.c
96===================================================================
97--- scrollz.orig/source/edit3.c
98+++ scrollz/source/edit3.c
99@@ -96,6 +96,7 @@ extern NickList * find_in_hash _((Channe
100
101 extern void dcc_chat _((char *));
102 extern void dcc_close _((char *));
103+extern int DecryptString _((char *, char *, char *, int, int));
104
105 extern char *ScrollZver1;
106 extern char *CelerityNtfy;
107Index: scrollz/source/numbers.c
108===================================================================
109--- scrollz.orig/source/numbers.c
110+++ scrollz/source/numbers.c
111@@ -104,6 +104,8 @@ extern void HandleStatsD _((char *, char
112 #ifdef CELE
113 extern void HandleTrace _((int, char *, char *, char *, char *, char *, char *));
114 #endif
115+extern int DecryptMessage _((char *, char *));
116+extern int EncryptMessage _((char *, char *));
117
118 extern void userhost _((char *, char *, char *));
119 /* ***************** */
120Index: scrollz/source/trace.c
121===================================================================
122--- scrollz.orig/source/trace.c
123+++ scrollz/source/trace.c
124@@ -9,6 +9,7 @@
125 #include "ircaux.h"
126 #include "server.h"
127 #include "trace.h"
128+#include "output.h"
129
130 #ifdef SZTRACE
131 extern char *OpenCreateFile(char *, int);
diff --git a/debian/patches/series b/debian/patches/series
index bd78f80..55fde19 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ rijndael-prototypes.patch
6sys-stat-h.patch6sys-stat-h.patch
7CVE-2021-29376.patch7CVE-2021-29376.patch
8CVE-2021-29376-update.patch8CVE-2021-29376-update.patch
9gcc13.patch

Subscribers

People subscribed via source and target branches

to all changes: