summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-15 05:58:19 +0000
committerSam James <sam@gentoo.org>2021-11-15 05:58:33 +0000
commitc7f4c74c0e3d6703a6501a8668a02740b213400b (patch)
treecec2d89fe21f1d6bde344c4d9698e1a5a718c621 /net-mail
parentdev-ruby/podcast: add ruby30 (diff)
downloadgentoo-c7f4c74c0e3d6703a6501a8668a02740b213400b.tar.gz
gentoo-c7f4c74c0e3d6703a6501a8668a02740b213400b.tar.bz2
gentoo-c7f4c74c0e3d6703a6501a8668a02740b213400b.zip
net-mail/qlogtools: fix build with glibc 2.33
Closes: https://bugs.gentoo.org/715702 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch31
-rw-r--r--net-mail/qlogtools/files/qlogtools-3.1-fix-implicit-decl.patch61
-rw-r--r--net-mail/qlogtools/qlogtools-3.1-r1.ebuild2
3 files changed, 94 insertions, 0 deletions
diff --git a/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch b/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch
new file mode 100644
index 000000000000..ea3d08561ed5
--- /dev/null
+++ b/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/715702
+
+From: Sam James <sam@gentoo.org>
+Date: Mon, 15 Nov 2021 05:48:50 +0000
+Subject: [PATCH 2/2] Fix build with glibc-2.33
+--- a/instcheck.c
++++ b/instcheck.c
+@@ -2,6 +2,7 @@
+ #include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+@@ -15,14 +15,14 @@ int man;
+ static void diesys(const char* msg)
+ {
+ fprintf(stderr, "installer error: %s:\n %s\n", msg,
+- sys_errlist[errno]);
++ strerror(errno));
+ exit(1);
+ }
+
+ static void diefsys(const char* msg, const char* filename)
+ {
+ fprintf(stderr, "installer error: %s '%s':\n %s\n", msg, filename,
+- sys_errlist[errno]);
++ strerror(errno));
+ exit(1);
+ }
diff --git a/net-mail/qlogtools/files/qlogtools-3.1-fix-implicit-decl.patch b/net-mail/qlogtools/files/qlogtools-3.1-fix-implicit-decl.patch
new file mode 100644
index 000000000000..18fdd1e008b4
--- /dev/null
+++ b/net-mail/qlogtools/files/qlogtools-3.1-fix-implicit-decl.patch
@@ -0,0 +1,61 @@
+From: Sam James <sam@gentoo.org>
+Date: Mon, 15 Nov 2021 05:48:39 +0000
+Subject: [PATCH 1/2] Fix implicit declarations
+--- a/installer.c
++++ b/installer.c
+@@ -1,6 +1,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+--- a/instcheck.c
++++ b/instcheck.c
+@@ -1,6 +1,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+--- a/tai_decode.c
++++ b/tai_decode.c
+@@ -1,5 +1,7 @@
+ #include "tai.h"
+
++#include <ctype.h>
++
+ static bool isdigit(char ch)
+ {
+ return ch >= '0' && ch <= '9';
+--- a/tai_decode.c
++++ b/tai_decode.c
+@@ -2,7 +2,7 @@
+
+ #include <ctype.h>
+
+-static bool isdigit(char ch)
++static bool qlogtools_isdigit(char ch)
+ {
+ return ch >= '0' && ch <= '9';
+ }
+@@ -12,11 +12,11 @@ tai* tai_decode(const char* str, const char** endptr)
+ static tai t;
+ t.seconds = 0;
+ t.nanoseconds = 0;
+- while(isdigit(*str))
++ while(qlogtools_isdigit(*str))
+ t.seconds = (t.seconds * 10) + (*str++ - '0');
+ if(*str == '.') {
+ ++str;
+- while(isdigit(*str))
++ while(qlogtools_isdigit(*str))
+ t.nanoseconds = (t.nanoseconds * 10) + (*str++ - '0');
+ }
+ if(endptr)
+--
+2.33.1
+
diff --git a/net-mail/qlogtools/qlogtools-3.1-r1.ebuild b/net-mail/qlogtools/qlogtools-3.1-r1.ebuild
index aab3324f175d..f420295a9323 100644
--- a/net-mail/qlogtools/qlogtools-3.1-r1.ebuild
+++ b/net-mail/qlogtools/qlogtools-3.1-r1.ebuild
@@ -19,6 +19,8 @@ RDEPEND="!app-text/multitail"
PATCHES=(
"${FILESDIR}"/qlogtools-3.1-errno.patch
+ "${FILESDIR}"/qlogtools-3.1-fix-implicit-decl.patch
+ "${FILESDIR}"/qlogtools-3.1-fix-glibc-2-33.patch
)
src_configure() {