summaryrefslogtreecommitdiff
path: root/net-mail/qlogtools/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-12-05 02:47:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-12-05 02:47:11 +0000
commit2771f79232c273bc2a57d23bf335dd81ccf6af28 (patch)
treec8af0fd04194aed03cf067d44e53c7edd3e9ab84 /net-mail/qlogtools/files
parente9d044d4b9b71200a96adfa280848858c0f468c9 (diff)
gentoo resync : 05.12.2021
Diffstat (limited to 'net-mail/qlogtools/files')
-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
2 files changed, 92 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
+