Bug 1943131

Summary: syncevolution: FTBFS with upcoming autoconf-2.71
Product: [Fedora] Fedora Reporter: Ondrej Dubaj <odubaj>
Component: syncevolutionAssignee: Milan Crha <mcrha>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: Axel.Thimm, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: syncevolution-1.5.3-18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-26 09:29:49 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: 1942967    

Description Ondrej Dubaj 2021-03-25 12:57:10 UTC
Your package fails to build with the newest upcoming autoconf-2.71, which is part of a wide Fedora change. Please see the attached copr: https://copr.fedorainfracloud.org/coprs/odubaj/autoconf-2.70/packages/. More information about testing your package when building with autoconf available here: https://fedoraproject.org/wiki/Changes/Autoconf_271#How_To_Test

Comment 1 Milan Crha 2021-03-26 08:56:26 UTC
If I read the error correctly:

> autoreconf: running: intltoolize --copy --force
> ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
> autoreconf: error: intltoolize failed with exit status: 1

then this is reported when it's executed on the top configure.ac. Looking into the file there is this:

   if test "$enable_gui" != "no" || test "$enable_dbus_service" != "no"; then
       IT_PROG_INTLTOOL([0.37.1])
       GETTEXT_PACKAGE=syncevolution
       AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package name])
       AM_GLIB_GNU_GETTEXT
       SYNCEVOLUTION_LOCALEDIR=[${datadir}/locale]
   fi

Thus, strictly speaking, the error message the autoreconf (or the intltoolize) claims is a false positive. When I move that line above the `if`, the autoconf is happy and makes things work.

Ondrej, could you verify the error is a false positive, please?

Comment 2 Ondrej Dubaj 2021-03-26 09:05:08 UTC
I think moving IT_PROG_INTLTOOL before if as you said should do the trick, this error was already added here https://docs.google.com/document/d/1SAGTJZEF9z_nkHMbXTF-YTTvKRja7ygfOOMzl-DYBSk/edit and the fix seem to work fine https://src.fedoraproject.org/rpms/pidgin/c/b5598d16a9f2e36d9fb0aa3411c57d5935e8fb02?branch=rawhide

But I do not have the capacity to investigate the failure deeply. Hopefully it will work for your case.

Comment 3 Milan Crha 2021-03-26 09:10:31 UTC
It does work to move it before the 'if'. I thought maybe you can upstream it and they will look on the reason. As it is no change for Fedora I'll add the patch.

Comment 4 Milan Crha 2021-03-26 09:29:49 UTC
Fixed with https://src.fedoraproject.org/rpms/syncevolution/c/23dedb20b2d7c5a583986e161c45a9222b881d07?branch=rawhide 

I did not build the package, I guess it can wait.

Comment 5 Ondrej Dubaj 2021-03-26 09:31:57 UTC
I see no problem building it now if possible. But it's up to you, thanks.