[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#924713: opencv: please disable gdcm2 support and enable tbb support on riscv64



Source: opencv
Version: 3.2.0+dfsg-6
Severity: normal
Tags: patch
User: debian-riscv@lists.debian.org
Usertags: riscv64

Hi,

opencv is currently not buildable on riscv64 as gdcm2 is not available.
It indirectly requires llvm support (through castxml), which won't be
available before llvm9. In the meantime, would it be possible to disable
gdcm2 support as already done on some other architecture? On the other
way I realized that tbb support is available on riscv64 and thus can be
enabled.

The attached patch does the above changes. Could you please include it
in the next upload?

Thanks,
Aurelien
diff -Nru opencv-3.2.0+dfsg/debian/control opencv-3.2.0+dfsg/debian/control
--- opencv-3.2.0+dfsg/debian/control	2019-02-12 11:26:31.000000000 +0000
+++ opencv-3.2.0+dfsg/debian/control	2019-03-14 20:32:08.000000000 +0000
@@ -19,7 +19,7 @@
  libdc1394-22-dev [linux-any],
  libeigen3-dev,
  libgdal-dev,
- libgdcm2-dev [!hppa !m68k !powerpcspe !sh4],
+ libgdcm2-dev [!hppa !m68k !powerpcspe !riscv64 !sh4],
  libgl1-mesa-dev,
  libglu1-mesa-dev,
  libgoogle-glog-dev,
@@ -33,7 +33,7 @@
  libprotobuf-dev,
  libraw1394-dev [linux-any],
  libswscale-dev,
- libtbb-dev [amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x powerpc powerpcspe ppc64 sh4 sparc64],
+ libtbb-dev [amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x powerpc powerpcspe ppc64 riscv64 sh4 sparc64],
  libtesseract-dev,
  libtiff-dev,
  libv4l-dev [linux-any],
@@ -157,7 +157,7 @@
 Multi-Arch: same
 Depends:
  libopencv-core3.2 (= ${binary:Version}),
- libtbb-dev [amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x powerpc powerpcspe ppc64 sh4 sparc64],
+ libtbb-dev [amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x powerpc powerpcspe ppc64 riscv64 sh4 sparc64],
  zlib1g-dev,
  ${misc:Depends},
 Description: development files for libopencv-core3.2
@@ -293,7 +293,7 @@
 Architecture: any
 Multi-Arch: same
 Depends:
- libgdcm2-dev [!hppa !m68k !powerpcspe !sh4],
+ libgdcm2-dev [!hppa !m68k !powerpcspe !riscv64 !sh4],
  libopencv-imgcodecs3.2 (= ${binary:Version}),
  libopencv-imgproc-dev (= ${binary:Version}),
  ${misc:Depends},
diff -Nru opencv-3.2.0+dfsg/debian/rules opencv-3.2.0+dfsg/debian/rules
--- opencv-3.2.0+dfsg/debian/rules	2019-02-12 10:44:13.000000000 +0000
+++ opencv-3.2.0+dfsg/debian/rules	2019-03-14 20:32:08.000000000 +0000
@@ -13,7 +13,7 @@
 endif
 
 # TBB support
-ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x powerpc powerpcspe ppc64 sh4 sparc64))
+ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x powerpc powerpcspe ppc64 riscv64 sh4 sparc64))
 CMAKE_ARCH_FLAGS += -DWITH_TBB=ON
 else
 CMAKE_ARCH_FLAGS += -DWITH_TBB=OFF

Reply to: