Control: tags 831076 + patch
Control: tags 831076 + pending

Dear maintainer,

I've prepared an NMU for libkqueue (versioned as 2.0.3-1.2) and
uploaded it to mentors for sponsoring. Please feel free to tell me if I
should remove it.

--
Regards
Sudip

diff -Nru libkqueue-2.0.3/debian/changelog libkqueue-2.0.3/debian/changelog
--- libkqueue-2.0.3/debian/changelog    2014-09-11 12:55:27.000000000 +0100
+++ libkqueue-2.0.3/debian/changelog    2020-03-19 19:47:14.000000000 +0000
@@ -1,3 +1,10 @@
+libkqueue (2.0.3-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC. (Closes: #831076)
+
+ -- Sudip Mukherjee <sudipm.mukher...@gmail.com>  Thu, 19 Mar 2020 19:47:14 
+0000
+
 libkqueue (2.0.3-1.1) unstable; urgency=medium
 
   * Non maintainer upload.
diff -Nru libkqueue-2.0.3/debian/patches/fix_ftbfs.patch 
libkqueue-2.0.3/debian/patches/fix_ftbfs.patch
--- libkqueue-2.0.3/debian/patches/fix_ftbfs.patch      1970-01-01 
01:00:00.000000000 +0100
+++ libkqueue-2.0.3/debian/patches/fix_ftbfs.patch      2020-03-19 
19:47:14.000000000 +0000
@@ -0,0 +1,17 @@
+Description: Appease GCC 8.1
+
+upstream: 
https://github.com/mheily/libkqueue/commit/7c9a8f227489f7c45344fc23b2854663872dc7f2
+
+---
+
+--- libkqueue-2.0.3.orig/src/common/kevent.c
++++ libkqueue-2.0.3/src/common/kevent.c
+@@ -101,7 +101,7 @@ kevent_flags_dump(const struct kevent *k
+ const char *
+ kevent_dump(const struct kevent *kev)
+ {
+-    static __thread char buf[1024];
++    static __thread char buf[2147];
+ 
+     snprintf((char *) &buf[0], sizeof(buf), 
+             "{ ident=%d, filter=%s, %s, %s, data=%d, udata=%p }",
diff -Nru libkqueue-2.0.3/debian/patches/fix_logic.patch 
libkqueue-2.0.3/debian/patches/fix_logic.patch
--- libkqueue-2.0.3/debian/patches/fix_logic.patch      1970-01-01 
01:00:00.000000000 +0100
+++ libkqueue-2.0.3/debian/patches/fix_logic.patch      2020-03-19 
19:47:14.000000000 +0000
@@ -0,0 +1,17 @@
+Description: Fix incorrect boolean logic in src/linux/read.c
+
+upstream: 
https://github.com/mheily/libkqueue/commit/fd76168ac6018d5ae99ce9778ba1ef4de524b632
+
+---
+
+--- 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 12:55:59.000000000 
+0100
+++ libkqueue-2.0.3/debian/patches/series       2020-03-19 16:58:05.000000000 
+0000
@@ -1 +1,3 @@
 replace-64bit-knote.patch
+fix_ftbfs.patch
+fix_logic.patch

Reply via email to