tags 632393 + patch
thanks

* Jakub Wilk <jw...@debian.org>, 2011-09-13, 13:18:
unix:!macx { # on Unix-ish platforms we should rely on pkgconfig
        # Python prior to 3.x doesn't register properly with pkg-config
-       INCLUDEPATH     += /usr/include/python2.6/
-       LIBS            += -lpython2.6
+#      INCLUDEPATH     += /usr/include/python2.6/
+#      LIBS            += -lpython2.6
+       PKGCONFIG       += python

After applying your patch, texworks FTBFS in unstable:

And to be more constructive, here's my patch proposal.

--
Jakub Wilk
--- texworks-0.5~svn930/debian/rules
+++ texworks-0.5~svn930/debian/rules
@@ -9,6 +9,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export PYTHON = $(shell pyversions -d)
+
 USDIR=$(CURDIR)/debian/texworks/usr/share
 PLIDIR=plugins-src/TWLuaPlugin
 PLIPYT=plugins-src/TWPythonPlugin
--- texworks-0.5~svn930.orig/plugins-src/TWPythonPlugin/TWPythonPlugin.pro
+++ texworks-0.5~svn930/plugins-src/TWPythonPlugin/TWPythonPlugin.pro
@@ -50,8 +50,8 @@
 
 unix:!macx { # on Unix-ish platforms we should rely on pkgconfig
 	# Python prior to 3.x doesn't register properly with pkg-config
-	INCLUDEPATH	+= /usr/include/python2.6/
-	LIBS		+= -lpython2.6
+	INCLUDEPATH	+= /usr/include/$(PYTHON)/
+	LIBS		+= -l$(PYTHON)
 
 	# uncomment these lines (and comment those above) to use Python 3
 #	CONFIG		+= link_pkgconfig

Reply via email to