hi all,

I fix this bug. Please review the debdiff.
I plan to NMU this package. I will wait for 10 days for any comments before upload. And will upload to DELAY/10 queue.

Yours,
Paul
diff -Nru sc-7.16/debian/changelog sc-7.16/debian/changelog
--- sc-7.16/debian/changelog    2024-04-07 09:47:51.000000000 +0800
+++ sc-7.16/debian/changelog    2024-08-11 13:45:53.000000000 +0800
@@ -1,3 +1,11 @@
+sc (7.16-4.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS for GCC-14 (Closes: #1075489)
+    - Add debian/patches/fix-ftbfs-gcc14.patch
+
+ -- Ying-Chun Liu (PaulLiu) <paul...@debian.org>  Sun, 11 Aug 2024 13:45:53 
+0800
+
 sc (7.16-4.2) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru sc-7.16/debian/patches/fix-ftbfs-gcc14.patch 
sc-7.16/debian/patches/fix-ftbfs-gcc14.patch
--- sc-7.16/debian/patches/fix-ftbfs-gcc14.patch        1970-01-01 
08:00:00.000000000 +0800
+++ sc-7.16/debian/patches/fix-ftbfs-gcc14.patch        2024-08-11 
13:45:53.000000000 +0800
@@ -0,0 +1,69 @@
+Description: Port to GCC-14
+Bug-Debian: http://bugs.debian.org/1075489
+Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
+Index: sc-7.16/cmds.c
+===================================================================
+--- sc-7.16.orig/cmds.c
++++ sc-7.16/cmds.c
+@@ -1468,7 +1468,7 @@ doformat(int c1, int c2, int w, int p, i
+ }
+ 
+ void
+-formatcol(arg)
++formatcol(int arg)
+ {
+     int c, i;
+     int mf = modflg;
+@@ -1603,7 +1603,7 @@ formatcol(arg)
+ }
+ 
+ void
+-ljustify(sr, sc, er, ec)
++ljustify(int sr, int sc, int er, int ec)
+ {
+     struct ent *p;
+     int i, j;
+@@ -1632,7 +1632,7 @@ ljustify(sr, sc, er, ec)
+ }
+ 
+ void
+-rjustify(sr, sc, er, ec)
++rjustify(int sr, int sc, int er, int ec)
+ {
+     struct ent *p;
+     int i, j;
+@@ -1661,7 +1661,7 @@ rjustify(sr, sc, er, ec)
+ }
+ 
+ void
+-center(sr, sc, er, ec)
++center(int sr, int sc, int er, int ec)
+ {
+     struct ent *p;
+     int i, j;
+Index: sc-7.16/vi.c
+===================================================================
+--- sc-7.16.orig/vi.c
++++ sc-7.16/vi.c
+@@ -1119,7 +1119,7 @@ append_line()
+ }
+ 
+ static void
+-change_case(arg)
++change_case(int arg)
+ {
+     if (linelim < 0) {
+       linelim = 0;
+Index: sc-7.16/gram.y
+===================================================================
+--- sc-7.16.orig/gram.y
++++ sc-7.16/gram.y
+@@ -968,7 +968,7 @@ command:   S_LET var_or_range '=' e
+                                               macrofd); }
+       |       S_EVAL e STRING '|' NUMBER
+                                       { doeval($2, $3, currow, curcol,
+-                                              $3); }
++                                              macrofd); }
+       |       S_SEVAL e               { doseval($2, currow, curcol, macrofd); 
}
+       |       S_QUERY STRING STRING   { doquery($2, $3, macrofd); }
+       |       S_QUERY STRING STRING '|' NUMBER
diff -Nru sc-7.16/debian/patches/series sc-7.16/debian/patches/series
--- sc-7.16/debian/patches/series       2024-04-07 09:47:51.000000000 +0800
+++ sc-7.16/debian/patches/series       2024-08-11 13:45:53.000000000 +0800
@@ -5,3 +5,4 @@
 nonotimeout.patch
 hardening
 fix-ftbfs-implicit-function-declaration.patch
+fix-ftbfs-gcc14.patch

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to