Bug 2264449 - FTBFS with autoconf 2.72
Summary: FTBFS with autoconf 2.72
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: wxGTK
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Scott Talbert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: Autoconf2.72
TreeView+ depends on / blocked
 
Reported: 2024-02-15 16:50 UTC by Frédéric Bérat
Modified: 2024-02-16 00:49 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-02-16 00:49:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frédéric Bérat 2024-02-15 16:50:46 UTC
Your component fails to build with the new version of autoconf, due to the following error:

-----------
+ mv '/builddir/build/BUILDROOT/wxGTK-3.2.4-5.fc40.x86_64/usr/bin/wxrc*' /builddir/build/BUILDROOT/wxGTK-3.2.4-5.fc40.x86_64/usr/libexec/wxGTK
mv: cannot stat '/builddir/build/BUILDROOT/wxGTK-3.2.4-5.fc40.x86_64/usr/bin/wxrc*': No such file or directory

RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.9ZGWhY (%install)
    Bad exit status from /var/tmp/rpm-tmp.9ZGWhY (%install)
-----------

This is a side effect of:

-----------
checking whether catch.hpp file exists... yes
../configure: line 48270: -v: command not found
../configure: line 48270: -v: command not found
../configure: line 48270: -v: command not found
configure: creating ./config.status
-----------

The reason for the failure is the use of `$EGREP` in configure.in whereas AC_PROG_EGREP isn't required. This didn't show up on earlier version of autoconf by luck (another macro was likely using EGREP internally that may not anymore).

Looking at the rest of the configure.in script, its use is likely an error (everywhere else `grep` is directly used).

Therefore, here is a patch proposal to fix the issue:

-----------
diff -r -U5 wxWidgets-3.2.4.old/configure.in wxWidgets-3.2.4/configure.in
--- wxWidgets-3.2.4.old/configure.in	2024-02-15 17:12:35.468556964 +0100
+++ wxWidgets-3.2.4/configure.in	2024-02-15 17:12:59.484575503 +0100
@@ -8819,11 +8819,11 @@
                 dnl any that shouldn't be built can be added to
                 dnl DISABLED_UTILS, DISABLED_DEMOS
                 disabled_var=DISABLED_`echo $subdir | tr '[[a-z]]' '[[A-Z]]'`
                 eval "disabled=\$$disabled_var"
                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
-                makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
+                makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | grep -v "$disabled"`
             fi
         else
             dnl we build wxBase only
             dnl don't take all samples/utils, just those which build with wxBase
             if test ${subdir} = "samples"; then
-----------

Reproducible: Always


Note You need to log in before you can comment on or make changes to this bug.