Your message dated Tue, 02 Sep 2025 20:39:14 +0000
with message-id <[email protected]>
and subject line Bug#1112626: fixed in libfreecontact-perl 0.08-11
has caused the Debian Bug report #1112626,
regarding libfreecontact-perl: FTBFS with Perl 5.42: Could not find a typemap 
for C type 'ali_t&'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1112626: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1112626
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libfreecontact-perl
Version: 0.08-10
Severity: important
Tags: ftbfs forky sid patch upstream
User: [email protected]
Usertags: perl-5.42-transition

This package fails to build with Perl 5.42 (currently in experimental.)

  
https://perl.debian.net/rebuild-logs/perl-5.42/libfreecontact-perl_0.08-10/libfreecontact-perl_0.08-10+b1_amd64-2025-08-20T07:27:17Z.build

       dh_auto_build -a
        make -j2
    make[1]: Entering directory 
'/build/libfreecontact-perl-WzTMqo/libfreecontact-perl-0.08'
    Running Mkbootstrap for FreeContact ()
    chmod 644 "FreeContact.bs"
    "/usr/bin/perl" "/usr/share/perl/5.42/ExtUtils/xsubpp"  -C++ -hiertype 
-noprototypes -typemap '/usr/share/perl/5.42/ExtUtils/typemap' -typemap 
'/build/libfreecontact-perl-WzTMqo/libfreecontact-perl-0.08/perlobject.map' 
-typemap '/build/libfreecontact-perl-WzTMqo/libfreecontact-perl-0.08/typemap' 
-typemap '/build/libfreecontact-perl-WzTMqo/libfreecontact-perl-0.08/typemap'  
FreeContact.xs > FreeContact.xsc
    cp lib/FreeContact.pm blib/lib/FreeContact.pm
    AutoSplitting blib/lib/FreeContact.pm (blib/lib/auto/FreeContact)
    "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- FreeContact.bs 
blib/arch/auto/FreeContact/FreeContact.bs 644
    Could not find a typemap for C type 'ali_t&'.
    The following C types are mapped by the current typemap:
    'AV *', 'Boolean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32', 
'I8', 'IV', 'InOutStream', 'InputStream', 'NV', 'OutputStream', 'PerlIO *', 
'Result', 'STRLEN', 'SV *', 'SVREF', 'SysRet', 'SysRetLong', 'Time_t *', 'U16', 
'U32', 'U8', 'UV', 'ali_t', 'bool', 'bool_t', 'caddr_t', 'char', 'char *', 
'char **', 'const char *', 'cont_res_t', 'double', 'double *', 'float', 
'freq_vec_t', 'freq_vec_t *', 'int', 'long', 'predictor *', 'short', 'size_t', 
'ssize_t', 'time_res_t *', 'time_t', 'unsigned', 'unsigned char', 'unsigned 
char *', 'unsigned int', 'unsigned long', 'unsigned long *', 'unsigned short', 
'void *', 'wchar_t', 'wchar_t *'
     in /usr/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- --typemap=typemap.xsp 
FreeContact.xsp, line 71
    [...]
    make[1]: *** [Makefile:367: FreeContact.c] Error 1
    make[1]: Leaving directory 
'/build/libfreecontact-perl-WzTMqo/libfreecontact-perl-0.08'
    dh_auto_build: error: make -j2 returned exit code 2

There have been significant changes in the ExtUtils::ParseXS module
since Perl 5.40, making it more robust against invalid syntax and
the like. 

It looks like this module has been relying on ExtUtils::ParseXS ignoring
invalid XS syntax with the C++ references. While there's apparently some
support for those in ExtUtils::XSpp, the problematic parts are passed
straight through to plain XS with the %{ .. %} markers.

A fix/workaround is to just remove the ampersands from the XS code.
That's how ExtUtils::ParseXS has been parsing them until now anyway.
The attached patch does this. I verified that the generated C code stays
identical on Perl 5.40 with this, and has no significant differences on
5.42 either.

I'm not fully certain this is correct, but at least it's not any worse
than it has been until now. And the FreeContact module seems to be dead
upstream, at least its home page and FTP site are gone.

If you want to test changes against Perl 5.42 in experimental and run
into uninstallability problems, there is a test repository of rebuilt
Debian sid packages for amd64 available at <https://perl.debian.net/>.

Thanks for your work on Debian,
-- 
Niko Tyni   [email protected]
>From 8b7527df13a6b1f5ad6a719f2e545ef9aa554aae Mon Sep 17 00:00:00 2001
From: Niko Tyni <[email protected]>
Date: Sat, 30 Aug 2025 19:14:24 +0100
Subject: [PATCH] Remove C++ reference markers from XS code

These code blocks are not handled as XS++ but passed to XS as-is
due to the %{ ... %} markers. The code was always invalid XS code,
and ExtUtils::ParseXS has recently become stricter about parsing it.

Just drop the ampersands, at least as a workaround. This is how
the code was parsed earlier anyway.
---
 FreeContact.xsp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/FreeContact.xsp b/FreeContact.xsp
index f002df1..c9e2d85 100644
--- a/FreeContact.xsp
+++ b/FreeContact.xsp
@@ -39,7 +39,7 @@ get_ps_psicov_sd()
 
 %{
 void
-predictor::_get_seq_weights( freq_vec_t* __aliw, double* __wtot, ali_t& __ali, double __clustpc, bool __veczw = true, int __num_threads = 0 )
+predictor::_get_seq_weights( freq_vec_t* __aliw, double* __wtot, ali_t __ali, double __clustpc, bool __veczw = true, int __num_threads = 0 )
   PREINIT:
     freq_vec_t aliw;
     double wtot = 0;
@@ -71,7 +71,7 @@ predictor::_get_seq_weights( freq_vec_t* __aliw, double* __wtot, ali_t& __ali, d
 %{
 cont_res_t
 predictor::_run( __ali, __cp, __density, __gapth, __mincontsep, __pseudocnt, __pscnt_weight, __estimate_ivcov, __shrink_lambda, __cov20, __apply_gapth, __rho, __veczw = true, __num_threads = 0, __icme_timeout = 1800, __timing = NULL )
-    ali_t& __ali
+    ali_t __ali
     double __cp
     double __density
     double __gapth
@@ -114,7 +114,7 @@ predictor::_run( __ali, __cp, __density, __gapth, __mincontsep, __pseudocnt, __p
 
 %{
 cont_res_t
-predictor::_run_with_seq_weights(ali_t& __ali, freq_vec_t &__aliw, double __wtot, double __density, double __gapth, U16 __mincontsep, double __pseudocnt, double __pscnt_weight, bool __estimate_ivcov, double __shrink_lambda, bool __cov20, bool __apply_gapth, double __rho, int __num_threads = 0, time_t __icme_timeout = 1800, time_res_t *__timing = NULL)
+predictor::_run_with_seq_weights(ali_t __ali, freq_vec_t __aliw, double __wtot, double __density, double __gapth, U16 __mincontsep, double __pseudocnt, double __pscnt_weight, bool __estimate_ivcov, double __shrink_lambda, bool __cov20, bool __apply_gapth, double __rho, int __num_threads = 0, time_t __icme_timeout = 1800, time_res_t *__timing = NULL)
   PREINIT:
     time_res_t timing;
   CODE:
-- 
2.49.0


--- End Message ---
--- Begin Message ---
Source: libfreecontact-perl
Source-Version: 0.08-11
Done: gregor herrmann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libfreecontact-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <[email protected]> (supplier of updated libfreecontact-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 02 Sep 2025 20:12:13 +0200
Source: libfreecontact-perl
Architecture: source
Version: 0.08-11
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<[email protected]>
Changed-By: gregor herrmann <[email protected]>
Closes: 1102805 1112626
Changes:
 libfreecontact-perl (0.08-11) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Andreas Tille ]
   * debian/salsa-ci.yml: Build is prevented on i386
 .
   [ gregor herrmann ]
   * Update Build-Depends for cross builds. (Closes: #1102805)
   * Add patch to remove C++ reference markers from XS code for Perl 5.42 /
     ExtUtils::ParseXS compatibility.
     Thanks to Niko Tyni for the patch. (Closes: #1112626)
   * Declare compliance with Debian Policy 4.7.2.
   * Remove B-D on debhelper (covered by debhelper-compat).
   * debian/rules: drop override_dh_auto_clean.
     Makefile.old is removed by ExtUtils::MakeMaker by now.
   * Don't install boilerplate README.
Checksums-Sha1:
 0cd2ac9f038b4ad888a97ea249c4d26d88a13d8a 2221 libfreecontact-perl_0.08-11.dsc
 3b0a97162587c7e46cba68ae309e43c94662ad8f 5132 
libfreecontact-perl_0.08-11.debian.tar.xz
 c25f5a9dc9c2bdee2673c33dc8e775bad6324365 6418 
libfreecontact-perl_0.08-11_amd64.buildinfo
Checksums-Sha256:
 2e26616623b44119065ded78bee077cd9d0e36cd9f18441a303f5b057bc05dea 2221 
libfreecontact-perl_0.08-11.dsc
 96474d3851832c4b85f52d8d967069a99abb760d2532810e85e4c3e043cd10d8 5132 
libfreecontact-perl_0.08-11.debian.tar.xz
 b5830511094a14bb7fb2e145886825b5124710af4040e00d3949f525c66ee392 6418 
libfreecontact-perl_0.08-11_amd64.buildinfo
Files:
 16c6788fde40cd8ec10e142c8f93d802 2221 perl optional 
libfreecontact-perl_0.08-11.dsc
 e03172a11b705b97bbe7846bc23def7e 5132 perl optional 
libfreecontact-perl_0.08-11.debian.tar.xz
 07aaaa7890e01122162728b757b1a9d4 6418 perl optional 
libfreecontact-perl_0.08-11_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmi3TNMRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtGrjA//Qr3bIcpnWy8A4lFGB3ZFN8xGjYMPzX+U
nMDqNBLvsCDRX9fyJZ19RG9XfFiJm9OMvHt5Nu9sAC7dHu8ER5Lq8McL7hLWsfFw
vxc5GlLflNkaOVnrkgJB+B9TsTo+55zbFZOIc754vFSCThw+2bsU4BiKruXyIV7e
paeC4ovTuDidpf1QIPjD1IsAHeR4aZY9S6kOolSTYES+F6lm5q/DSXmIz72haJ/w
6rr7gE3/mPYuX+CbHvN7j/kN8J6dhJvqj9tj2zJEC5f728gb9b8gu/FWxnTjZ8r3
L2+1agkgF2p6jIdwRxIGQpIp3oVas+UR8RgBxOcx+sDylrH53L+NegaVqAKiKKby
4CiIGRPP9RsQKj1wXlusAtwUc3DRw/bxvDP2HZ/bJIYXjoZExVFCssA+k1A1/0oY
q1Uqqll3vVlNYQi9D+TPAi6THoRqA4ZyY+UpZBG7RxM39Ew5ZeUTGscs179f4WaK
OF2LVCJ11vsWLDg1TS0DdN1RxB8d8NyGImUu+YQbhZ9LIU5h/S/44UNE2zBB/D07
TXYdVaJysQpbMM3HrjgHYzAAMzBXSiAO1tBrgRGK//QGu+ekK+2Vc1PoDn0jRAtX
/BEzuhiaNy+NpXPhpFyFoiTsdZWCeKJceJ2XDWnoo/cUKYjp1+muEO/vP7UkJ0jf
1yj08djaK4M=
=2CrI
-----END PGP SIGNATURE-----

Attachment: pgpNse6yvdxII.pgp
Description: PGP signature


--- End Message ---

Reply via email to