texworks version 0.5~svn862-1 failed to build in oneiric

Bug #831113 reported by Matthias Klose on 2011-08-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
texworks (Debian)
Fix Released
texworks (Ubuntu)
Micah Gersten
Micah Gersten

Bug Description

texworks version 0.5~svn862-1 failed to build in oneiric
Link to failed build: https://launchpad.net/ubuntu/+source/texworks/0.5~svn862-1/+build/2649804

Details about the rebuild:

Direct link to the build log: https://launchpad.net/ubuntu/+source/texworks/0.5~svn862-1/+build/2649804/+files/buildlog_ubuntu-oneiric-amd64.texworks_0.5%7Esvn862-1_FAILEDTOBUILD.txt.gz

This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
Excerpt 764 lines into the build log:

# Python plugin
cd plugins-src/TWPythonPlugin && qmake-qt4 -after \
 'QMAKE_CXXFLAGS -= -DTW_BUILD_ID=personal -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"' \
 'QMAKE_CXXFLAGS += -DTW_BUILD_ID=Debian -DTW_HELPPATH=\\\"/usr/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"' \
 'target.path = /usr/lib/texworks' \
 && /usr/bin/make
make[1]: Entering directory `/build/buildd/texworks-0.5~svn862/plugins-src/TWPythonPlugin'
g++ -c -m64 -pipe -fno-strict-aliasing -DTW_BUILD_ID=Debian -DTW_HELPPATH=\"/usr/share/texworks-help\" -DTW_PLUGINPATH=\"/usr/lib/texworks\" -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I../../src -I/usr/include/python2.6/ -Imoc -o obj/TWPythonPlugin.o TWPythonPlugin.cpp
In file included from TWPythonPlugin.cpp:22:0:
TWPythonPlugin.h:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[1]: *** [obj/TWPythonPlugin.o] Error 1
make[1]: Leaving directory `/build/buildd/texworks-0.5~svn862/plugins-src/TWPythonPlugin'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Build finished at 20110727-2209
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/texworks-0.5~svn862

Related branches

Matthias Klose (doko) on 2011-08-22
Changed in texworks (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Stefan Löffler (st.loeffler) wrote :

Both the upstream and Debian versions are set up to build with Python 2.6 (which didn't properly seem to register with pkg-config, hence the version was hard-coded).

The attached patch works around this by replacing 2.6 by 2.7 for oneiric.

Alternatively, binaries are available in the ppas at https://launchpad.net/~texworks.

tags: added: patch
Micah Gersten (micahg) wrote :

Both of these are output fine by the pkg-config file in python-dev, this should be used instead of hardcoding the paths/libs.

Micah Gersten (micahg) on 2011-09-13
Changed in texworks (Ubuntu Oneiric):
assignee: nobody → Micah Gersten (micahg)
status: Confirmed → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package texworks - 0.5~svn862-1ubuntu1

texworks (0.5~svn862-1ubuntu1) oneiric; urgency=low

  * Fix FTBFS by using pkg-config to find python path/version (LP: #831113)
    - update plugins-src/TWPythonPlugin/TWPythonPlugin.pro
 -- Micah Gersten <email address hidden> Mon, 12 Sep 2011 22:39:04 -0500

Changed in texworks (Ubuntu Oneiric):
status: In Progress → Fix Released
Changed in texworks (Debian):
status: Unknown → New
Changed in texworks (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.