From patchwork Thu Dec 12 18:14:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 181503 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp1117521och; Thu, 12 Dec 2019 10:16:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxQVrWTTD+Qj64CKU/g1TABtn85EZs4OWJV0MOjUSpco/ImJiUxjRwPy0/hF5yfqbEPv9k/ X-Received: by 2002:a17:902:8d95:: with SMTP id v21mr10600624plo.228.1576174606919; Thu, 12 Dec 2019 10:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576174606; cv=none; d=google.com; s=arc-20160816; b=J22O/Ldzi6B5C7WWkT8jGVhe5YoLdaiQCo3g/lTznZLiULVvT3RBSu80c5GpCI4Mpi 27oGKLYGjFjpym2IOj9sY/mKv9EBVvvCMzhzsI/r/NbnjbqZSXZMfPNiCsQf0e/IiHRq 1rOGyARymqgqwCX11o47aS9y6iSghVduESDE4btxxGk4bce5NbEBnQWOkkBeJHFjmKYE lnn11KLQfy2irlnQ73CO0JxW95r89lnv1niFETJIxWoj089mbaWtZpbbBHzE1jWCOulW aOrv/Gbx74a8+DsctbOtPjuCW6QDXCMvxe6tRo4swKAq2uE3C8FprC3f6AYTw19pp5ty EGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=cL1DcPljLZx1tijk+Y9ktw/JRQQa3kgZKxEDiRrc6f8=; b=Z8lYhm09Q4lgJ6MK1al5lF/eez3WUaik4lyMn9YWd8mVHWcAx/jA5zZEGt+JerS52l xWT+ktn+047wLRTwNef/vzIejiElqYgOGBe7QGolAR8hC2kcsgQApzvXPbQlUtkop1jw 3AFj2SG3X5F5v6Pt63L4SRSssPFWl5/3bsi8bR4n7jJbPztoJkaCd7PNiS4dTKMnG7y3 Y5ZJQpf+O2HelhJo1aHgO/4CirYHsZMLJmYXYTYeRmp/YHYGTohLE+HU7oSLOnnwBYr1 zBJdEvXRDf4oUmCIrIf9HL8WROjy3w7oraOdLuXQXChbO0xL9dwu8zBUPFu79OEI+7HO iLnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Ry6nLT98; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r125si6015406pfc.246.2019.12.12.10.16.46; Thu, 12 Dec 2019 10:16:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Ry6nLT98; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 57C017FAAA; Thu, 12 Dec 2019 18:15:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 848C77FA15 for ; Thu, 12 Dec 2019 18:14:53 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id f129so3634762wmf.2 for ; Thu, 12 Dec 2019 10:14:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BBsuo2hOJ4ehNpQfkTBCG0dp/KtfljJQKl0ESedWIwE=; b=Ry6nLT98CHivwWoM0IM1CKaXQOJVHT9+9Iz0ABEP/tr+eUBWI+Lkiqn+MqbQ5uJ9qM DKKJ6b12fnPqPbkxoKB2013POwDeMXZ/mbcg1R4twK9J8/oo0TR6pPr+f+opiQ/MUIIZ /uZSmtwqR/tZ6EHKUbbqcFkby+117tMl192U2EOYjlL+5CYSfYb21TzBUGZJJCDlfiSp zcDAVKB0B90qTHGaVnlqBbV3EI/8ul0rIkQ2JEcrLpq7pdtb5HsFbw7FeKSk2/dn1X53 CareDhD7Xl+UcRYGUw3KU3Pv7wtxbAiIVZPksOmW8wRNIy02veKcHjW8WUqA12+ZhM0H B24g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BBsuo2hOJ4ehNpQfkTBCG0dp/KtfljJQKl0ESedWIwE=; b=HVUBR+o1a4nwBYX9Q8VXZ+uwyXAAkyxIdD51a0Lm2vSnBWQ6kc4vt7H//ZcEDa8f/J /GyyrYjnXk5myATHnfRscz6w3Ks5BBRV1bnhHzpPVmAflN3ZjtqHocawzSAJeMp3UkXa iieWF8pOFLxZEjARFUNdanVN9iWF+b+aThBrMhZOY2cQuKmWklfbjRsCAWFP95ndX+0p rM58aI0rJj/N7Ts+xeD8/FtO6EsHKZjMrd0d6wkm2USCLIxXll3haZoWJFWJcaUwtrC8 rMOVSXAMIRoBuY9hDjtbURutVLbePaQB8gK9hxBw0Yms5c8HlMg8Yh/KYBb8NXNKIB6l ibtA== X-Gm-Message-State: APjAAAXFR41a6LrL9h5SScDMUo22K6DXZszsIF0VuRIA0R0YxIlpwKlN WC/qqGWBdflwaoSYyZKlPyP3zuH3 X-Received: by 2002:a7b:cd82:: with SMTP id y2mr8406613wmj.58.1576174494034; Thu, 12 Dec 2019 10:14:54 -0800 (PST) Received: from alexander-box.rd.corpintra.net ([141.113.66.202]) by smtp.gmail.com with ESMTPSA id o66sm3147571wmo.20.2019.12.12.10.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 10:14:53 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Date: Thu, 12 Dec 2019 19:14:17 +0100 Message-Id: <20191212181436.1322-11-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191212181436.1322-1-alex.kanavin@gmail.com> References: <20191212181436.1322-1-alex.kanavin@gmail.com> Subject: [OE-core] [PATCH 11/30] sysklogd: Fix 2.0.3 upgrade fallouts on musl X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj Cc: Alexander Kanavin --- ...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 -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core 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 +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 +--- + 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 +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 +--- + 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 + #include + #include ++#include + + /* + * 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"