| Summary: | Build issue: python-tqt FTBFS | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Darrell <darrella> |
| Component: | non-core programs | Assignee: | Slávek Banko <slavek.banko> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | bugwatch, darrella, michele.calgaro, slavek.banko |
| Priority: | P1 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: | Fix missing tqstyle include | ||
I can build python-tqt by patching qt/sipqtTQStyleWidgetActionRequestData.cpp on-the-fly in my build script, in between the configure and make commands, but I don't know where to patch the sources to ensure the include is created during the configure process. Here is the on-the-fly patch: diff -urN python-tqt/qt/sipqtTQStyleWidgetActionRequestData.cpp python-tqt.new/qt/sipqtTQStyleWidgetActionRequestData.cpp --- python-tqt/qt/sipqtTQStyleWidgetActionRequestData.cpp 2012-08-22 12:35:04.638695382 -0500 +++ python-tqt.new/qt/sipqtTQStyleWidgetActionRequestData.cpp 2012-08-22 12:37:34.174946155 -0500 @@ -35,6 +35,7 @@ #line 93 "/dev/shm/python-tqt/sip/qt/qrect.sip" #include <tqrect.h> #line 38 "sipqtTQStyleWidgetActionRequestData.cpp" +#include <ntqstyle.h> /* Cast a pointer to a type somewhere in its superclass hierarchy. */ Bumping to Critical because there is a work-around. Hi Darrell, is this bug report still applicable? As of today, I can build python-tqt from GIT repository without problems, at least on Debian/Jessie. I am asking because this bug is in the list of open bugs for releasing R14.0 If it is no longer applicable, we should consider closing it. Yes.
Here is the respective snippet from my build script:
====================================
PYTHONVER=$(python -V 2>&1 | cut -f 2 -d' ' | cut -f 1-2 -d.)
PYTHONLIB=$( python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()' )
if [ "$PREFIX" = "/usr" ]; then
FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt -I/${QTDIR}/include -I${PREFIX}/include"
else
FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt -I/${QTDIR}/include -I${PREFIX}/include -I/usr/include"
fi
echo "yes" | python configure.py \
-b "/usr/bin" \
-d "$PYTHONLIB" \
-l "/usr/include/python$PYTHONVER" \
CFLAGS="$FLAGS" \
CXXFLAGS="$FLAGS"
# The following patch needs to be applied on-the-fly.
# Refer to bug report 1168.
(cd $TMP/$PRGNAM; cat $CWD/python-tqt-kstyle.diff | patch -p1 --verbose --no-backup-if-mismatch || exit 1)
if [ "$TEE_OUTPUT" = "false" ]; then
make $NUMJOBS --silent || exit 1
else
make $NUMJOBS VERBOSE=1 || exit 1
fi
====================================
The build still fails if I don't apply the patch noted in comment 1. Otherwise no problems with other packages.
I ran a full build set last night, thus my local GIT tree is current.
Created attachment 1528 [details]
Fix missing tqstyle include
On Debian / Ubuntu I am unable to reproduce this problem.
Therefore, I have no idea if the patch helps or not.
It's up to you - you have to test it.
Patch tested. No build failures. The final package is the same except for the expected changes in qstyle.sip. Thank you! Fixed in GIT hash a0afa979. Thank you for testing. |
The cause seems to be commit 4b78cab4. The failure messages: sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: expected '>' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: expected '(' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:55:29: error: 'TQStyleWidgetActionRequestData' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:55:61: error: expected primary-expression before '>' token sipqtTQStyleWidgetActionRequestData.cpp:55:71: error: expected ')' before ';' token sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: expected '>' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: expected '(' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:62:22: error: 'TQStyleWidgetActionRequestData' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:62:54: error: expected primary-expression before '>' token sipqtTQStyleWidgetActionRequestData.cpp:62:73: error: 'void*' is not a pointer-to-object type sipqtTQStyleWidgetActionRequestData.cpp:62:101: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] sipqtTQStyleWidgetActionRequestData.cpp:62:101: error: expected '>' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:62:101: error: expected '(' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:62:133: error: expected primary-expression before '>' token sipqtTQStyleWidgetActionRequestData.cpp:62:142: error: expected ')' before ';' token sipqtTQStyleWidgetActionRequestData.cpp:62:142: error: expected ')' before ';' token sipqtTQStyleWidgetActionRequestData.cpp:69:16: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:69:16: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:69:16: error: 'TQStyleWidgetActionRequestData' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:76:16: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:76:16: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: expected '>' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: expected '(' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:76:70: error: 'TQStyleWidgetActionRequestData' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:76:102: error: expected primary-expression before '>' token sipqtTQStyleWidgetActionRequestData.cpp:76:121: error: 'const void*' is not a pointer-to-object type sipqtTQStyleWidgetActionRequestData.cpp:93:5: error: 'TQStyleWidgetActionRequestData' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:93:37: error: 'sipCpp' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:98:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:98:26: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:110:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:110:26: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:123:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:123:26: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:136:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:136:26: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:147:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:147:26: error: expected ';' before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:154:15: error: 'TQStyleWidgetActionRequestData' does not name a type sipqtTQStyleWidgetActionRequestData.cpp:156:124: error: 'a0' was not declared in this scope sipqtTQStyleWidgetActionRequestData.cpp:158:26: error: expected type-specifier before 'TQStyleWidgetActionRequestData' sipqtTQStyleWidgetActionRequestData.cpp:158:26: error: expected ';' before 'TQStyleWidgetActionRequestData'