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
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" …
General bug #1396755.
Fixed. Thanks to Rex for the patches / workaround. *** This bug has been marked as a duplicate of bug 1396755 ***