Package: cups Version: 1.5.3-2 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hi, currently[1], cups fails to build on hurd-i386, as the test suite does not pass because of two issues. The first issue is the fact that the snmp backend dies if it cannot open an IPv6 socket; however, this can be considered normal on Linux systems with no IPv6 support in kernel, or on Hurd systems with no pfinet translator for inet6 sockets. This has been reported upstream[2] and it has been fixed in the recent CUPS 1.6rc1 release; hence, the fix is just a backport of r10535. The second issue is the "Avahi client failed: -1" errors: the patch tests-ignore-warnings.patch already ignores such messages but for code -26. It seems the problem could be due to D-Bus (currently it does not work correctly on Hurd), although I cannot reproduce it neither when there is a D-Bus daemon running, neither when it is only installed but not running, and neither when it is not even installed (as it is supposed to be on buildds). Anyway, I'm attaching a modified version of tests-ignore-warnings.patch to ignore also -1 as error; feel free to skip it if you do not deem it safe enough. [1] https://buildd.debian.org/status/fetch.php?pkg=cups&arch=hurd-i386&ver=1.5.3-2&stamp=1340109841 [2] http://www.cups.org/str.php?L4109 Thanks, -- Pino
Description: snmp: do not die if there is no IPv6 support available Bug: http://www.cups.org/str.php?L4109 Applied-Upstream: commit:10535 --- a/backend/snmp.c +++ b/backend/snmp.c @@ -253,7 +253,7 @@ main(int argc, /* I - Number of comm #ifdef AF_INET6 if ((ipv6 = _cupsSNMPOpen(AF_INET6)) < 0) - return (1); + perror("DEBUG: Unable to create IPv6 socket"); #else ipv6 = -1; #endif /* AF_INET6 */
Description: Ignore warnings from colord and Avahi in the tests, as they change the expected number of warnings. Author: Martin Pitt <[email protected]> --- a/test/run-stp-tests.sh +++ b/test/run-stp-tests.sh @@ -764,7 +764,7 @@ else fi # Warning log messages -count=`$GREP '^W ' /tmp/cups-$user/log/error_log | wc -l | awk '{print $1}'` +count=`$GREP '^W ' /tmp/cups-$user/log/error_log | grep -v 'org.freedesktop.ColorManager' | grep -v -E 'Avahi client failed: -(26|1)$' | wc -l | awk '{print $1}'` if test $count != 9; then echo "FAIL: $count warning messages, expected 9." $GREP '^W ' /tmp/cups-$user/log/error_log

