tags 557288 + patch
thanks

* Jonathan Wiltshire <deb...@jwiltshire.org.uk>, 2009-11-20, 23:10:
Package fails to build from source with python2.6, here's the build log tail:

| # removes build-time rpaths
| for version in python2.5 python2.4; \
|       do \
|               chrpath --delete 
/tmp/buildd/libkml-1.0.1/debian/python-kml/usr/lib/$version/site-packages/*.so 
; \
|       done
| open: No such file or directory
| elf_open: Invalid argument
| make: *** [binary-install/python-kml] Error 1

Of course, the other problem is that the package hardcodes Python versions despite depending on python-all-dev.

The attached patch fixed both issues.

(debian-python: caution, this package has large build-dependencies and takes a
very long time to build)

Indeed.

--
Jakub Wilk
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@
 Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libexpat1-dev, zlib1g-dev, default-jdk,
  python-dev, python-all-dev, quilt, liburiparser-dev (>= 0.7.1), chrpath,
  libcurl4-openssl-dev, swig, python-central
-XS-Python-Version: 2.4, 2.5
+XS-Python-Version: >= 2.4
 Standards-Version: 3.8.3
 Homepage: http://code.google.com/p/libkml/
 Vcs-Svn: svn://svn.debian.org/pkg-grass/packages/libkml/
diff --git a/debian/python-kml.install b/debian/python-kml.install
--- a/debian/python-kml.install
+++ b/debian/python-kml.install
@@ -1,1 +1,1 @@
-usr/lib/python2.*/site-packages
+usr/lib/python2.*/*-packages
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -46,7 +46,7 @@
 	# removes build-time rpaths
 	for version in $(PY_VERSIONS); \
 	do \
-		chrpath --delete $(CURDIR)/debian/python-kml/usr/lib/$$version/site-packages/*.so ; \
+		chrpath --delete $(CURDIR)/debian/python-kml/usr/lib/$$version/*-packages/*.so ; \
 	done
 	dh_pycentral -ppython-kml
 

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to