Dear maintainer,

attached is a patch from upstream to fix this particular build failure. Sadly
the package still FTBFS, now with test failures:

Running 1 iterations
1: test_peer_close_detection()
2: test_kqueue()
3: test_kevent()
4: test_ev_receipt()
5: test_kevent_socket_add()
6: test_kevent_socket_del()
7: test_kevent_socket_add_without_ev_add()
8: test_kevent_socket_get()
9: test_kevent_socket_disable_and_enable()
10: test_kevent_socket_oneshot()
11: test_kevent_socket_clear()
12: test_kevent_socket_dispatch()
13: test_kevent_socket_listen_backlog()
14: test_kevent_socket_eof()
15: test_kevent_regular_file()
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
[0x0]
***** ERROR: Program received signal 6 *****
*** TEST FAILED ***

I didn't investigate this any further, seems it might be best to update to 
a newer upstream release instead of cherrypicking fixes.

Regards.

-- 
PGP-encrypted mails preferred
PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624
diff -Nru libkqueue-2.0.3/debian/changelog libkqueue-2.0.3/debian/changelog
--- libkqueue-2.0.3/debian/changelog	2014-09-11 13:55:27.000000000 +0200
+++ libkqueue-2.0.3/debian/changelog	2017-10-09 19:03:38.000000000 +0200
@@ -1,3 +1,11 @@
+libkqueue (2.0.3-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply patch from upstream git to fix incorrect boolean logic 
+    (Closes: #831076)
+
+ -- Andreas Moog <andreas.m...@warperbbs.de>  Mon, 09 Oct 2017 19:03:38 +0200
+
 libkqueue (2.0.3-1.1) unstable; urgency=medium
 
   * Non maintainer upload.
diff -Nru libkqueue-2.0.3/debian/patches/fix-ftbfs-gcc6.patch libkqueue-2.0.3/debian/patches/fix-ftbfs-gcc6.patch
--- libkqueue-2.0.3/debian/patches/fix-ftbfs-gcc6.patch	1970-01-01 01:00:00.000000000 +0100
+++ libkqueue-2.0.3/debian/patches/fix-ftbfs-gcc6.patch	2017-10-09 19:03:38.000000000 +0200
@@ -0,0 +1,16 @@
+Description: Fix incorrect boolean logic to allow building with GCC6
+Author: marcos69
+Bug-Debian: https://bugs.debian.org/831076
+Origin: upstream, https://github.com/mheily/libkqueue/commit/fd76168ac6018d5ae99ce9778ba1ef4de524b632.patch
+
+--- libkqueue-2.0.3.orig/src/linux/read.c
++++ libkqueue-2.0.3/src/linux/read.c
+@@ -204,7 +204,7 @@ evfilt_read_knote_delete(struct filter *
+     if (kn->kev.flags & EV_DISABLE)
+         return (0);
+ 
+-    if ((kn->kn_flags & KNFL_REGULAR_FILE && kn->kdata.kn_eventfd != -1) < 0) {
++    if ((kn->kn_flags & KNFL_REGULAR_FILE) && (kn->kdata.kn_eventfd != -1)) {
+         if (epoll_ctl(kn->kn_epollfd, EPOLL_CTL_DEL, kn->kdata.kn_eventfd, NULL) < 0) {
+             dbg_perror("epoll_ctl(2)");
+             return (-1);
diff -Nru libkqueue-2.0.3/debian/patches/series libkqueue-2.0.3/debian/patches/series
--- libkqueue-2.0.3/debian/patches/series	2014-09-11 13:55:59.000000000 +0200
+++ libkqueue-2.0.3/debian/patches/series	2017-10-09 19:03:38.000000000 +0200
@@ -1 +1,2 @@
 replace-64bit-knote.patch
+fix-ftbfs-gcc6.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to