Hi,
configure:673:1: error: return type defaults to 'int' [-Wimplicit-int]
673 | main(){return(0);}
| ^~~~
configure: failed program was:
#line 671 "configure"
#include "confdefs.h"
I proposed one patch to fix the issue, please review it.
And I did some minor changes with QA upload also, but this will
need sponsorship for me. TIA
(I have uploaded it to mentor, but no send RFS to save reportbug ID:))
```
The source builds the following binary packages:
xshisen - Shisen-sho puzzle game for X11
To access further information about this package, please visit the following URL:
https://mentors.debian.net/package/xshisen/
Alternatively, you can download the package with 'dget' using this command:
dget -x https://mentors.debian.net/debian/pool/main/x/xshisen/xshisen_1.51-10.dsc
Changes since the last upload:
xshisen (1:1.51-10) unstable; urgency=medium
.
* QA upload.
* Add 2001-fix-ftbfs-gcc-14.patch to fix ftbfs on gcc-14.
(Closes: #1075684)
* DEB_BUILD_MAINT_OPTIONS = hardening=+all to fix lintian warning.
```
--
Regards,
--
Bo YU
diff -Nru xshisen-1.51/debian/changelog xshisen-1.51/debian/changelog
--- xshisen-1.51/debian/changelog 2024-05-10 16:54:42.000000000 +0800
+++ xshisen-1.51/debian/changelog 2024-11-04 21:11:56.000000000 +0800
@@ -1,3 +1,12 @@
+xshisen (1:1.51-10) unstable; urgency=medium
+
+ * QA upload.
+ * Add 2001-fix-ftbfs-gcc-14.patch to fix ftbfs on gcc-14.
+ (Closes: #1075684)
+ * DEB_BUILD_MAINT_OPTIONS = hardening=+all to fix lintian warning.
+
+ -- Bo YU <tsu.yubo@gmail.com> Mon, 04 Nov 2024 21:11:56 +0800
+
xshisen (1:1.51-9) unstable; urgency=medium
* QA upload.
diff -Nru xshisen-1.51/debian/patches/2001-fix-ftbfs-gcc-14.patch xshisen-1.51/debian/patches/2001-fix-ftbfs-gcc-14.patch
--- xshisen-1.51/debian/patches/2001-fix-ftbfs-gcc-14.patch 1970-01-01 07:30:00.000000000 +0730
+++ xshisen-1.51/debian/patches/2001-fix-ftbfs-gcc-14.patch 2024-11-04 20:53:51.000000000 +0800
@@ -0,0 +1,19 @@
+Description: fix ftbfs on gcc-14
+Author: Bo YU <tsu.yubo@gmail.com>
+Bug: https://bugs.debian.org/1075684
+Last-Update: 2024-11-04
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: b/configure
+===================================================================
+--- a/configure
++++ b/configure
+@@ -670,7 +670,7 @@
+ #line 671 "configure"
+ #include "confdefs.h"
+
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ ac_cv_prog_cc_works=yes
diff -Nru xshisen-1.51/debian/patches/series xshisen-1.51/debian/patches/series
--- xshisen-1.51/debian/patches/series 2024-05-10 16:53:58.000000000 +0800
+++ xshisen-1.51/debian/patches/series 2024-11-04 20:32:45.000000000 +0800
@@ -11,3 +11,4 @@
missing-prototypes.patch
crash.patch
2000-manpage-objective.patch
+2001-fix-ftbfs-gcc-14.patch
diff -Nru xshisen-1.51/debian/rules xshisen-1.51/debian/rules
--- xshisen-1.51/debian/rules 2024-05-10 16:53:58.000000000 +0800
+++ xshisen-1.51/debian/rules 2024-11-04 21:11:56.000000000 +0800
@@ -2,6 +2,8 @@
# rules --- Debian packaging rules for xshisen
-include /usr/share/dpkg/buildtools.mk
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
export CC CXX
%:
Attachment:
signature.asc
Description: PGP signature