diff options
-rw-r--r-- | meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch | 37 | ||||
-rw-r--r-- | meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch b/meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch new file mode 100644 index 0000000000..815939b82d --- /dev/null +++ b/meta-oe/recipes-support/rdfind/rdfind/0001-configure.ac-fix-C-11-support-check.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 9070bc210b2ecff641b73e4ade30040c1461969c Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Wed, 3 May 2023 18:31:57 +0200 | ||
4 | Subject: [PATCH] configure.ac: fix C++11 support check | ||
5 | |||
6 | * with -Werror=return-type in CFLAGS this test fails with: | ||
7 | |||
8 | configure:4290: checking for C++11 support or better | ||
9 | configure:4303: x86_64-webos-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/rdfind-1.5.0=/usr/src/debug/rdfind/1.5.0-r0 -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/rdfind-1.5.0=/usr/src/debug/rdfind/1.5.0-r0 -fmacro-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/build=/usr/src/debug/rdfind/1.5.0-r0 -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/build=/usr/src/debug/rdfind/1.5.0-r0 -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/mickledore/BUILD/work/qemux86_64-webos-linux/rdfind/1.5.0-r0/recipe-sysroot-native= -fvisibility-inlines-hidden conftest.cpp >&5 | ||
10 | conftest.cpp: In function 'int f()': | ||
11 | conftest.cpp:22:20: error: no return statement in function returning non-void [-Werror=return-type] | ||
12 | 22 | int f() { auto a=1;} | ^ | ||
13 | cc1plus: some warnings being treated as errors | ||
14 | ... | ||
15 | configure:4308: error: no c++11 support, please set CXXFLAGS properly | ||
16 | |||
17 | * fix the test to pass | ||
18 | |||
19 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
20 | Upstream-Status: Submitted [https://github.com/pauldreik/rdfind/pull/132] | ||
21 | --- | ||
22 | configure.ac | 2 +- | ||
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/configure.ac b/configure.ac | ||
26 | index be1b2fd..9c3513c 100644 | ||
27 | --- a/configure.ac | ||
28 | +++ b/configure.ac | ||
29 | @@ -64,7 +64,7 @@ AC_SYS_LARGEFILE | ||
30 | |||
31 | dnl make sure we have c++11 or better, | ||
32 | AC_MSG_CHECKING([for C++11 support or better]) | ||
33 | -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int f() { auto a=1;}])], | ||
34 | +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int f() { auto a=1;return a;}])], | ||
35 | [AC_MSG_RESULT([yes])], | ||
36 | [AC_MSG_ERROR([no c++11 support, please set CXXFLAGS properly])]) | ||
37 | |||
diff --git a/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb b/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb index 8f2c5e8852..dab66c3827 100644 --- a/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb +++ b/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb | |||
@@ -8,6 +8,7 @@ DEPENDS = "nettle autoconf-archive" | |||
8 | SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \ | 8 | SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \ |
9 | file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \ | 9 | file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \ |
10 | file://0001-include-standard-headers-limits-and-cstdint.patch \ | 10 | file://0001-include-standard-headers-limits-and-cstdint.patch \ |
11 | file://0001-configure.ac-fix-C-11-support-check.patch \ | ||
11 | " | 12 | " |
12 | 13 | ||
13 | SRC_URI[sha256sum] = "4150ed1256f7b12b928c65113c485761552b9496c433778aac3f9afc3e767080" | 14 | SRC_URI[sha256sum] = "4150ed1256f7b12b928c65113c485761552b9496c433778aac3f9afc3e767080" |