Hi Richard, On 19-May-25 4:22 PM, Richard W.M. Jones wrote: > > Seemingly because of gettext 1.25 that was recently added to Fedora > Rawhide, I'm now getting the error below. This also breaks all builds > of libguestfs and related tools in Rawhide. > > $ autoreconf -fiv > autoreconf: export WARNINGS= > autoreconf: Entering directory '.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal --force -I m4 > m4/guestfs-libraries.m4:158: warning: macro 'AM_GNU_GETTEXT' not found in > library > autoreconf: configure.ac: tracing > autoreconf: running: libtoolize --copy --force > libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. > libtoolize: copying file 'build-aux/ltmain.sh' > libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. > libtoolize: copying file 'm4/libtool.m4' > libtoolize: copying file 'm4/ltoptions.m4' > libtoolize: copying file 'm4/ltsugar.m4' > libtoolize: copying file 'm4/ltversion.m4' > libtoolize: copying file 'm4/lt~obsolete.m4' > autoreconf: configure.ac: not using Intltool > autoreconf: configure.ac: not using Gtkdoc > autoreconf: running: aclocal --force -I m4 > m4/guestfs-libraries.m4:158: warning: macro 'AM_GNU_GETTEXT' not found in > library > autoreconf: running: /usr/bin/autoconf --force > configure:19161: error: possibly undefined macro: AM_GNU_GETTEXT > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > autoreconf: error: /usr/bin/autoconf failed with exit status: 1 > > (https://github.com/libguestfs/libguestfs/blob/master/configure.ac) > > It's been giving the warning for a while, but now it's a hard error. > > I have no idea how to fix that. (The suggestion to use > m4_pattern_allow doesn't sound like a good idea...)
I just hit the same problem when trying to fix some F42 FTBFS bugs, I had them fixed for F42 but the rawhide builds failed. This is caused by the gettext.m4 & friends files no longer being under /usr/share/aclocal/ instead they are now under /usr/share/gettext/m4 See: https://bugzilla.redhat.com/show_bug.cgi?id=2366708 According to upstream the change is deliberate and their seems to be no plan to revert this. A workaround (which I'm using) is to add the following line to the .spec file before calling "./bootstrap", "autoreconf -ivf" or something similar: export ACLOCAL_PATH=/usr/share/gettext/m4/ Regards, Hans > > Rich. > -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue