Skip to contentSkip to conversation

libestr: upgrade to 0.1.10

PATCH New [email protected] 1 participant 3 messages Aug 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 libestr: upgrade to 0.1.10

From: Roy Li <[email protected]>

rsyslog 7.6.1 needs the new version libestr

---
 .../recipes-support/libestr/{libestr_0.1.6.bb => libestr_0.1.10.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/libestr/{libestr_0.1.6.bb => libestr_0.1.10.bb} (67%)
meta-oe/recipes-support/libestr/libestr_0.1.10.bb renamed from meta-oe/recipes-support/libestr/libestr_0.1.6.bb +2 -2
similarity index 67%
rename from meta-oe/recipes-support/libestr/libestr_0.1.6.bb
rename to meta-oe/recipes-support/libestr/libestr_0.1.10.bb
index e3f675a..9bff4f3 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9d6c993486c18262afba4ca5bcb894d0"
 
 SRC_URI = "http://libestr.adiscon.com/files/download/${BP}.tar.gz"
 
-SRC_URI[md5sum] = "f48a7098080eebfe7842673c23dcd064"
-SRC_URI[sha256sum] = "b9c819d30397845fdf85bb1f37c52e81de23aa3b061ec6cc4386f1b942960153"
+SRC_URI[md5sum] = "f4c9165a23587e77f7efe65d676d5e8e"
+SRC_URI[sha256sum] = "bd655e126e750edd18544b88eb1568d200a424a0c23f665eb14bbece07ac703c"
 
 inherit autotools
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/3 liblogging: add the recipe

From: Roy Li <[email protected]>

rsyslog 7.6.1 needs it

---
 .../liblogging/liblogging_1.0.5.bb                 | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-extended/liblogging/liblogging_1.0.5.bb
meta-oe/recipes-extended/liblogging/liblogging_1.0.5.bb new file +23 -0
new file mode 100644
index 0000000..3488b19
@@ -0,0 +1,23 @@
+SUMMARY = "An easy to use logging library"
+DESCRIPTION = " \
+liblogging (the upstream project) is a collection of several components. \
+Namely: stdlog, journalemu, rfc3195. \
+The stdlog component of liblogging can be viewed as an enhanced version of \
+the syslog(3) API. It retains the easy semantics, but makes the API more \
+sophisticated "behind the scenes" with better support for multiple threads \
+and flexibility for different log destinations (e.g. syslog and systemd \
+journal)."
+SECTION = "libs"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=63fe03535d83726f5655072502bef1bc"
+SRC_URI = "http://download.rsyslog.com/${BPN}/${BPN}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "44b8ce2daa1bfb84c9feaf42f9925fd7"
+SRC_URI[sha256sum] = "310dc1691279b7a669d383581fe4b0babdc7bf75c9b54a24e51e60428624890b"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-man-pages"
+
+PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)}"
+PACKAGECONFIG[systemd] = "--enable-journal, --disable-journal, systemd"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 3/3 rsyslog: upgrade to 7.6.1

In reply to [email protected]

From: Roy Li <[email protected]>

1. remove two backport patch: 0001-bugfix-potential-abort-during-HUP.patch and 0001-remove-memleak-introduced-by-GenerateLocalHostName-H.patch
2. update the patch json-0.12-fix.patch
3. remove a obsolete patch rsyslog-use-serial-tests-config-needed-by-ptest.patch
4. update the Dependence
5. update the checksum

---
 .../0001-bugfix-potential-abort-during-HUP.patch   |  91 ------------------
 ...eak-introduced-by-GenerateLocalHostName-H.patch | 103 ---------------------
 .../rsyslog/rsyslog/json-0.12-fix.patch            |  18 ++--
 ...g-use-serial-tests-config-needed-by-ptest.patch |  28 ------
 .../rsyslog/{rsyslog_7.4.4.bb => rsyslog_7.6.1.bb} |  11 +--
 5 files changed, 14 insertions(+), 237 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/rsyslog/rsyslog/0001-bugfix-potential-abort-during-HUP.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/rsyslog/0001-remove-memleak-introduced-by-GenerateLocalHostName-H.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog-use-serial-tests-config-needed-by-ptest.patch
 rename meta-oe/recipes-extended/rsyslog/{rsyslog_7.4.4.bb => rsyslog_7.6.1.bb} (93%)
meta-oe/recipes-extended/rsyslog/rsyslog/0001-bugfix-potential-abort-during-HUP.patch deleted +0 -91
deleted file mode 100644
index 14e8b3f..0000000
@@ -1,91 +0,0 @@
-From 9a775051f7373176c6e54bee1110965342dd41ad Mon Sep 17 00:00:00 2001
-From: Rainer Gerhards <[email protected]>
-Date: Mon, 28 Oct 2013 12:56:02 +0100
-Subject: [PATCH] bugfix: potential abort during HUP
-
-This could happen when one of imklog, imzmq3, imkmsg, impstats,
-imjournal, or imuxsock were under heavy load during a HUP.
-closes: http://bugzilla.adiscon.com/show_bug.cgi?id=489
-Thanks to Guy Rozendorn for reporting the problem and Peval Levhshin for
-his analysis.
-
-Upstream-Status: backport
-
-Signed-off-by: Li Zhou <[email protected]>
----
- ChangeLog      |    6 ++++++
- runtime/glbl.c |   25 ++++++++++++++++++-------
- 2 files changed, 24 insertions(+), 7 deletions(-)
-
-Index: rsyslog-7.4.4/ChangeLog
-===================================================================
---- rsyslog-7.4.4.orig/ChangeLog
-+++ rsyslog-7.4.4/ChangeLog
-@@ -1,5 +1,11 @@
- ---------------------------------------------------------------------------
- Version 7.4.4  [v7.4-stable] 2013-09-03
-+- bugfix: potential abort during HUP
-+  This could happen when one of imklog, imzmq3, imkmsg, impstats,
-+  imjournal, or imuxsock were under heavy load during a HUP.
-+  closes: http://bugzilla.adiscon.com/show_bug.cgi?id=489
-+  Thanks to Guy Rozendorn for reporting the problem and Peval Levhshin for
-+  his analysis.
- - better error messages in GuardTime signature provider
-   Thanks to Ahto Truu for providing the patch.
- - make rsyslog use the new json-c pkgconfig file if available
-Index: rsyslog-7.4.4/runtime/glbl.c
-===================================================================
---- rsyslog-7.4.4.orig/runtime/glbl.c
-+++ rsyslog-7.4.4/runtime/glbl.c
-@@ -32,6 +32,7 @@
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <unistd.h>
-+#include <pthread.h>
- #include <assert.h>
- 
- #include "rsyslog.h"
-@@ -379,17 +380,24 @@ GetLocalDomain(void)
- /* generate the local hostname property. This must be done after the hostname info
-  * has been set as well as PreserveFQDN.
-  * rgerhards, 2009-06-30
-+ * NOTE: This function DELIBERATELY introduces a small memory leak in order to gain
-+ * speed. Each time it is called when a property name already exists, a new one is
-+ * allocated but the previous one is NOT freed. This is so that current readers can
-+ * continue to use the previous name. Otherwise, we would need to use read/write locks
-+ * to protect the update process. As this function is called extremely infrequently and
-+ * the memory leak is very small, this is totally accessible. Think that otherwise we
-+ * would need to place a read look each time the property is read, which is much more
-+ * frequent (once per message for the modules that use this local hostname!).
-+ * rgerhards, 2013-10-28
-  */
- static rsRetVal
- GenerateLocalHostNameProperty(void)
- {
--	DEFiRet;
-+	prop_t *hostnameNew;
- 	uchar *pszName;
-+	DEFiRet;
- 
--	if(propLocalHostName != NULL)
--		prop.Destruct(&propLocalHostName);
--
--	CHKiRet(prop.Construct(&propLocalHostName));
-+	CHKiRet(prop.Construct(&hostnameNew));
- 	if(LocalHostNameOverride == NULL) {
- 		if(LocalHostName == NULL)
- 			pszName = (uchar*) "[localhost]";
-@@ -403,8 +411,11 @@ GenerateLocalHostNameProperty(void)
- 		pszName = LocalHostNameOverride;
- 	}
- 	DBGPRINTF("GenerateLocalHostName uses '%s'\n", pszName);
--	CHKiRet(prop.SetString(propLocalHostName, pszName, ustrlen(pszName)));
--	CHKiRet(prop.ConstructFinalize(propLocalHostName));
-+	CHKiRet(prop.SetString(hostnameNew, pszName, ustrlen(pszName)));
-+	CHKiRet(prop.ConstructFinalize(hostnameNew));
-+
-+	propLocalHostName = hostnameNew;
-+	/* inititional MEM LEAK for old value -- see function hdr comment! */
- 
- finalize_it:
- 	RETiRet;
meta-oe/recipes-extended/rsyslog/rsyslog/0001-remove-memleak-introduced-by-GenerateLocalHostName-H.patch deleted +0 -103

103 lines not on this page · raw message

meta-oe/recipes-extended/rsyslog/rsyslog/json-0.12-fix.patch +10 -8
index 7390a7f..3dd85a7 100644
@@ -13,9 +13,10 @@ json-c-0.12 unlike 0.11 doesn't install json -> json-c symlink in include
 Upstream-Status: Backport
 Signed-off-by: Martin Jansa <[email protected]>
 
-diff -uNr rsyslog-7.4.4.orig/plugins/ommongodb/ommongodb.c rsyslog-7.4.4/plugins/ommongodb/ommongodb.c
---- rsyslog-7.4.4.orig/plugins/ommongodb/ommongodb.c	2013-09-03 11:54:20.000000000 +0200
-+++ rsyslog-7.4.4/plugins/ommongodb/ommongodb.c	2015-01-12 16:11:51.542591825 +0100
+diff --git a/plugins/ommongodb/ommongodb.c b/plugins/ommongodb/ommongodb.c
+index 41c0d76..682c40e 100644
+--- a/plugins/ommongodb/ommongodb.c
++++ b/plugins/ommongodb/ommongodb.c
 @@ -33,9 +33,9 @@
  #include <stdint.h>
  #include <time.h>
@@ -23,14 +24,15 @@ diff -uNr rsyslog-7.4.4.orig/plugins/ommongodb/ommongodb.c rsyslog-7.4.4/plugins
 -#include <json.h>
 +#include <json-c/json.h>
  /* For struct json_object_iter, should not be necessary in future versions */
--#include <json/json_object_private.h>
+-#include <json_object_private.h>
 +#include <json-c/json_object_private.h>
  
  #include "rsyslog.h"
  #include "conf.h"
-diff -uNr rsyslog-7.4.4.orig/runtime/msg.c rsyslog-7.4.4/runtime/msg.c
---- rsyslog-7.4.4.orig/runtime/msg.c	2013-09-03 12:31:42.000000000 +0200
-+++ rsyslog-7.4.4/runtime/msg.c	2015-01-12 16:12:00.403592142 +0100
+diff --git a/runtime/msg.c b/runtime/msg.c
+index d04ce7b..b367e1f 100644
+--- a/runtime/msg.c
++++ b/runtime/msg.c
 @@ -41,9 +41,9 @@
  #endif
  #include <netdb.h>
@@ -38,7 +40,7 @@ diff -uNr rsyslog-7.4.4.orig/runtime/msg.c rsyslog-7.4.4/runtime/msg.c
 -#include <json.h>
 +#include <json-c/json.h>
  /* For struct json_object_iter, should not be necessary in future versions */
--#include <json/json_object_private.h>
+-#include <json_object_private.h>
 +#include <json-c/json_object_private.h>
  #if HAVE_MALLOC_H
  #  include <malloc.h>
meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog-use-serial-tests-config-needed-by-ptest.patch deleted +0 -28
deleted file mode 100644
index 3a16f26..0000000
@@ -1,28 +0,0 @@
-Subject: [PATCH] rsyslog: use serial-tests config needed by ptest
-
-ptest needs buildtest-TESTS and runtest-TESTS targets.
-serial-tests is required to generate those targets.
-
-Upstream-Status: Inappropriate [default automake behavior incompatible with ptest]
-
-Signed-off-by: Jackie Huang <[email protected]>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1b880f8..0e29742 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -3,7 +3,7 @@
- 
- AC_PREREQ(2.61)
- AC_INIT([rsyslog],[7.4.4],[[email protected]])
--AM_INIT_AUTOMAKE
-+AM_INIT_AUTOMAKE([serial-tests])
- 
- m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
- 
--- 
-2.0.0
-
meta-oe/recipes-extended/rsyslog/rsyslog_7.6.1.bb renamed from meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb +4 -7
similarity index 93%
rename from meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb
rename to meta-oe/recipes-extended/rsyslog/rsyslog_7.6.1.bb
index 9c85a41..15b0f29 100644
@@ -9,7 +9,7 @@ Rsyslog is an enhanced syslogd supporting, among others, MySQL,\
  encryption protected syslog relay chains while at the same time being\
  very easy to setup for the novice user."
 
-DEPENDS = "zlib libestr json-c bison-native flex-native"
+DEPENDS = "zlib libestr json-c bison-native flex-native liblogging"
 HOMEPAGE = "http://www.rsyslog.com/"
 LICENSE = "GPLv3 & LGPLv3 & Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973 \
@@ -17,21 +17,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973 \
                     file://COPYING.ASL20;md5=052f8a09206615ab07326ff8ce2d9d32\
 "
 
-SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${BPN}-${PV}.tar.gz \
+SRC_URI = "http://www.rsyslog.com/download/files/download/rsyslog/${BPN}-${PV}.tar.gz \
            file://initscript \
            file://rsyslog.conf \
            file://rsyslog.logrotate \
            file://use-pkgconfig-to-check-libgcrypt.patch \
            file://run-ptest \
            file://rsyslog-fix-ptest-not-finish.patch \
-           file://rsyslog-use-serial-tests-config-needed-by-ptest.patch \
            file://json-0.12-fix.patch \
-           file://0001-bugfix-potential-abort-during-HUP.patch \
-           file://0001-remove-memleak-introduced-by-GenerateLocalHostName-H.patch \
 "
 
-SRC_URI[md5sum] = "ebcc010a6205c28eb505c0fe862f32c6"
-SRC_URI[sha256sum] = "276d094d1e4c62c770ec8a72723667f119eee038912b79cf3337d439bc2f9087"
+SRC_URI[md5sum] = "093c462a5245012bd9e7b82dd8aedffb"
+SRC_URI[sha256sum] = "357f089d866c351d5fe5b7139fa85b010223d77b3c21f29b2a1baa8688926111"
 
 inherit autotools pkgconfig systemd update-rc.d update-alternatives ptest
 
Signature · 1 line
1.9.1