Hello,

Samuel Thibault, le mar. 12 oct. 2021 18:14:43 +0200, a ecrit:
> vtk9 is not getting built on non-linux ports, because tbb is marked as
> linux-only. Could you apply the attached patch to disable the libtbb-dev
> build-dep to fix this?

I forgot to disable the tbb dep in the libvtk9-dev package, here is a
fixed patch.

Samuel
--- debian/control.original     2021-10-11 17:41:17.000000000 +0000
+++ debian/control      2021-10-11 17:41:22.000000000 +0000
@@ -49,7 +49,7 @@
                libproj-dev,
                libsqlite3-dev,
                libswscale-dev,
-               libtbb-dev,
+               libtbb-dev [linux-any],
                libtheora-dev,
                libtiff-dev,
                libutfcpp-dev,
@@ -112,7 +112,7 @@
          libproj-dev,
          libpython3-dev,
          libswscale-dev,
-         libtbb-dev,
+         libtbb-dev [linux-any],
          libtheora-dev,
          libtiff-dev,
          libutfcpp-dev,
--- debian/rules.original       2021-10-11 20:24:21.000000000 +0000
+++ debian/rules        2021-10-11 20:25:00.000000000 +0000
@@ -14,6 +14,13 @@
   export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic 
-Wl,--as-needed
 endif
 
+notbb_archs=hurd-i386 kfreebsd-i386 kfreebsd-amd64
+ifneq ($(DEB_BUILD_ARCH),$(filter $(DEB_BUILD_ARCH), $(notbb_archs)))
+  extra_flags += -DVTK_SMP_IMPLEMENTATION_TYPE:STRING="TBB"
+else
+  extra_flags += -DVTK_SMP_IMPLEMENTATION_TYPE:STRING="OpenMP"
+endif
+
 %:
        dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --with python3 
--with javahelper
 
@@ -63,7 +70,6 @@
        -DVTK_MODULE_USE_EXTERNAL_VTK_tiff:BOOL=ON \
        -DVTK_MODULE_USE_EXTERNAL_VTK_utf8:BOOL=ON \
        -DVTK_MODULE_USE_EXTERNAL_VTK_zlib:BOOL=ON \
-       -DVTK_SMP_IMPLEMENTATION_TYPE:STRING="TBB" \
        -DVTK_PYTHON_VERSION:STRING=3 \
        -DVTK_USE_TK=ON \
        -DVTK_WRAP_PYTHON=ON \

Reply via email to