diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-03-24 13:08:26 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-03-24 13:08:26 +0000 |
| commit | 63d12d2a08207d5902a7e9a00bd254342eab67f7 (patch) | |
| tree | 800851fd20d0523971b0068cd4725f5f776a067e | |
| parent | 067a6eb00502ca4c1805dfa25a403e3a0c2f99b6 (diff) | |
| download | meta-virtualization-63d12d2a08207d5902a7e9a00bd254342eab67f7.tar.gz | |
diod: fix build with lua 5.5 and gcc 15
Bump the lua max-version check from 5.5 to 5.6 in the pkg-config
patch to allow lua 5.5.0 from OE-core.
Add -Wno-error=discarded-qualifiers to CFLAGS to work around gcc 15
being stricter about const qualifiers in strchr return values. The
upstream code uses -Werror which makes this fatal.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/diod/diod_git.bb | 3 | ||||
| -rw-r--r-- | recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/recipes-extended/diod/diod_git.bb b/recipes-extended/diod/diod_git.bb index bc878cb5..0e2043ec 100644 --- a/recipes-extended/diod/diod_git.bb +++ b/recipes-extended/diod/diod_git.bb | |||
| @@ -20,6 +20,9 @@ DEPENDS = "libcap ncurses lua" | |||
| 20 | EXTRA_OECONF = "--disable-auth \ | 20 | EXTRA_OECONF = "--disable-auth \ |
| 21 | --with-systemdsystemunitdir=${systemd_unitdir}/system" | 21 | --with-systemdsystemunitdir=${systemd_unitdir}/system" |
| 22 | 22 | ||
| 23 | # GCC 15 is stricter about const qualifiers; upstream uses -Werror | ||
| 24 | CFLAGS += "-Wno-error=discarded-qualifiers" | ||
| 25 | |||
| 23 | inherit autotools pkgconfig systemd | 26 | inherit autotools pkgconfig systemd |
| 24 | 27 | ||
| 25 | do_install:append () { | 28 | do_install:append () { |
diff --git a/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch b/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch index 9f61792a..0f4049b6 100644 --- a/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch +++ b/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch | |||
| @@ -11,11 +11,11 @@ Upstream-Status: Inappropriate (Embedded specific) | |||
| 11 | configure.ac | 26 +++++++++++++++++++++++++- | 11 | configure.ac | 26 +++++++++++++++++++++++++- |
| 12 | 1 file changed, 25 insertions(+), 1 deletion(-) | 12 | 1 file changed, 25 insertions(+), 1 deletion(-) |
| 13 | 13 | ||
| 14 | diff --git a/configure.ac b/configure.ac | 14 | Index: diod-1.1.0+git/configure.ac |
| 15 | index e8fcdb2..f3ebdc5 100644 | 15 | =================================================================== |
| 16 | --- a/configure.ac | 16 | --- diod-1.1.0+git.orig/configure.ac |
| 17 | +++ b/configure.ac | 17 | +++ diod-1.1.0+git/configure.ac |
| 18 | @@ -121,7 +121,31 @@ AC_ARG_ENABLE([config], | 18 | @@ -138,7 +138,31 @@ AC_ARG_ENABLE([config], |
| 19 | [AS_HELP_STRING([--disable-config], [disable lua config file support])]) | 19 | [AS_HELP_STRING([--disable-config], [disable lua config file support])]) |
| 20 | 20 | ||
| 21 | AS_IF([test "x$enable_config" != "xno"], [ | 21 | AS_IF([test "x$enable_config" != "xno"], [ |
| @@ -27,7 +27,7 @@ index e8fcdb2..f3ebdc5 100644 | |||
| 27 | + dnl AX_LUA_LIBS are still usable. | 27 | + dnl AX_LUA_LIBS are still usable. |
| 28 | + PKG_CHECK_EXISTS([lua], [ | 28 | + PKG_CHECK_EXISTS([lua], [ |
| 29 | + AS_IF([ | 29 | + AS_IF([ |
| 30 | + $PKG_CONFIG --atleast-version=5.1 lua && $PKG_CONFIG --max-version=5.5 lua | 30 | + $PKG_CONFIG --atleast-version=5.1 lua && $PKG_CONFIG --max-version=5.6 lua |
| 31 | + ],[ | 31 | + ],[ |
| 32 | + AC_ARG_VAR([LUA], [The LUA interpreter, e.g. /usr/bin/lua5.1]) | 32 | + AC_ARG_VAR([LUA], [The LUA interpreter, e.g. /usr/bin/lua5.1]) |
| 33 | + dnl should really check that the file exists ... | 33 | + dnl should really check that the file exists ... |
