[Debian-med-packaging] Bug#937330: Issue with building opencv prevents fixing psychopy (Re: Bug#937330: psychopy: Python2 removal in sid/bullseye - reopen 937330)

Mo Zhou lumin at debian.org
Sun Mar 8 02:03:03 GMT 2020


binNMU src:opencv and rebuild against python3.8

currently on VAC.

On Fri, Mar 06, 2020 at 09:08:44PM +0100, Andreas Tille wrote:
> Control: tags -1 pending
> Control: tags 943706 help
> 
> On Thu, Mar 05, 2020 at 09:55:12PM -0500, Sandro Tosi wrote:
> > Control: reopen -1
> > 
> > This bug was closed, but the package has still some dependencies towards
> > Python2 packages, in details:
> > 
> > (binary:psychopy)Recommends->ipython
> > 
> > Re-opening, so that they can be taken care of.
> 
> I've fixed this in Git.  However, the package currently does not build
> due to
> 
>    python3-opencv : Depends: python3 (< 3.8) but 3.8.2-1 is to be installed
> 
> So I gave opencv a look and while doing so I though a fix for #943706 when
> working on this package could help as well.  Unfortunately I was running
> into a strange build issue with opencv.  I used
> 
>    apt-get source opencv
> 
> to get the multi tarball source and tried pbuilder but I was running into
> 
>    debian/rules override_dh_clean
> make[1]: Entering directory '/home/andreas/debian-maintain/salsa/science-team/build-area/opencv-4.2.0+dfsg'
> rm -rvf modules/python/src2/hdr_parser.pyc
> rm -rvf modules/java/generator/rst_parser.pyc
> rm -rvf modules/refman.rst
> dh_clean
> rm -rvf modules/python/src2/__pycache__
> make[1]: Leaving directory '/home/andreas/debian-maintain/salsa/science-team/build-area/opencv-4.2.0+dfsg'
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building opencv using existing ./opencv_4.2.0+dfsg.orig.tar.xz
> dpkg-source: info: using patch list from debian/patches/series
> can't find file to patch at input line 7
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Description: prevent cmake from downloading binary blob from internet.
> |Author: Mo Zhou
> |diff --git a/contrib/modules/face/CMakeLists.txt b/contrib/modules/face/CMakeLists.txt
> |index 2d5f8075a..1776b9dae 100644
> |--- a/contrib/modules/face/CMakeLists.txt
> |+++ b/contrib/modules/face/CMakeLists.txt
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
> dpkg-source: info: if patch 'face-no-download.patch' is correctly applied by quilt, use 'quilt refresh' to update it
> dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/face-no-download.patch/ --reject-file=- < opencv-4.2.0+dfsg.orig.2WIJo_/debian/patches/face-no-download.patch subprocess returned exit status 1
> 
> 
> I admit I do not understand this since the quilt patch applied nicely
> when running manually.
> 
> Any hint would be welcome - feel free to team upload / sponsor without
> asking me.
> 
> Kind regards
> 
>      Andreas.
> 
> -- 
> http://fam-tille.de



More information about the Debian-med-packaging mailing list