diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2016-10-24 14:35:04 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-10-26 10:28:41 +0200 |
commit | ce2b1ac78dd95f1034f6ec52888c163234439917 (patch) | |
tree | 71363d0eb14f5717c1732a61c070f50c5873ba73 /meta-oe | |
parent | ca3a032866bcb2236745b6f710ff6dcda7bb2405 (diff) | |
download | meta-openembedded-ce2b1ac78dd95f1034f6ec52888c163234439917.tar.gz |
rsyslog: upgrade to 8.22.0
enable_tls_ptests.patch is removed as the problem has been fixed in new version.
fix_build_with_musl.patch is removed as it's no longer suitable.
The file it fixes is not even there any more.
Several necessary runtime dependencies are added to rsyslog-ptest.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/bugfix-include-config.h-before-any-other-headers.patch | 51 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/enable_tls_ptests.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/fix_build_with_musl.patch | 62 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/json-0.12-fix.patch | 47 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/replace_deprecated_GnuTLS_functions.patch | 73 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/use_gnutls_certificate_type_set_priority_only_if_available.patch | 79 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb (renamed from meta-oe/recipes-extended/rsyslog/rsyslog_7.6.7.bb) | 28 |
7 files changed, 10 insertions, 358 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/bugfix-include-config.h-before-any-other-headers.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/bugfix-include-config.h-before-any-other-headers.patch deleted file mode 100644 index 1048b423d..000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/bugfix-include-config.h-before-any-other-headers.patch +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | Backport below commit for fixing: | ||
2 | |||
3 | lexer.l:34:14: error: expected identifier or '(' before '__extension__' | ||
4 | |||
5 | From 876bdd1c85353f7e254f4b4c3e228484860cea57 Mon Sep 17 00:00:00 2001 | ||
6 | From: Tomas Heinrich <theinric@redhat.com> | ||
7 | Date: Mon, 17 Nov 2014 20:53:22 +0100 | ||
8 | Subject: [PATCH] bugfix: include config.h before any other headers | ||
9 | |||
10 | For some reason, flex used to prepend several standard headers before | ||
11 | config.h. This prevented some conditional extension in these headers | ||
12 | from being defined. | ||
13 | |||
14 | The explicit prototype for strdup() shouldn't be required anymore as | ||
15 | it should be provided by string.h. | ||
16 | |||
17 | Upstream-Status: Backport | ||
18 | --- | ||
19 | grammar/lexer.l | 7 +++++-- | ||
20 | 1 file changed, 5 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/grammar/lexer.l b/grammar/lexer.l | ||
23 | index 359cf9f..c834ef7 100644 | ||
24 | --- a/grammar/lexer.l | ||
25 | +++ b/grammar/lexer.l | ||
26 | @@ -28,10 +28,12 @@ | ||
27 | * limitations under the License. | ||
28 | */ | ||
29 | |||
30 | -%{ | ||
31 | +%top{ | ||
32 | #include "config.h" | ||
33 | +} | ||
34 | + | ||
35 | +%{ | ||
36 | #include "parserif.h" | ||
37 | -extern char *strdup(__const char*); /* somehow we may not get this from string.h... */ | ||
38 | %} | ||
39 | |||
40 | %option noyywrap nodefault case-insensitive yylineno | ||
41 | @@ -67,6 +69,7 @@ extern char *strdup(__const char*); /* somehow we may not get this from string.h | ||
42 | #include <ctype.h> | ||
43 | #include <stdio.h> | ||
44 | #include <stdlib.h> | ||
45 | +#include <string.h> | ||
46 | #include <strings.h> | ||
47 | #include <libestr.h> | ||
48 | #include "rainerscript.h" | ||
49 | -- | ||
50 | 2.7.4 | ||
51 | |||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/enable_tls_ptests.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/enable_tls_ptests.patch deleted file mode 100644 index c858f32b9..000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/enable_tls_ptests.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | Enable tls ptest | ||
2 | |||
3 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | --- rsyslog-7.4.4/tests/Makefile.am.orig 2013-08-30 18:30:41.000000000 +0200 | ||
7 | +++ rsyslog-7.4.4/tests/Makefile.am 2015-10-01 09:38:45.176289031 +0200 | ||
8 | @@ -118,15 +118,13 @@ | ||
9 | endif | ||
10 | |||
11 | if ENABLE_GNUTLS | ||
12 | -# TODO: re-enable in newer version | ||
13 | -#TESTS += \ | ||
14 | - #sndrcv_tls_anon.sh \ | ||
15 | - #sndrcv_tls_anon_rebind.sh \ | ||
16 | - #imtcp-tls-basic.sh | ||
17 | +TESTS += \ | ||
18 | + imtcp-tls-basic.sh \ | ||
19 | + imtcp_conndrop_tls.sh | ||
20 | if HAVE_VALGRIND | ||
21 | TESTS += imtcp-tls-basic-vg.sh \ | ||
22 | - imtcp_conndrop_tls-vg.sh | ||
23 | - manytcp-too-few-tls-vg.sh | ||
24 | + imtcp_conndrop_tls-vg.sh \ | ||
25 | + manytcp-too-few-tls.sh | ||
26 | endif | ||
27 | endif | ||
28 | |||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/fix_build_with_musl.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/fix_build_with_musl.patch deleted file mode 100644 index db35db06f..000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/fix_build_with_musl.patch +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | From b6cc506b6ad0b5dd9aa9831ed42e6759183aaf45 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Liu <peter.x.liu@external.atlascopco.com> | ||
3 | Date: Mon, 26 Sep 2016 17:03:57 +0200 | ||
4 | Subject: [PATCH] fix building with musl libc | ||
5 | |||
6 | - struct timeval is defined in sys/time.h with a musl libc. | ||
7 | - include fcntl.h without the conditional checking. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Peter Liu <peter.x.liu@external.atlascopco.com> | ||
12 | --- | ||
13 | tests/msleep.c | 2 +- | ||
14 | tools/omfile.c | 4 +--- | ||
15 | tools/pidfile.c | 2 -- | ||
16 | 3 files changed, 2 insertions(+), 6 deletions(-) | ||
17 | |||
18 | diff --git a/tests/msleep.c b/tests/msleep.c | ||
19 | index 36fa01b..ca818be 100644 | ||
20 | --- a/tests/msleep.c | ||
21 | +++ b/tests/msleep.c | ||
22 | @@ -26,7 +26,7 @@ | ||
23 | #include "config.h" | ||
24 | #include <stdio.h> | ||
25 | #include <stdlib.h> | ||
26 | -#include <time.h> | ||
27 | +#include <sys/time.h> | ||
28 | |||
29 | int main(int argc, char *argv[]) | ||
30 | { | ||
31 | diff --git a/tools/omfile.c b/tools/omfile.c | ||
32 | index 11eab56..765ef91 100644 | ||
33 | --- a/tools/omfile.c | ||
34 | +++ b/tools/omfile.c | ||
35 | @@ -48,9 +48,7 @@ | ||
36 | #include <libgen.h> | ||
37 | #include <unistd.h> | ||
38 | #include <sys/file.h> | ||
39 | -#ifdef OS_SOLARIS | ||
40 | -# include <fcntl.h> | ||
41 | -#endif | ||
42 | +#include <fcntl.h> | ||
43 | #ifdef HAVE_ATOMIC_BUILTINS | ||
44 | # include <pthread.h> | ||
45 | #endif | ||
46 | diff --git a/tools/pidfile.c b/tools/pidfile.c | ||
47 | index 8298b94..188cca4 100644 | ||
48 | --- a/tools/pidfile.c | ||
49 | +++ b/tools/pidfile.c | ||
50 | @@ -36,9 +36,7 @@ | ||
51 | #include <string.h> | ||
52 | #include <errno.h> | ||
53 | #include <signal.h> | ||
54 | -#ifdef __sun | ||
55 | #include <fcntl.h> | ||
56 | -#endif | ||
57 | |||
58 | #include "srUtils.h" | ||
59 | |||
60 | -- | ||
61 | 1.9.1 | ||
62 | |||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/json-0.12-fix.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/json-0.12-fix.patch deleted file mode 100644 index 3dd85a7bb..000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/json-0.12-fix.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | json-c-0.12 unlike 0.11 doesn't install json -> json-c symlink in include | ||
2 | |||
3 | * Resolved in Version 7.6.4 [v7.6-stable] 2014-09-12 | ||
4 | https://github.com/rsyslog/rsyslog/blob/v7-stable/ChangeLog | ||
5 | * permits to build against json-c 0.12 | ||
6 | Unfortunately, json-c had an ABI breakage, so this is necessary. Note | ||
7 | that versions prior to 0.12 had security issues (CVE-2013-6370, | ||
8 | CVE-2013-6371) and so it is desirable to link against the new version. | ||
9 | Thanks to Thomas D. for the patch. Note that at least some distros | ||
10 | have fixed the security issue in older versions of json-c, so this | ||
11 | seems to apply mostly when building from sources. | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | |||
16 | diff --git a/plugins/ommongodb/ommongodb.c b/plugins/ommongodb/ommongodb.c | ||
17 | index 41c0d76..682c40e 100644 | ||
18 | --- a/plugins/ommongodb/ommongodb.c | ||
19 | +++ b/plugins/ommongodb/ommongodb.c | ||
20 | @@ -33,9 +33,9 @@ | ||
21 | #include <stdint.h> | ||
22 | #include <time.h> | ||
23 | #include <mongo.h> | ||
24 | -#include <json.h> | ||
25 | +#include <json-c/json.h> | ||
26 | /* For struct json_object_iter, should not be necessary in future versions */ | ||
27 | -#include <json_object_private.h> | ||
28 | +#include <json-c/json_object_private.h> | ||
29 | |||
30 | #include "rsyslog.h" | ||
31 | #include "conf.h" | ||
32 | diff --git a/runtime/msg.c b/runtime/msg.c | ||
33 | index d04ce7b..b367e1f 100644 | ||
34 | --- a/runtime/msg.c | ||
35 | +++ b/runtime/msg.c | ||
36 | @@ -41,9 +41,9 @@ | ||
37 | #endif | ||
38 | #include <netdb.h> | ||
39 | #include <libestr.h> | ||
40 | -#include <json.h> | ||
41 | +#include <json-c/json.h> | ||
42 | /* For struct json_object_iter, should not be necessary in future versions */ | ||
43 | -#include <json_object_private.h> | ||
44 | +#include <json-c/json_object_private.h> | ||
45 | #if HAVE_MALLOC_H | ||
46 | # include <malloc.h> | ||
47 | #endif | ||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/replace_deprecated_GnuTLS_functions.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/replace_deprecated_GnuTLS_functions.patch deleted file mode 100644 index be05eee82..000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/replace_deprecated_GnuTLS_functions.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | replace deprecated GnuTLS functions with newer ones if available | ||
2 | |||
3 | closes https://github.com/rsyslog/rsyslog/issues/302 | ||
4 | |||
5 | Upstream fix https://github.com/rsyslog/rsyslog/commit/b34c35e38f258935c0e92ca754da097d7f3f0f58 | ||
6 | |||
7 | Upstream-Status: Backport | ||
8 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | ||
9 | |||
10 | --- | ||
11 | configure.ac | 2 ++ | ||
12 | runtime/nsd_gtls.c | 21 ++++++++++++++++++--- | ||
13 | 2 files changed, 20 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index 643fc94..56835fb 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -763,6 +763,8 @@ AC_ARG_ENABLE(gnutls, | ||
20 | if test "x$enable_gnutls" = "xyes"; then | ||
21 | PKG_CHECK_MODULES(GNUTLS, gnutls >= 1.4.0) | ||
22 | AC_DEFINE([ENABLE_GNUTLS], [1], [Indicator that GnuTLS is present]) | ||
23 | + AC_CHECK_LIB(gnutls, gnutls_global_init) | ||
24 | + AC_CHECK_FUNCS(gnutls_certificate_set_retrieve_function,,) | ||
25 | fi | ||
26 | AM_CONDITIONAL(ENABLE_GNUTLS, test x$enable_gnutls = xyes) | ||
27 | |||
28 | diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c | ||
29 | index a763e4b..e127834 100644 | ||
30 | --- a/runtime/nsd_gtls.c | ||
31 | +++ b/runtime/nsd_gtls.c | ||
32 | @@ -232,15 +232,26 @@ gtlsLoadOurCertKey(nsd_gtls_t *pThis) | ||
33 | */ | ||
34 | static int | ||
35 | gtlsClientCertCallback(gnutls_session session, | ||
36 | - __attribute__((unused)) const gnutls_datum* req_ca_rdn, int __attribute__((unused)) nreqs, | ||
37 | - __attribute__((unused)) const gnutls_pk_algorithm* sign_algos, int __attribute__((unused)) sign_algos_length, | ||
38 | - gnutls_retr_st *st) | ||
39 | + __attribute__((unused)) const gnutls_datum* req_ca_rdn, | ||
40 | + int __attribute__((unused)) nreqs, | ||
41 | + __attribute__((unused)) const gnutls_pk_algorithm* sign_algos, | ||
42 | + int __attribute__((unused)) sign_algos_length, | ||
43 | +#if HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION | ||
44 | + gnutls_retr2_st* st | ||
45 | +#else | ||
46 | + gnutls_retr_st *st | ||
47 | +#endif | ||
48 | + ) | ||
49 | { | ||
50 | nsd_gtls_t *pThis; | ||
51 | |||
52 | pThis = (nsd_gtls_t*) gnutls_session_get_ptr(session); | ||
53 | |||
54 | +#if HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION | ||
55 | + st->cert_type = GNUTLS_CRT_X509; | ||
56 | +#else | ||
57 | st->type = GNUTLS_CRT_X509; | ||
58 | +#endif | ||
59 | st->ncerts = 1; | ||
60 | st->cert.x509 = &pThis->ourCert; | ||
61 | st->key.x509 = pThis->ourKey; | ||
62 | @@ -1625,7 +1625,11 @@ Connect(nsd_t *pNsd, int family, uchar *port, uchar *host) | ||
63 | gnutls_session_set_ptr(pThis->sess, (void*)pThis); | ||
64 | iRet = gtlsLoadOurCertKey(pThis); /* first load .pem files */ | ||
65 | if(iRet == RS_RET_OK) { | ||
66 | +# if HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION | ||
67 | + gnutls_certificate_set_retrieve_function(xcred, gtlsClientCertCallback); | ||
68 | +# else | ||
69 | gnutls_certificate_client_set_retrieve_function(xcred, gtlsClientCertCallback); | ||
70 | +# endif | ||
71 | } else if(iRet != RS_RET_CERTLESS) { | ||
72 | FINALIZE; /* we have an error case! */ | ||
73 | } | ||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/use_gnutls_certificate_type_set_priority_only_if_available.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/use_gnutls_certificate_type_set_priority_only_if_available.patch deleted file mode 100644 index e1dab759a..000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/use_gnutls_certificate_type_set_priority_only_if_available.patch +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | From 21674039db99d1067e9df4df04d965297d62c6af Mon Sep 17 00:00:00 2001 | ||
2 | From: Rainer Gerhards <rgerhards@adiscon.com> | ||
3 | Date: Mon, 18 May 2015 09:36:02 +0200 | ||
4 | Subject: [PATCH] use gnutls_certificate_type_set_priority() only if available | ||
5 | |||
6 | The gnutls_certificate_type_set_priority function is deprecated | ||
7 | and not available in recent GnuTLS versions. However, there is no | ||
8 | doc how to properly replace it with gnutls_priority_set_direct. | ||
9 | A lot of folks have simply removed it, when they also called | ||
10 | gnutls_set_default_priority. This is what we now also do. If | ||
11 | this causes problems or someone has an idea of how to replace | ||
12 | the deprecated function in a better way, please let us know! | ||
13 | In any case, we use it as long as it is available and let | ||
14 | not insult us by the deprecation warnings. | ||
15 | |||
16 | Upstream-Status: Backport | ||
17 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | ||
18 | |||
19 | --- | ||
20 | configure.ac | 1 + | ||
21 | runtime/nsd_gtls.c | 18 ++++++++++++++++-- | ||
22 | 2 files changed, 17 insertions(+), 2 deletions(-) | ||
23 | |||
24 | diff --git a/configure.ac b/configure.ac | ||
25 | index 56835fb..1c2be01 100644 | ||
26 | --- a/configure.ac | ||
27 | +++ b/configure.ac | ||
28 | @@ -765,6 +765,7 @@ if test "x$enable_gnutls" = "xyes"; then | ||
29 | AC_DEFINE([ENABLE_GNUTLS], [1], [Indicator that GnuTLS is present]) | ||
30 | AC_CHECK_LIB(gnutls, gnutls_global_init) | ||
31 | AC_CHECK_FUNCS(gnutls_certificate_set_retrieve_function,,) | ||
32 | + AC_CHECK_FUNCS(gnutls_certificate_type_set_priority,,) | ||
33 | fi | ||
34 | AM_CONDITIONAL(ENABLE_GNUTLS, test x$enable_gnutls = xyes) | ||
35 | |||
36 | diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c | ||
37 | index e127834..4b6aab1 100644 | ||
38 | --- a/runtime/nsd_gtls.c | ||
39 | +++ b/runtime/nsd_gtls.c | ||
40 | @@ -1658,8 +1658,9 @@ Connect(nsd_t *pNsd, int family, uchar *port, uchar *host) | ||
41 | nsd_gtls_t *pThis = (nsd_gtls_t*) pNsd; | ||
42 | int sock; | ||
43 | int gnuRet; | ||
44 | - /* TODO: later? static const int cert_type_priority[3] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 };*/ | ||
45 | +# if HAVE_GNUTLS_CERTIFICATE_TYPE_SET_PRIORITY | ||
46 | static const int cert_type_priority[2] = { GNUTLS_CRT_X509, 0 }; | ||
47 | +# endif | ||
48 | DEFiRet; | ||
49 | |||
50 | ISOBJ_TYPE_assert(pThis, nsd_gtls); | ||
51 | @@ -1688,14 +1689,27 @@ Connect(nsd_t *pNsd, int family, uchar *port, uchar *host) | ||
52 | gnutls_certificate_set_retrieve_function(xcred, gtlsClientCertCallback); | ||
53 | # else | ||
54 | gnutls_certificate_client_set_retrieve_function(xcred, gtlsClientCertCallback); | ||
55 | -# endif | ||
56 | +# endif | ||
57 | } else if(iRet != RS_RET_CERTLESS) { | ||
58 | FINALIZE; /* we have an error case! */ | ||
59 | } | ||
60 | |||
61 | /* Use default priorities */ | ||
62 | CHKgnutls(gnutls_set_default_priority(pThis->sess)); | ||
63 | +# if HAVE_GNUTLS_CERTIFICATE_TYPE_SET_PRIORITY | ||
64 | + /* The gnutls_certificate_type_set_priority function is deprecated | ||
65 | + * and not available in recent GnuTLS versions. However, there is no | ||
66 | + * doc how to properly replace it with gnutls_priority_set_direct. | ||
67 | + * A lot of folks have simply removed it, when they also called | ||
68 | + * gnutls_set_default_priority. This is what we now also do. If | ||
69 | + * this causes problems or someone has an idea of how to replace | ||
70 | + * the deprecated function in a better way, please let us know! | ||
71 | + * In any case, we use it as long as it is available and let | ||
72 | + * not insult us by the deprecation warnings. | ||
73 | + * 2015-05-18 rgerhards | ||
74 | + */ | ||
75 | CHKgnutls(gnutls_certificate_type_set_priority(pThis->sess, cert_type_priority)); | ||
76 | +# endif | ||
77 | |||
78 | /* put the x509 credentials to the current session */ | ||
79 | CHKgnutls(gnutls_credentials_set(pThis->sess, GNUTLS_CRD_CERTIFICATE, xcred)); | ||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_7.6.7.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb index 38bbe9cfd..724232339 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_7.6.7.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb | |||
@@ -9,7 +9,7 @@ Rsyslog is an enhanced syslogd supporting, among others, MySQL,\ | |||
9 | encryption protected syslog relay chains while at the same time being\ | 9 | encryption protected syslog relay chains while at the same time being\ |
10 | very easy to setup for the novice user." | 10 | very easy to setup for the novice user." |
11 | 11 | ||
12 | DEPENDS = "zlib libestr json-c bison-native flex-native liblogging" | 12 | DEPENDS = "zlib libestr libfastjson bison-native flex-native liblogging" |
13 | HOMEPAGE = "http://www.rsyslog.com/" | 13 | HOMEPAGE = "http://www.rsyslog.com/" |
14 | LICENSE = "GPLv3 & LGPLv3 & Apache-2.0" | 14 | LICENSE = "GPLv3 & LGPLv3 & Apache-2.0" |
15 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973 \ | 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973 \ |
@@ -24,16 +24,10 @@ SRC_URI = "http://www.rsyslog.com/download/files/download/rsyslog/${BPN}-${PV}.t | |||
24 | file://use-pkgconfig-to-check-libgcrypt.patch \ | 24 | file://use-pkgconfig-to-check-libgcrypt.patch \ |
25 | file://run-ptest \ | 25 | file://run-ptest \ |
26 | file://rsyslog-fix-ptest-not-finish.patch \ | 26 | file://rsyslog-fix-ptest-not-finish.patch \ |
27 | file://json-0.12-fix.patch \ | ||
28 | file://replace_deprecated_GnuTLS_functions.patch \ | ||
29 | file://use_gnutls_certificate_type_set_priority_only_if_available.patch \ | ||
30 | file://bugfix-include-config.h-before-any-other-headers.patch \ | ||
31 | file://enable_tls_ptests.patch \ | ||
32 | file://fix_build_with_musl.patch \ | ||
33 | " | 27 | " |
34 | 28 | ||
35 | SRC_URI[md5sum] = "fa78a6e675fe78a811edcdf7eb6f1975" | 29 | SRC_URI[md5sum] = "ad0f25f429aa2daa326732950a5eeb6c" |
36 | SRC_URI[sha256sum] = "fc29d2d9cbf3396091dd0bab2eb6f847aed4a44ef73138a97ddf9447446125ee" | 30 | SRC_URI[sha256sum] = "06e2884181333dccecceaca82827ae24ca7a258b4fbf7b1e07a80d4caae640ca" |
37 | 31 | ||
38 | inherit autotools pkgconfig systemd update-rc.d update-alternatives ptest | 32 | inherit autotools pkgconfig systemd update-rc.d update-alternatives ptest |
39 | 33 | ||
@@ -41,15 +35,15 @@ EXTRA_OECONF += "--disable-generate-man-pages" | |||
41 | 35 | ||
42 | # first line is default yes in configure | 36 | # first line is default yes in configure |
43 | PACKAGECONFIG ??= " \ | 37 | PACKAGECONFIG ??= " \ |
44 | zlib rsyslogd rsyslogrt klog inet regexp uuid libgcrypt \ | 38 | rsyslogd rsyslogrt klog inet regexp uuid libgcrypt \ |
45 | imdiag gnutls imfile \ | 39 | imdiag gnutls imfile \ |
46 | ${@bb.utils.contains('DISTRO_FEATURES', 'snmp', 'snmp', '', d)} \ | 40 | ${@bb.utils.contains('DISTRO_FEATURES', 'snmp', 'snmp', '', d)} \ |
47 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ | 41 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
48 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'testbench ${VALGRIND}', '', d)} \ | 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'testbench relp ${VALGRIND}', '', d)} \ |
49 | " | 43 | " |
50 | 44 | ||
51 | # default yes in configure | 45 | # default yes in configure |
52 | PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib," | 46 | PACKAGECONFIG[relp] = "--enable-relp,--disable-relp,librelp," |
53 | PACKAGECONFIG[rsyslogd] = "--enable-rsyslogd,--disable-rsyslogd,," | 47 | PACKAGECONFIG[rsyslogd] = "--enable-rsyslogd,--disable-rsyslogd,," |
54 | PACKAGECONFIG[rsyslogrt] = "--enable-rsyslogrt,--disable-rsyslogrt,," | 48 | PACKAGECONFIG[rsyslogrt] = "--enable-rsyslogrt,--disable-rsyslogrt,," |
55 | PACKAGECONFIG[inet] = "--enable-inet,--disable-inet,," | 49 | PACKAGECONFIG[inet] = "--enable-inet,--disable-inet,," |
@@ -70,7 +64,6 @@ PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," | |||
70 | PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," | 64 | PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," |
71 | PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," | 65 | PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," |
72 | PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," | 66 | PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," |
73 | PACKAGECONFIG[gui] = "--enable-gui,--disable-gui,," | ||
74 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," | 67 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," |
75 | 68 | ||
76 | TESTDIR = "tests" | 69 | TESTDIR = "tests" |
@@ -98,7 +91,7 @@ do_install_ptest() { | |||
98 | fi | 91 | fi |
99 | 92 | ||
100 | # install test-driver | 93 | # install test-driver |
101 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH}/${TESTDIR} | 94 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH} |
102 | 95 | ||
103 | # install necessary links | 96 | # install necessary links |
104 | install -d ${D}${PTEST_PATH}/tools | 97 | install -d ${D}${PTEST_PATH}/tools |
@@ -115,9 +108,8 @@ do_install_ptest() { | |||
115 | ) | 108 | ) |
116 | 109 | ||
117 | # fix the module load path with runtime/.libs | 110 | # fix the module load path with runtime/.libs |
118 | find ${D}${PTEST_PATH}/${TESTDIR} -name \*.conf -exec \ | 111 | find ${D}${PTEST_PATH}/${TESTDIR} -name "*.conf" -o -name "*.sh" -o -name "*.c" | xargs \ |
119 | sed -i -e 's:../plugins/.*/.libs/:../runtime/.libs/:' \ | 112 | sed -i -e 's:../plugins/.*/.libs/:../runtime/.libs/:g' |
120 | '{}' \; | ||
121 | } | 113 | } |
122 | 114 | ||
123 | do_install_append() { | 115 | do_install_append() { |
@@ -160,7 +152,7 @@ VALGRIND_mips64 = "" | |||
160 | VALGRIND_mips64n32 = "" | 152 | VALGRIND_mips64n32 = "" |
161 | VALGRIND_arm = "" | 153 | VALGRIND_arm = "" |
162 | VALGRIND_aarch64 = "" | 154 | VALGRIND_aarch64 = "" |
163 | RDEPENDS_${PN}-ptest += "make diffutils gzip" | 155 | RDEPENDS_${PN}-ptest += "make diffutils gzip bash gawk coreutils procps" |
164 | RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}" | 156 | RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}" |
165 | 157 | ||
166 | # no syslog-init for systemd | 158 | # no syslog-init for systemd |