From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 11/30] sysklogd: Fix 2.0.3 upgrade fallouts on musl
Date: Thu, 12 Dec 2019 19:14:17 +0100 [thread overview]
Message-ID: <20191212181436.1322-11-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20191212181436.1322-1-alex.kanavin@gmail.com>
From: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
---
...001-Remove-__BEGIN_DECLS-__END_DECLS.patch | 44 +++++++++++++++++++
.../0002-include-sys-types.h-for-off_t.patch | 29 ++++++++++++
meta/recipes-extended/sysklogd/sysklogd.inc | 2 +
3 files changed, 75 insertions(+)
create mode 100644 meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch
create mode 100644 meta/recipes-extended/sysklogd/files/0002-include-sys-types.h-for-off_t.patch
diff --git a/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch b/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch
new file mode 100644
index 00000000000..b2d45c0a0a6
--- /dev/null
+++ b/meta/recipes-extended/sysklogd/files/0001-Remove-__BEGIN_DECLS-__END_DECLS.patch
@@ -0,0 +1,44 @@
+From 8c7995ac8da99eed55bf5410c558b1f0a74998d0 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 7 Dec 2019 10:27:28 -0800
+Subject: [PATCH 1/2] Remove __BEGIN_DECLS/__END_DECLS
+
+The __BEGIN_DECLS and __END_DECLS are internal identifiers in glibc and
+are not defined in any standard. Using them fails build on musl
+libc, its better to avoid them
+
+Upstream-Status: Submitted [https://github.com/troglobit/sysklogd/pull/10]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/syslog.h | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/src/syslog.h b/src/syslog.h
+index 4fb7627..120a18f 100644
+--- a/src/syslog.h
++++ b/src/syslog.h
+@@ -221,7 +221,9 @@ struct syslog_data {
+ .log_mask = 0xff, \
+ }
+
+-__BEGIN_DECLS
++#ifdef __cplusplus
++extern "C" {
++#endif
+ void openlog (const char *, int, int);
+ void closelog (void);
+
+@@ -245,7 +247,9 @@ void syslogp_r (int, struct syslog_data *, const char *, const char *,
+ const char *, ...);
+ void vsyslogp_r (int, struct syslog_data *, const char *, const char *,
+ const char *, va_list);
+-__END_DECLS
++#ifdef __cplusplus
++}
++#endif
+
+ #else /* !__KERNEL__ */
+
+--
+2.24.0
+
diff --git a/meta/recipes-extended/sysklogd/files/0002-include-sys-types.h-for-off_t.patch b/meta/recipes-extended/sysklogd/files/0002-include-sys-types.h-for-off_t.patch
new file mode 100644
index 00000000000..799a7a4c4cd
--- /dev/null
+++ b/meta/recipes-extended/sysklogd/files/0002-include-sys-types.h-for-off_t.patch
@@ -0,0 +1,29 @@
+From 10cff4ba2d09b30f8f1967f910e8ab08447a8add Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 7 Dec 2019 10:31:04 -0800
+Subject: [PATCH 2/2] include sys/types.h for off_t
+
+Fixes
+error: unknown type name 'off_t'
+
+Upstream-Status: Submitted [https://github.com/troglobit/sysklogd/pull/10]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/compat.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/compat.h b/src/compat.h
+index a867636..1ef1bf0 100644
+--- a/src/compat.h
++++ b/src/compat.h
+@@ -34,6 +34,7 @@
+ #include <pthread.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ /*
+ * The following macro is used to remove const cast-away warnings
+--
+2.24.0
+
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc
index b90911af2b7..07edf403266 100644
--- a/meta/recipes-extended/sysklogd/sysklogd.inc
+++ b/meta/recipes-extended/sysklogd/sysklogd.inc
@@ -14,6 +14,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
inherit update-rc.d update-alternatives systemd autotools
SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \
+ file://0001-Remove-__BEGIN_DECLS-__END_DECLS.patch \
+ file://0002-include-sys-types.h-for-off_t.patch \
file://sysklogd \
"
S = "${WORKDIR}/git"
--
2.17.1
next prev parent reply other threads:[~2019-12-12 18:14 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-12 18:14 [PATCH 01/30] rpm: upgrade to 4.15.1 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 02/30] gettext-minimal-native: update to 0.20.1 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 03/30] gettext: " Alexander Kanavin
2019-12-15 11:03 ` Richard Purdie
2019-12-16 13:25 ` Alexander Kanavin
2019-12-17 16:02 ` Alexander Kanavin
2019-12-20 8:18 ` Khem Raj
2019-12-20 13:10 ` Alexander Kanavin
2020-01-01 3:47 ` Khem Raj
2019-12-12 18:14 ` [PATCH 04/30] psmisc: revert to default autopoint exclusion Alexander Kanavin
2019-12-12 18:14 ` [PATCH 05/30] gettext: fix failing ptests Alexander Kanavin
2019-12-12 18:14 ` [PATCH 06/30] python3: update to 3.8.0 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 07/30] gstreamer1.0-python: add a patch to fix python 3.8 builds Alexander Kanavin
2019-12-15 5:21 ` Khem Raj
2019-12-15 11:00 ` Alexander Kanavin
2019-12-15 17:06 ` Khem Raj
2019-12-15 17:12 ` Alexander Kanavin
2019-12-15 17:32 ` Khem Raj
2019-12-15 17:52 ` Carlos Rafael Giani
2019-12-15 18:10 ` Alexander Kanavin
2019-12-12 18:14 ` [PATCH 08/30] shadow: update 4.6 -> 4.8 Alexander Kanavin
2019-12-17 8:51 ` Richard Purdie
2019-12-12 18:14 ` [PATCH 09/30] sysklogd: update to 2.0.3 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 10/30] libtasn1: update to 4.15.0 Alexander Kanavin
2019-12-17 8:53 ` Richard Purdie
2019-12-12 18:14 ` Alexander Kanavin [this message]
2019-12-12 18:14 ` [PATCH 12/30] dos2unix: update to 7.4.1 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 13/30] puzzles: update to latest revision Alexander Kanavin
2019-12-12 18:14 ` [PATCH 14/30] glide: update to 0.13.3 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 15/30] bluez: update 5.50 -> 5.52 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 16/30] bluez5: disable debug output in ptests Alexander Kanavin
2019-12-12 18:14 ` [PATCH 17/30] libxml2: update to 2.9.10 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 18/30] parted: update 3.2->3.3 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 19/30] acl/attr: update to latest upstream releases Alexander Kanavin
2019-12-14 20:24 ` Khem Raj
2019-12-14 20:48 ` Alexander Kanavin
2019-12-12 18:14 ` [PATCH 20/30] lttng-modules: update to 2.11.0 Alexander Kanavin
2019-12-15 12:53 ` Richard Purdie
2019-12-15 16:20 ` Alexander Kanavin
2019-12-15 16:27 ` Bruce Ashfield
2019-12-15 16:45 ` Alexander Kanavin
2019-12-15 17:16 ` Richard Purdie
2019-12-15 17:24 ` Alexander Kanavin
2019-12-12 18:14 ` [PATCH 21/30] lttng-ust: " Alexander Kanavin
2019-12-15 5:26 ` Khem Raj
2019-12-12 18:14 ` [PATCH 22/30] lttng-tools: " Alexander Kanavin
2019-12-12 18:14 ` [PATCH 23/30] cups: update to 2.3.0 Alexander Kanavin
2019-12-13 2:55 ` Mittal, Anuj
2019-12-13 11:50 ` Alexander Kanavin
2019-12-12 18:14 ` [PATCH 24/30] man-pages: update to 5.04 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 25/30] man-db: update to 2.9.0 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 26/30] ltp: update to 20190930 Alexander Kanavin
2019-12-15 5:32 ` Khem Raj
2019-12-15 11:02 ` Alexander Kanavin
2019-12-15 17:11 ` Khem Raj
2019-12-15 17:15 ` Alexander Kanavin
2019-12-12 18:14 ` [PATCH 27/30] cpio: update to 2.13 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 28/30] sudo: update to 1.8.29 Alexander Kanavin
2019-12-12 18:14 ` [PATCH 29/30] nfs-utils: update to 2.4.2 Alexander Kanavin
2019-12-15 5:23 ` Khem Raj
2019-12-12 18:14 ` [PATCH 30/30] debianutils: update to 4.9.1 Alexander Kanavin
2019-12-12 18:32 ` ✗ patchtest: failure for "rpm: upgrade to 4.15.1..." and 29 more Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191212181436.1322-11-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.