Package: busybox Version: 1:1.22.0-3 Severity: serious Tags: patch User: debian-...@lists.debian.org Usertags: kfreebsd
Hi, busybox FTBFS trying to set up a signal handler for SIGPWR, which is not used or defined on kfreebsd-* or hurd-i386. The attached patch would skip setting up this particular signal handler. https://buildd.debian.org/status/fetch.php?pkg=busybox&arch=kfreebsd-amd64&ver=1%3A1.22.0-3&stamp=1390906915 Note that with this patch, it still fails the testsuite as I think debian/testsuite-kfreebsd.diff needs to be refreshed. Thanks. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 9.0-2-amd64-xenhvm Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
Description: Only handle SIGPWR on platforms that implement it. . Fixes FTBFS on kfreebsd-* and hurd-i386 From: Steven Chamberlain <ste...@pyro.eu.org> Index: busybox-1.22.0/init/init.c =================================================================== --- busybox-1.22.0.orig/init/init.c 2014-01-28 18:18:16.000000000 +0000 +++ busybox-1.22.0/init/init.c 2014-01-28 18:23:19.629099370 +0000 @@ -1137,7 +1137,9 @@ struct sigaction sa; bb_signals(0 +#ifdef SIGPWR + (1 << SIGPWR) /* halt */ +#endif + (1 << SIGUSR1) /* halt */ + (1 << SIGTERM) /* reboot */ + (1 << SIGUSR2) /* poweroff */