With the help of a hurd porterbox I have fixed bug #721420 enabling libdevel-bt-perl to build on hurd.
Unfortunately the build still fails on hurd, due the the output from the backtrace not matching what is expected by the test, this due to it receiving the stack trace for the signal-handling thread [0]. I have included a copy of my build log from the porterbox. [0] https://lists.debian.org/debian-hurd/2014/03/msg00061.html -- Daniel Lintott GPG Key: 4096R/5D73EC6E
dpkg-buildpackage -rfakeroot -D -us -uc dpkg-buildpackage: source package libdevel-bt-perl dpkg-buildpackage: source version 0.06-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by gregor herrmann <[email protected]> dpkg-source --before-build libdevel-bt-perl-0.06 dpkg-buildpackage: host architecture hurd-i386 fakeroot debian/rules clean dh clean dh_testdir dh_auto_clean dh_clean dpkg-source -b libdevel-bt-perl-0.06 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building libdevel-bt-perl using existing ./libdevel-bt-perl_0.06.orig.tar.gz dpkg-source: info: building libdevel-bt-perl in libdevel-bt-perl_0.06-1.debian.tar.xz dpkg-source: info: building libdevel-bt-perl in libdevel-bt-perl_0.06-1.dsc debian/rules build dh build dh_testdir dh_auto_configure Checking if your kit is complete... Looks good Writing Makefile for Devel::bt Writing MYMETA.yml and MYMETA.json dh_auto_build make[1]: Entering directory `/home/dlintott-guest/libdevel-bt-perl-0.06' cp lib/Devel/bt.pm blib/lib/Devel/bt.pm /usr/bin/perl /usr/share/perl/5.18/ExtUtils/xsubpp -typemap /usr/share/perl/5.18/ExtUtils/typemap bt.xs > bt.xsc && mv bt.xsc bt.c cc -c -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-I/usr/lib/perl/5.18/CORE" bt.c bt.xs: In function 'stack_trace': bt.xs:67:26: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(0); dup(in_fd[0]); ^ bt.xs:68:26: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(1); dup(out_fd[1]); ^ bt.xs:69:26: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] close(2); dup(out_fd[1]); ^ bt.xs:72:18: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, buf, strlen(buf)); ^ bt.xs:94:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(in_fd[1], "thread apply all backtrace\n", 27); ^ bt.xs:95:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(in_fd[1], "quit\n", 5); ^ bt.xs:141:30: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, buffer, strlen(buffer)); ^ Running Mkbootstrap for Devel::bt () chmod 644 bt.bs rm -f blib/arch/auto/Devel/bt/bt.so cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-z,relro -shared -L/usr/local/lib -fstack-protector bt.o -o blib/arch/auto/Devel/bt/bt.so \ \ chmod 755 blib/arch/auto/Devel/bt/bt.so cp bt.bs blib/arch/auto/Devel/bt/bt.bs chmod 644 blib/arch/auto/Devel/bt/bt.bs Manifying blib/man3/Devel::bt.3pm make[1]: Leaving directory `/home/dlintott-guest/libdevel-bt-perl-0.06' dh_auto_test make[1]: Entering directory `/home/dlintott-guest/libdevel-bt-perl-0.06' PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Failed test 'perl backtrace for SIGABRT' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Failed test 'perl backtrace for SIGFPE' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Failed test 'perl backtrace for SIGILL' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Failed test 'perl backtrace for SIGQUIT' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Failed test 'perl backtrace for SIGSEGV' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Failed test 'perl backtrace for SIGBUS' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Failed test 'perl backtrace for SIGTRAP' # at t/basic.t line 26. # '#0 0x01108a4c in mach_msg_trap () at /build/eglibc-LR0xsz/eglibc-2.18/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2 # #1 0x0110922e in __mach_msg (msg=msg@entry=0x17fdf20, option=option@entry=3, send_size=32, rcv_size=rcv_size@entry=4096, rcv_name=rcv_name@entry=115, timeout=timeout@entry=0, notify=notify@entry=0) at msg.c:110 # #2 0x011098ef in __mach_msg_server_timeout (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=max_size@entry=4096, rcv_name=rcv_name@entry=115, option=option@entry=0, timeout=timeout@entry=0) at msgserver.c:150 # #3 0x011099db in __mach_msg_server (demux=demux@entry=0x1119ce0 <msgport_server>, max_size=4096, rcv_name=115) at msgserver.c:195 # #4 0x01119dcd in _hurd_msgport_receive () at msgportdemux.c:67 # #5 0x010aba86 in entry_point (self=0x81c28f8, start_routine=0x1119d70 <_hurd_msgport_receive>, arg=0x0) at ./pthread/pt-create.c:63 # #6 0x00000000 in ?? () # #0 0x011257b7 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:132 # #1 0x010b7490 in ?? () # ' # doesn't match '(?^:\bperl_run\b)' # Looks like you failed 7 tests of 7. t/basic.t ............... Dubious, test returned 7 (wstat 1792, 0x700) Failed 7/7 subtests t/release-eol.t ......... skipped: these tests are for release candidate testing t/release-no-tabs.t ..... skipped: these tests are for release candidate testing t/release-pod-syntax.t .. skipped: these tests are for release candidate testing Test Summary Report ------------------- t/basic.t (Wstat: 1792 Tests: 7 Failed: 7) Failed tests: 1-7 Non-zero exit status: 7 Files=4, Tests=7, 13 wallclock secs ( 0.05 usr + 0.01 sys = 0.06 CPU) Result: FAIL Failed 1/4 test programs. 7/7 subtests failed. make[1]: *** [test_dynamic] Error 255 make[1]: Leaving directory `/home/dlintott-guest/libdevel-bt-perl-0.06' dh_auto_test: make -j1 test returned exit code 2 make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2
signature.asc
Description: OpenPGP digital signature

