Package: opencv Version: 1.0.0-6.1 Severity: important Tags: patch Justification: fails to build from source User: debian-pyt...@lists.debian.org Usertags: python2.6 origin-ubuntu jaunty ubuntu-patch
Hi, When building your package for python 2.6, I'm getting this error: dh_install --sourcedir=debian/tmp --list-missing -Xlicense.txt -X.pyc -X.pyo dh_install: python-opencv missing files (/usr/lib/python*/site-packages/opencv/*.py), aborting make: *** [install] Error 2 dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary gave error exit status 2 This is because python 2.6 is using dist-packages instead of site-packages. The attached patch update the instlal file, changing site-packages to *-packages. Thanks, Fabrice *** /tmp/tmpBkgUnX In Ubuntu, we've applied the attached patch to achieve the following: * Update debian/python-opencv.install for Python 2.6 dist-packages install location We thought you might be interested in doing the same. -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.31-17-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
diff -u opencv-1.0.0/debian/python-opencv.install opencv-1.0.0/debian/python-opencv.install --- opencv-1.0.0/debian/python-opencv.install +++ opencv-1.0.0/debian/python-opencv.install @@ -1,2 +1,2 @@ -/usr/lib/python*/site-packages/opencv/*.py -/usr/lib/python*/site-packages/opencv/*.so +/usr/lib/python*/*-packages/opencv/*.py +/usr/lib/python*/*-packages/opencv/*.so