libbsd: Make it build with GCC 5.0 and older
PATCH 1/1 libbsd: Make it build with GCC 5.0 and older
---
This hit us when building master and Rocko with GCC 4.7.2...
...r-older-GCCs-not-supporting-__has_include.patch | 30 ++++++++++++++++++++++ meta/recipes-support/libbsd/libbsd_0.8.6.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch
meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 2fbf47ce9b64f4e07be223bc2870348a68f19d86 Mon Sep 17 00:00:00 2001 +From: Adam Lackorzynski <[email protected]> +Date: Sat, 21 Oct 2017 23:08:31 +0200 +Subject: [PATCH] Fix for older GCCs not supporting __has_include* + +Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=103396] +--- + include/bsd/sys/cdefs.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/bsd/sys/cdefs.h b/include/bsd/sys/cdefs.h +index 044f221..b4c8f30 100644 +--- a/include/bsd/sys/cdefs.h ++++ b/include/bsd/sys/cdefs.h +@@ -25,10 +25,10 @@ + */ + + #ifndef __has_include +-#define __has_include 1 ++#define __has_include(x) 1 + #endif + #ifndef __has_include_next +-#define __has_include_next 1 ++#define __has_include_next(x) 1 + #endif + + #ifdef LIBBSD_OVERLAY +-- +2.12.0 +
meta/recipes-support/libbsd/libbsd_0.8.6.bb +1 -0
@@ -36,6 +36,7 @@ SECTION = "libs" SRC_URI = " \ http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ file://0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch \ + file://0001-Fix-for-older-GCCs-not-supporting-__has_include.patch \ " SRC_URI_append_libc-musl = " \ file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \
Signature · 1 line
2.12.0
✗ patchtest: failure for libbsd: Make it build with GCC 5.0 and older
== Series Details ==
Series: libbsd: Make it build with GCC 5.0 and older
Revision: 1
URL : https://patchwork.openembedded.org/series/10050/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue A patch file has been added, but does not have a Signed-off-by tag [test_signed_off_by_presence]
Suggested fix Sign off the added patch file (meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch)
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe