Package: pycurl
Version: 7.19.0-2
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

relying on “uname” output is quite fragile, especially since it doesn't
necessarily matches Python's view upon architectures, and probably
breaks crosscompilation. Anyway, please find attached a tiny patches
that at least fixes the build on GNU/kFreeBSD.

Thanks for considering.

Mraw,
KiBi.
diff -u pycurl-7.19.0/debian/rules pycurl-7.19.0/debian/rules
--- pycurl-7.19.0/debian/rules
+++ pycurl-7.19.0/debian/rules
@@ -27,7 +27,7 @@
 
 	set -e ;\
 	for test in "tests/test_internals.py" "tests/test_memleak.py" ; do \
-  	    PYTHONPATH=$(CURDIR)/build/lib.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$* \
+	    PYTHONPATH=`ls -d $(CURDIR)/build/lib.*-*-$*` \
 	        python$* $$test; \
 	done
 	touch $@

Reply via email to