ncftp: update for autoconf changes in core
PATCH 1/4 ncftp: update for autoconf changes in core
ACLOCALEXTRAPATH is no longer used, so pass the required -I via EXTRA_AUTORECONF.
Also explicitly disable aclocal as the aclocal is hand-maintained.
--- meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb +2 -1
@@ -12,6 +12,7 @@ SRC_URI = "https://www.ncftp.com/public_ftp/ncftp/${BP}-src.tar.xz \ " SRC_URI[sha256sum] = "d41c5c4d6614a8eae2ed4e4d7ada6b6d3afcc9fb65a4ed9b8711344bef24f7e8" +# Doesn't use automake inherit autotools-brokensep pkgconfig CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall"
@@ -19,8 +20,8 @@ CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall" PACKAGECONFIG ??= "" PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,," +EXTRA_AUTORECONF += "--exclude=aclocal -I ${S}/autoconf_local" EXTRA_OECONF = "--disable-precomp --disable-universal ac_cv_path_TAR=tar" -ACLOCALEXTRAPATH:append = " -I ${S}/autoconf_local" do_install () { install -d ${D}${bindir} ${D}${sysconfdir} ${D}${mandir}
Signature · 1 line
2.43.0
PATCH 2/4 php: cleanup autoconf fettling
This autoconf manipulation is very old and appears to be obsolete now.
--- meta-oe/recipes-devtools/php/php_8.2.26.bb | 8 -------- 1 file changed, 8 deletions(-)
meta-oe/recipes-devtools/php/php_8.2.26.bb +0 -8
@@ -136,10 +136,7 @@ LDFLAGS:append:riscv64 = " -latomic" EXTRA_OEMAKE = "INSTALL_ROOT=${D}" -acpaths = "" - do_configure:prepend () { - rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4 find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_SBINDIR_NATIVE}/httpd!' }
@@ -162,11 +159,6 @@ do_install:append:class-native() { rm -rf ${D}/${PHP_LIBDIR}/php/.[a-z]* } -do_install:prepend() { - cat ${ACLOCALDIR}/libtool.m4 ${ACLOCALDIR}/lt~obsolete.m4 ${ACLOCALDIR}/ltoptions.m4 \ - ${ACLOCALDIR}/ltsugar.m4 ${ACLOCALDIR}/ltversion.m4 > ${S}/build/libtool.m4 -} - do_install:prepend:class-target() { if ${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'true', 'false', d)}; then # Install dummy config file so apxs doesn't fail
Signature · 1 line
2.43.0
Re: [oe] [PATCH 2/4] php: cleanup autoconf fettling
this fails to buld php-native
https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/1287806/raw
Quoted 47 lines · Ross Burton via lists.openembedded.org
This autoconf manipulation is very old and appears to be obsolete now.
Signed-off-by Ross Burton <[email protected]>--- meta-oe/recipes-devtools/php/php_8.2.26.bb | 8 -------- 1 file changed, 8 deletions(-)meta-oe/recipes-devtools/php/php_8.2.26.bb +0
-9@@ -136,10 +136,7 @@ LDFLAGS:append:riscv64 = " -latomic" EXTRA_OEMAKE = "INSTALL_ROOT=${D}" -acpaths = "" - do_configure:prepend () { - rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4 find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_SBINDIR_NATIVE}/httpd!' }@@ -162,11 +159,6 @@ do_install:append:class-native() { rm -rf ${D}/${PHP_LIBDIR}/php/.[a-z]* } -do_install:prepend() { - cat ${ACLOCALDIR}/libtool.m4 ${ACLOCALDIR}/lt~obsolete.m4 ${ACLOCALDIR}/ltoptions.m4 \ - ${ACLOCALDIR}/ltsugar.m4 ${ACLOCALDIR}/ltversion.m4 > ${S}/build/libtool.m4 -} - do_install:prepend:class-target() { if ${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'true', 'false', d)}; then # Install dummy config file so apxs doesn't fail --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#115063): https://lists.openembedded.org/g/openembedded-devel/message/115063
Mute This Topic: https://lists.openembedded.org/mt/110790897/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/4 syslog-ng: remove obsolete double-run of configure
In reply to Ross BurtonThere do not appear to be libtool problems with syslog-ng, so the requirement to double-run autoreconf from 2017 must have been resolved.
--- meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb | 9 --------- 1 file changed, 9 deletions(-)
meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb +0 -9
@@ -64,15 +64,6 @@ PACKAGECONFIG[tcp-wrapper] = "--enable-tcp-wrapper,--disable-tcp-wrapper,tcp-wra PACKAGECONFIG[geoip] = "--enable-geoip,--disable-geoip,geoip," PACKAGECONFIG[native] = "--enable-native,--disable-native,," -do_configure:prepend() { - olddir=$(pwd) - cd ${AUTOTOOLS_SCRIPT_PATH} - - ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} -I ${S}/m4 ${ACLOCALEXTRAPATH} || die "extra autoreconf execution failed." - - cd $olddir -} - do_install:append() { install -d ${D}${sysconfdir}/${BPN} install -d ${D}${sysconfdir}/init.d
Signature · 1 line
2.43.0
PATCH 4/4 ntp: set CONFIG_SITE in do_compile
In reply to Ross BurtonRecent 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.
--- meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb +5 -0
@@ -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 \
Signature · 1 line
2.43.0
Re: [oe] [PATCH 4/4] ntp: set CONFIG_SITE in do_compile
Quoted 4 lines · Ross Burton via lists.openembedded.org
Recent changes in to the autotools class in core means that it no longer sets
CONFIG_SITEfor compile tasks. However, ntp decides to reconfigure itself mid-build, so theCONFIG_SITEvalues are lost.
This looks ok but larger question is have we looked at other recipes which maybe doing this eg I remember gcc and binutils do call configure scripts doing make
What is the advantage of hiding site config from compile tasks ?
Quoted 39 lines
Signed-off-by Ross Burton <[email protected]>--- meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb | 5 +++++ 1 file changed, 5 insertions(+)meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb +1
-0@@ -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 filesin
meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb +4
-1+# 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 \ --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#115065):
https://lists.openembedded.org/g/openembedded-devel/message/115065
Mute This Topic: https://lists.openembedded.org/mt/110790899/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 4/4] ntp: set CONFIG_SITE in do_compile
Quoted 8 lines · Khem Raj
On Fri, Jan 24, 2025 at 6:34 AM Ross Burton via lists.openembedded.org <[email protected]> wrote:
Recent changes in to the autotools class in core means that it no longer
setsCONFIG_SITEfor compile tasks. However, ntp decides to reconfigure
itself mid-build, so theCONFIG_SITEvalues are lost.This looks ok but larger question is have we looked at other recipes which maybe doing this eg I remember gcc and binutils do call configure scripts doing make
What is the advantage of hiding site config from compile tasks ?
My main reason was “why the hell are people running configure in do_compile, that’s broken and should be fixed”.
If you have a world build to hand it would be interesting to see how many compile logs have a reconfigure in.
Ross