Control: tags 1074973 + pending
Dear maintainer, I've prepared an NMU for fungw (versioned as 1.2.1-3.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards. -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `-
diff -Nru fungw-1.2.1/debian/changelog fungw-1.2.1/debian/changelog --- fungw-1.2.1/debian/changelog 2023-06-12 17:09:29.000000000 +0200 +++ fungw-1.2.1/debian/changelog 2024-08-10 03:31:50.000000000 +0200 @@ -1,3 +1,11 @@ +fungw (1.2.1-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix "ftbfs with GCC-14": add patch frm ntyni to add explicit void pointer + cast for Perl user data. (Closes: #1074973) + + -- gregor herrmann <gre...@debian.org> Sat, 10 Aug 2024 03:31:50 +0200 + fungw (1.2.1-3) unstable; urgency=medium * change control file VCS references to Debian salsa packaging repo diff -Nru fungw-1.2.1/debian/patches/add-explicit-void-pointer-cast-for-perl-.patch fungw-1.2.1/debian/patches/add-explicit-void-pointer-cast-for-perl-.patch --- fungw-1.2.1/debian/patches/add-explicit-void-pointer-cast-for-perl-.patch 1970-01-01 01:00:00.000000000 +0100 +++ fungw-1.2.1/debian/patches/add-explicit-void-pointer-cast-for-perl-.patch 2024-08-10 03:30:02.000000000 +0200 @@ -0,0 +1,35 @@ +From: Niko Tyni <nt...@debian.org> +Date: Fri, 2 Aug 2024 08:44:28 +0100 +X-Dgit-Generated: 1.2.1-3 dd68747f561a8cb027d3a3d53cec0d1d48712da5 +Subject: Add explicit void pointer cast for Perl user data + +This fixes a compilation error on GCC 14. + +Quoting https://gcc.gnu.org/gcc-14/porting_to.html + + GCC no longer allows implicitly casting all pointer types to all + other pointer types. This behavior is now restricted to the void * + type and its qualified variations. + + To fix compilation errors resulting from that, you can add the + appropriate casts, and maybe consider using void * in more places + (particularly for old programs that predate the introduction of void * + into the C language). + +Bug-Debian: https://bugs.debian.org/1074973 + +--- + +diff --git a/libfungwbind/perl/fungw_perl.c b/libfungwbind/perl/fungw_perl.c +index 2b3a91e..a8580bc 100644 +--- a/libfungwbind/perl/fungw_perl.c ++++ b/libfungwbind/perl/fungw_perl.c +@@ -283,7 +283,7 @@ static int fgws_perl_init(fgw_obj_t *obj, const char *filename, const char *opts + PERL_SET_CONTEXT(ctx->interp); + perl_construct(ctx->interp); + obj->script_data = ctx; +- ctx->interp->perl_user_data = ctx; ++ ctx->interp->perl_user_data = (void *)ctx; + ctx->obj = obj; + ctx->freg_delay = 1; + diff -Nru fungw-1.2.1/debian/patches/series fungw-1.2.1/debian/patches/series --- fungw-1.2.1/debian/patches/series 2023-06-12 17:09:29.000000000 +0200 +++ fungw-1.2.1/debian/patches/series 2024-08-10 03:30:02.000000000 +0200 @@ -0,0 +1 @@ +add-explicit-void-pointer-cast-for-perl-.patch
signature.asc
Description: Digital Signature