Bug 1401709

Summary: psi: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: psiAssignee: Ivan Romanov <drizt72>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: drizt72, projects.rg, sven
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://apps.fedoraproject.org/koschei/package/psi
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-11 17:46:00 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:

Description Raphael Groner 2016-12-05 22:28:59 UTC
Description of problem:
Package psi fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.15-17.fc24

Steps to Reproduce:
koji build --scratch f26 psi-0.15-17.fc24.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/psi

Comment 1 Raphael Groner 2016-12-05 22:30:18 UTC
Relevant snippet from latest build.log:
…
Verifying Qt 4 build environment ... 
qmake found in /builddir/build/BUILD/psi-0.15/bin/qmake-qt4
makespec is linux-g++
 -> fail
Reason: There was an error compiling 'conf'.  See conf.log for details.
Be sure you have a proper Qt 4.0 build environment set up.  This means not
just Qt, but also a C++ compiler, a make tool, and any other packages
necessary for compiling C++ programs.
If you are certain everything is installed, then it could be that Qt 4 is not
being recognized or that a different version of Qt is being detected by
mistake (for example, this could happen if $QTDIR is pointing to a Qt 3
installation).  At least one of the following conditions must be satisfied:
 1) --qtdir is set to the location of Qt
 2) $QTDIR is set to the location of Qt
 3) QtCore is in the pkg-config database
 4) qmake is in the $PATH
This script will use the first one it finds to be true, checked in the above
order.  #3 and #4 are the recommended options.  #1 and #2 are mainly for
overriding the system configuration.
conf.log:
/usr/lib64/qt4/bin/moc -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include -I. conf4.cpp -o conf4.moc
/builddir/build/BUILD/psi-0.15/.qconftemp/modules.cpp:52: Parse error at "defined"
…

Comment 2 Raphael Groner 2016-12-05 22:55:48 UTC
General bug #1396755.

Comment 3 Raphael Groner 2016-12-11 17:46:00 UTC
Fixed. Thanks to Rex for the patches / workaround.

*** This bug has been marked as a duplicate of bug 1396755 ***