#1111977 libmediascan: FTBFS with Perl 5.42: Unparseable XSUB parameter

Package:
src:libmediascan
Source:
src:libmediascan
Submitter:
Niko Tyni
Date:
2025-09-02 17:21:02 UTC
Severity:
normal
Tags:
#1111977#5
Date:
2025-08-24 16:37:46 UTC
From:
To:
Source: libmediascan
Version: 0~20220401.git.34fc2d-7
Severity: important
Tags: ftbfs forky sid patch upstream
User: debian-perl@lists.debian.org
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/libmediascan_0~20220401.git.34fc2d-7/libmediascan_0~20220401.git.34fc2d-7+b1_amd64-2025-08-22T05:57:37Z.build

   dh_auto_build --sourcedir=/build/libmediascan-sQcix3/libmediascan-0~20220401.git.34fc2d/bindings/perl
   	cd bindings/perl && make -j2
   make[2]: Entering directory '/build/libmediascan-sQcix3/libmediascan-0~20220401.git.34fc2d/bindings/perl'
   Running Mkbootstrap for Scan ()
   chmod 644 "Scan.bs"
   "/usr/bin/perl" "/usr/share/perl/5.42/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.42/ExtUtils/typemap' -typemap '/build/libmediascan-sQcix3/libmediascan-0~20220401.git.34fc2d/bindings/perl/typemap'  Scan.xs > Scan.xsc
   cp lib/Media/Scan.pm blib/lib/Media/Scan.pm
   cp lib/Media/Scan/Result.pm blib/lib/Media/Scan/Result.pm
   cp lib/Media/Scan/Error.pm blib/lib/Media/Scan/Error.pm
   cp lib/Media/Scan/Audio.pm blib/lib/Media/Scan/Audio.pm
   cp lib/Media/Scan/Image.pm blib/lib/Media/Scan/Image.pm
   cp lib/Media/Scan/Video.pm blib/lib/Media/Scan/Video.pm
   cp lib/Media/Scan/Progress.pm blib/lib/Media/Scan/Progress.pm
   "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Scan.bs blib/arch/auto/Media/Scan/Scan.bs 644
   Unparseable XSUB parameter: 'MediaScan *' in Scan.xs, line 273
   make[2]: *** [Makefile:380: Scan.c] Error 1

This is because of changes in ExtUtils-ParseXS, which
now properly detects invalid XS syntax in this module. See
https://rt.cpan.org/Public/Bug/Display.html?id=162293 for a similar issue
in Crypt-SMIME. The attached patch adopts the technique suggested there
by Dave Mitchell: give the ignored first parameter a name but no type.
This works for on both Perl 5.40 and 5.42.

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,

#1111977#10
Date:
2025-08-24 17:30:36 UTC
From:
To:
Hi,


When I added this package some years ago, it was as a dependency for
something I still haven't added to Debian and I think it dropped the
dependency. popcon is extremely low, maybe this package isn't worth the
effort.

Paul

#1111977#15
Date:
2025-09-02 17:18:03 UTC
From:
To:
If you don't need it anymore, I'm all for removing the package as
it's quite an unusual beast :)


Cheers,
gregor