From c941e231adb4f68b002aa7ae2befb2b67077ec5b Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 24 Jan 2025 14:34:01 +0000 Subject: [PATCH] ntp: set CONFIG_SITE in do_compile Recent changes in to the autotools class in core means that it no longer sets CONFIG_SITE for compile tasks. However, ntp decides to reconfigure itself mid-build, so the CONFIG_SITE values are lost. Signed-off-by: Ross Burton Signed-off-by: Khem Raj --- meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb index 302cf9915f..6fae993482 100644 --- a/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb +++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb @@ -55,6 +55,11 @@ CVE_STATUS_NTP = " \ inherit autotools update-rc.d useradd systemd pkgconfig +# For some reason this recipe reconfigures the nested configure.ac files in +# do_compile because libtool.m4 is newer than aclocal.m4, and that then +# doesn't know about the site configuration. +do_compile[prefuncs] += "autotools_sitefiles" + # The ac_cv_header_readline_history is to stop ntpdc depending on either # readline or curses EXTRA_OECONF += "--with-net-snmp-config=no \