Hi all,

I've fixed this FTBFS. And I plan to do QA uploads very soon.
The debdiff is attached.

Yours,
Paul

diff -Nru bwbasic-2.20pl2/debian/changelog bwbasic-2.20pl2/debian/changelog
--- bwbasic-2.20pl2/debian/changelog    2021-02-04 09:55:04.000000000 +0800
+++ bwbasic-2.20pl2/debian/changelog    2024-08-18 22:37:42.000000000 +0800
@@ -1,3 +1,11 @@
+bwbasic (2.20pl2-14) unstable; urgency=low
+
+  * QA upload.
+  * Fix GCC-14 FTBFS. (Closes: #1074860)
+    - Add debian/patches/fix_gcc14_ftbfs.patch
+
+ -- Ying-Chun Liu (PaulLiu) <paul...@debian.org>  Sun, 18 Aug 2024 22:37:42 
+0800
+
 bwbasic (2.20pl2-13) unstable; urgency=low
 
   * QA upload.
diff -Nru bwbasic-2.20pl2/debian/patches/fix_gcc14_ftbfs.patch 
bwbasic-2.20pl2/debian/patches/fix_gcc14_ftbfs.patch
--- bwbasic-2.20pl2/debian/patches/fix_gcc14_ftbfs.patch        1970-01-01 
08:00:00.000000000 +0800
+++ bwbasic-2.20pl2/debian/patches/fix_gcc14_ftbfs.patch        2024-08-18 
22:37:42.000000000 +0800
@@ -0,0 +1,35 @@
+Description: Fix FTBFS for GCC-14
+ GCC-14 is more strict on function types. This patch fixes FTBFS when
+ building by GCC-14.
+Bug-Debian: http://bugs.debian.org/1074860
+Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
+Index: bwbasic-2.20pl2/renum.c
+===================================================================
+--- bwbasic-2.20pl2.orig/renum.c
++++ bwbasic-2.20pl2/renum.c
+@@ -6,6 +6,8 @@
+ /*-------------------------------------------------------------------*/
+ 
+ #include <stdio.h>
++#include <string.h>
++#include <stdlib.h>
+ 
+ int instr();
+ char *midstr1();
+@@ -16,7 +18,7 @@ int f2, l2, n, x;
+ int sidx[1500][2];
+ char rstr[255];
+ 
+-main(argc, argv)
++int main(argc, argv)
+    int argc;
+    char *argv[];
+ {
+@@ -472,6 +474,7 @@ main(argc, argv)
+    fclose(fdout);
+    sprintf(tempstr, "mv editfl %s\0", f9str);
+    system(tempstr);
++   return 0;
+ }
+ 
+ 
diff -Nru bwbasic-2.20pl2/debian/patches/series 
bwbasic-2.20pl2/debian/patches/series
--- bwbasic-2.20pl2/debian/patches/series       2021-02-04 09:55:04.000000000 
+0800
+++ bwbasic-2.20pl2/debian/patches/series       2024-08-18 22:32:01.000000000 
+0800
@@ -1,3 +1,4 @@
 import_diff.patch
 fix_clang.patch
 enable_debug.patch
+fix_gcc14_ftbfs.patch
Description: Fix FTBFS for GCC-14
 GCC-14 is more strict on function types. This patch fixes FTBFS when
 building by GCC-14.
Bug-Debian: http://bugs.debian.org/1074860
Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
Index: bwbasic-2.20pl2/renum.c
===================================================================
--- bwbasic-2.20pl2.orig/renum.c
+++ bwbasic-2.20pl2/renum.c
@@ -6,6 +6,8 @@
 /*-------------------------------------------------------------------*/
 
 #include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 
 int instr();
 char *midstr1();
@@ -16,7 +18,7 @@ int f2, l2, n, x;
 int sidx[1500][2];
 char rstr[255];
 
-main(argc, argv)
+int main(argc, argv)
    int argc;
    char *argv[];
 {
@@ -472,6 +474,7 @@ main(argc, argv)
    fclose(fdout);
    sprintf(tempstr, "mv editfl %s\0", f9str);
    system(tempstr);
+   return 0;
 }
 
 

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to