diff options
| -rw-r--r-- | meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch | 60 | ||||
| -rw-r--r-- | meta-oe/recipes-benchmark/iperf2/iperf2_2.2.1.bb (renamed from meta-oe/recipes-benchmark/iperf2/iperf2_2.0.13.bb) | 3 |
2 files changed, 1 insertions, 62 deletions
diff --git a/meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch b/meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch deleted file mode 100644 index dc3b85f8ef..0000000000 --- a/meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | From 6df092a4153c6c37cfaddcabf2cd25a910a7f6e1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 2 Sep 2019 15:40:52 -0700 | ||
| 4 | Subject: [PATCH] Detect bool definition considering stdbool.h being present | ||
| 5 | |||
| 6 | This helps in defining the value correctly on different platforms e.g. | ||
| 7 | clang/libc++ depends on the definition coming from stdbool.h | ||
| 8 | current builds fail to compile therefore | ||
| 9 | |||
| 10 | TMPDIR/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/iperf2/2.0.13-r0/recipe-sysroot/usr/include/c++/v1/type_traits:742:29: error: redefinition of '__libcpp_is_integral<int>' | ||
| 11 | template <> struct __libcpp_is_integral<int> : public true_type {}; | ||
| 12 | ^~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 13 | |||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | Upstream-Status: Pending | ||
| 17 | |||
| 18 | m4/dast.m4 | 7 ++++++- | ||
| 19 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
| 20 | |||
| 21 | --- a/m4/dast.m4 | ||
| 22 | +++ b/m4/dast.m4 | ||
| 23 | @@ -11,7 +11,12 @@ AH_TEMPLATE([false]) | ||
| 24 | |||
| 25 | AC_DEFUN(DAST_CHECK_BOOL, [ | ||
| 26 | |||
| 27 | -AC_CHECK_SIZEOF(bool) | ||
| 28 | +if test "$ac_cv_header_stdbool_h" = yes; then | ||
| 29 | + AC_CHECK_SIZEOF(bool,,[#include <stdbool.h>]) | ||
| 30 | +else | ||
| 31 | + AC_CHECK_SIZEOF(bool) | ||
| 32 | +fi | ||
| 33 | + | ||
| 34 | if test "$ac_cv_sizeof_bool" = 0 ; then | ||
| 35 | AC_DEFINE(bool, int) | ||
| 36 | fi | ||
| 37 | --- a/configure.ac | ||
| 38 | +++ b/configure.ac | ||
| 39 | @@ -113,7 +113,7 @@ AC_SEARCH_LIBS([socket], [socket], [], | ||
| 40 | |||
| 41 | dnl Checks for header files. | ||
| 42 | AC_HEADER_STDC | ||
| 43 | -AC_CHECK_HEADERS([arpa/inet.h libintl.h net/ethernet.h net/if.h linux/ip.h linux/udp.h linux/if_packet.h linux/filter.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h signal.h ifaddrs.h]) | ||
| 44 | +AC_CHECK_HEADERS([arpa/inet.h libintl.h net/ethernet.h net/if.h linux/ip.h linux/udp.h linux/if_packet.h linux/filter.h netdb.h netinet/in.h stdbool.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h signal.h ifaddrs.h]) | ||
| 45 | |||
| 46 | dnl =================================================================== | ||
| 47 | dnl Checks for typedefs, structures | ||
| 48 | --- a/include/util.h | ||
| 49 | +++ b/include/util.h | ||
| 50 | @@ -56,7 +56,9 @@ | ||
| 51 | #ifdef HAVE_CONFIG_H | ||
| 52 | #include "config.h" | ||
| 53 | #endif | ||
| 54 | - | ||
| 55 | +#ifdef HAVE_STDBOOL_H | ||
| 56 | +# include <stdbool.h> | ||
| 57 | +#endif | ||
| 58 | #ifdef __cplusplus | ||
| 59 | extern "C" { | ||
| 60 | #endif | ||
diff --git a/meta-oe/recipes-benchmark/iperf2/iperf2_2.0.13.bb b/meta-oe/recipes-benchmark/iperf2/iperf2_2.2.1.bb index 7b3d23a53f..a439616ba4 100644 --- a/meta-oe/recipes-benchmark/iperf2/iperf2_2.0.13.bb +++ b/meta-oe/recipes-benchmark/iperf2/iperf2_2.2.1.bb | |||
| @@ -5,10 +5,9 @@ LICENSE = "BSD-2-Clause" | |||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=e136a7b2560d80bcbf0d9b3e1356ecff" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=e136a7b2560d80bcbf0d9b3e1356ecff" |
| 6 | 6 | ||
| 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/iperf-${PV}.tar.gz \ | 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/iperf-${PV}.tar.gz \ |
| 8 | file://0001-Detect-bool-definition-considering-stdbool.h-being-p.patch \ | ||
| 9 | " | 8 | " |
| 10 | 9 | ||
| 11 | SRC_URI[sha256sum] = "c88adec966096a81136dda91b4bd19c27aae06df4d45a7f547a8e50d723778ad" | 10 | SRC_URI[sha256sum] = "754ab0a7e28033dbea81308ef424bc7df4d6e2fe31b60cc536b61b51fefbd8fb" |
| 12 | 11 | ||
| 13 | S = "${WORKDIR}/iperf-${PV}" | 12 | S = "${WORKDIR}/iperf-${PV}" |
| 14 | 13 | ||
