Bug#1051609: libapp-stacktrace-perl: FTBFS with Perl 5.38: test failures

Niko Tyni ntyni at debian.org
Sun Sep 10 15:01:34 BST 2023


Source: libapp-stacktrace-perl
Version: 0.09-4
Severity: important
Tags: ftbfs patch
User: debian-perl at lists.debian.org
Usertags: perl-5.38-transition

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

  http://perl.debian.net/rebuild-logs/perl-5.38/libapp-stacktrace-perl_0.09-4/libapp-stacktrace-perl_0.09-4+b2_amd64-2023-07-05T10:35:24Z.build

   #   Failed test at t/unthreaded.t line 55.
   #                   '[Thread debugging using libthread_db enabled]
   # Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
   # 0x00007fa9c059a0d4 in select () from /lib/x86_64-linux-gnu/libc.so.6
   # /tmp/GvLM6dPQSV.gdb:1761: Error in sourced command file:
   # No symbol "Perl_get_context" in current context.
   # [Inferior 1 (process 2683997) detached]
   # '
   #     doesn't match '(?^mx:
   #                 (?:
   #                     ^t/unthreaded\.t:\d+\n
   #                 ){10}
   #             )'
   
   #   Failed test 'exit(0)'
   #   at t/unthreaded.t line 66.
   #          got: '1'
   #     expected: '0'
   # Looks like you failed 2 tests of 5.

This seems to be because Perl_get_context is now hidden because it
is not part of the official API.

A fix/workaround is to use PL_current_context instead. Patch attached.
I'm just copycatting here really but this passes the tests on both 5.36
and 5.38. We're only using threaded Perl in Debian so I haven't tested
with an unthreaded one.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Perl-5.38-compatibility.patch
Type: text/x-diff
Size: 2259 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20230910/b09331c9/attachment-0001.patch>


More information about the pkg-perl-maintainers mailing list