Bug 2264449

Summary: FTBFS with autoconf 2.72
Product: [Fedora] Fedora Reporter: Frédéric Bérat <fberat>
Component: wxGTKAssignee: Scott Talbert <swt>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: alexjnewt, mattdm, swt
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-16 00:49:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2143303    

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