summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/logrotate/logrotate/logrotate-3.15.1-fno-common.patch30
-rw-r--r--recipes-extended/logrotate/logrotate_%.bbappend2
-rw-r--r--recipes-extended/ltp/ltp_%.bbappend4
3 files changed, 36 insertions, 0 deletions
diff --git a/recipes-extended/logrotate/logrotate/logrotate-3.15.1-fno-common.patch b/recipes-extended/logrotate/logrotate/logrotate-3.15.1-fno-common.patch
new file mode 100644
index 0000000..a5bb8de
--- /dev/null
+++ b/recipes-extended/logrotate/logrotate/logrotate-3.15.1-fno-common.patch
@@ -0,0 +1,30 @@
1This patch fixes building logrotate 3.15.1 with modern compilers
2that default to -fno-common (such as clang >= 10, gcc >= 10)
3
4Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
5
6diff -up logrotate-3.15.1/logrotate.h.omv~ logrotate-3.15.1/logrotate.h
7--- logrotate-3.15.1/logrotate.h.omv~ 2021-03-18 13:48:57.662529086 +0100
8+++ logrotate-3.15.1/logrotate.h 2021-03-18 13:49:28.983736070 +0100
9@@ -89,7 +89,8 @@ struct logInfo {
10 TAILQ_ENTRY(logInfo) list;
11 };
12
13-TAILQ_HEAD(logInfoHead, logInfo) logs;
14+TAILQ_HEAD(logInfoHead, logInfo);
15+extern struct logInfoHead logs;
16
17 extern int numLogs;
18 extern int debug;
19diff -up logrotate-3.15.1/config.c.omv~ logrotate-3.15.1/config.c
20--- logrotate-3.15.1/config.c.omv~ 2021-03-18 18:22:09.897571389 +0100
21+++ logrotate-3.15.1/config.c 2021-03-18 18:22:24.023660076 +0100
22@@ -32,6 +32,8 @@
23 #include "log.h"
24 #include "logrotate.h"
25
26+struct logInfoHead logs;
27+
28 #if !defined(GLOB_ABORTED) && defined(GLOB_ABEND)
29 #define GLOB_ABORTED GLOB_ABEND
30 #endif
diff --git a/recipes-extended/logrotate/logrotate_%.bbappend b/recipes-extended/logrotate/logrotate_%.bbappend
new file mode 100644
index 0000000..884c4df
--- /dev/null
+++ b/recipes-extended/logrotate/logrotate_%.bbappend
@@ -0,0 +1,2 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2SRC_URI_append = " file://logrotate-3.15.1-fno-common.patch"
diff --git a/recipes-extended/ltp/ltp_%.bbappend b/recipes-extended/ltp/ltp_%.bbappend
new file mode 100644
index 0000000..e9ff911
--- /dev/null
+++ b/recipes-extended/ltp/ltp_%.bbappend
@@ -0,0 +1,4 @@
1# Old versions of ltp assume the compiler defaults to -fcommon
2# This can be removed when moving to a newer version of ltp.
3# The fix is also needed when building with gcc >= 10.
4CFLAGS_append = " -fcommon"