Bug#996257: vtk9: Please disable libtbb-dev build-dep on !linux

Samuel Thibault sthibault at debian.org
Tue Oct 12 17:14:43 BST 2021


Package: vtk9
Version: 9.0.3+dfsg1-2
Severity: important
Tags: patch

Hello,

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?

Samuel

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vtk9 depends on:
ii  libc6                2.32-4
ii  libgcc-s1 [libgcc1]  11.2.0-8
ii  libstdc++6           11.2.0-8
ii  libvtk9              9.0.3+dfsg1-2+b1

vtk9 recommends no packages.

Versions of packages vtk9 suggests:
pn  vtk9-doc       <none>
pn  vtk9-examples  <none>

-- 
Samuel
 Créer une hiérarchie supplementaire pour remedier à un problème (?) de
 dispersion est d'une logique digne des Shadocks.
 * BT in: Guide du Cabaliste Usenet - La Cabale vote oui (les Shadocks aussi) *
-------------- next part --------------
--- 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,
--- 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 \


More information about the debian-science-maintainers mailing list