Bug 2144802 - FTBFS with autoconf 2.72
Summary: FTBFS with autoconf 2.72
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: firebird
Version: rawhide
Hardware: Unspecified
OS: All
unspecified
unspecified
Target Milestone: ---
Assignee: Philippe Makowski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: Autoconf2.72
TreeView+ depends on / blocked
 
Reported: 2022-11-22 11:11 UTC by Frédéric Bérat
Modified: 2022-11-24 14:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-24 14:02:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frédéric Bérat 2022-11-22 11:11:53 UTC
Autoconf 2.72 seems to be under preparation upstream, I therefore started to build dependent components to verify that they can be built once it lands in Fedora.

Your component fails to build with the new version of autoconf, due to the following error:

---
checking for cc_r... gcc
./configure: line 5993: syntax error near unexpected token `;;'
./configure: line 5993: `printf "%s\n" "$as_me: WARNING: --with-system-editline specified, not found. Using bundled editline" >&2;} ;;'
error: Bad exit status from /var/tmp/rpm-tmp.yKcOUe (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.yKcOUe (%build)
Child return code was: 1
---

The error is due to a misplace 'fi' in configure.ac.

The proposed patch is the following:

---
diff -r -U5 Firebird-4.0.2.2816-0/configure.ac Firebird-4.0.2.2816-0.new/configure.ac
--- Firebird-4.0.2.2816-0/configure.ac	2022-11-22 12:03:35.566718554 +0100
+++ Firebird-4.0.2.2816-0.new/configure.ac	2022-11-22 12:03:28.606705774 +0100
@@ -652,12 +652,13 @@
   AC_CHECK_LIB(edit, readline, [READLINE=edit EDITLINE_FLG=Y],
     AC_CHECK_LIB(editline, readline, [READLINE=editline EDITLINE_FLG=Y],
       AC_CHECK_LIB(readline, readline, [READLINE=readline EDITLINE_FLG=Y],
         [STD_EDITLINE=false
          if test "$EDITLINE_FLG" = "Y"; then
-           AC_MSG_WARN([[[--with-system-editline specified, not found. Using bundled editline]]])])))
+           AC_MSG_WARN([[[--with-system-editline specified, not found. Using bundled editline]]])
 		 fi
+           ])))
 fi
 XE_RESTORE_ENV()
 
 AC_SUBST(READLINE)
 AC_SUBST(STD_EDITLINE)
---

Please have a look and get it fixed upstream.

Comment 1 Philippe Makowski 2022-11-24 14:02:11 UTC
Reported and fixed upstream
https://github.com/FirebirdSQL/firebird/issues/7394


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