1 |
commit: d9c28ef38291599d3d9407c07934a504ff8f4346 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 14:24:07 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 14:24:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9c28ef3 |
7 |
|
8 |
dev-libs/log4cpp: restore patch |
9 |
|
10 |
Closes: https://bugs.gentoo.org/764308 |
11 |
Fixes: 229496dcd84bd840c1e671105d6291b59b5b0368 |
12 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
.../log4cpp/files/log4cpp-1.1-glibc-2.31.patch | 22 ++++++++++++++++++++++ |
16 |
1 file changed, 22 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch b/dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..5b927dfe20f |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch |
23 |
@@ -0,0 +1,22 @@ |
24 |
+diff --git a/tests/testDailyRollingFileAppender.cpp b/tests/testDailyRollingFileAppender.cpp |
25 |
+index 9958f41..158c08b 100644 |
26 |
+--- a/tests/testDailyRollingFileAppender.cpp |
27 |
++++ b/tests/testDailyRollingFileAppender.cpp |
28 |
+@@ -22,6 +22,7 @@ |
29 |
+ |
30 |
+ #ifndef WIN32 // only available on Win32 |
31 |
+ #include <dirent.h> |
32 |
++#include <sys/time.h> |
33 |
+ #else |
34 |
+ #include <direct.h> |
35 |
+ #endif |
36 |
+@@ -232,7 +233,8 @@ namespace OnlyManualTesting { |
37 |
+ |
38 |
+ now += seconds; |
39 |
+ |
40 |
+- if (stime(&now) == -1) { |
41 |
++ struct timeval tv = {.tv_sec = now, .tv_usec = 0}; |
42 |
++ if (settimeofday(&tv, NULL) < 0) { |
43 |
+ std::cerr << "Can not set date. Need admin privileges?" << std::endl; |
44 |
+ return -1; |
45 |
+ } |