Bug 2147559

Summary: FTBFS with autoconf 2.72
Product: [Fedora] Fedora Reporter: Frédéric Bérat <fberat>
Component: synfigAssignee: Gwyn Ciesla <gwync>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync, lkundrak, luya_tfz
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 22:42:59 UTC Type: Bug
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 2022-11-24 09:41:11 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 FONTCONFIG_CFLAGS... -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 
checking FONTCONFIG_LIBS... -lfontconfig -lfreetype 
./configure: line 22265: syntax error near unexpected token `;;'
./configure: line 22265: `		 ;;'
error: Bad exit status from /var/tmp/rpm-tmp.ENLWto (%build)
    Bad exit status from /var/tmp/rpm-tmp.ENLWto (%build)
RPM build errors:
Child return code was: 1
---

The error is due to under-quoting of AS_IF parameters in configure.ac.

The proposed patch is the following:

---
diff -U5 -r synfig-1.5.1.old/configure.ac synfig-1.5.1/configure.ac
--- synfig-1.5.1.old/configure.ac	2022-11-24 10:38:52.696511899 +0100
+++ synfig-1.5.1/configure.ac	2022-11-24 10:39:14.000290334 +0100
@@ -256,12 +256,12 @@
 )
 
 AS_IF([test "x$with_harfbuzz" != xno],
 	[
 		AS_IF([test "x$with_freetype" != xyes],
-			AC_MSG_FAILURE(
-				[--with-harfbuzz was given, but it depends on --with-freetype])
+			[AC_MSG_FAILURE(
+				[--with-harfbuzz was given, but it depends on --with-freetype])]
 		)
 	]
 )
 
 AS_IF([test "x$with_harfbuzz" != xno],
---

Please have a look and get the problem fixed upstream.

Comment 1 Gwyn Ciesla 2022-12-07 22:42:59 UTC
Thanks!

https://github.com/synfig/synfig/pull/2930