Source: graphviz Version: 2.42.2-7 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability ftcbfs
graphviz fails to cross build from source. The host Python cannot be installed, rather the build architecture Python interpreter and the host architecture development files are needed here. Also perl uses the build architecture development files rather than the host's one. I'm attaching a patch to fix both for your convenience. Helmut
diff --minimal -Nru graphviz-2.42.2/debian/changelog graphviz-2.42.2/debian/changelog --- graphviz-2.42.2/debian/changelog 2022-06-15 19:55:30.000000000 +0200 +++ graphviz-2.42.2/debian/changelog 2023-01-03 11:02:29.000000000 +0100 @@ -1,3 +1,12 @@ +graphviz (2.42.2-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Multiarchify python build dependencies. + + Tell perl about the host development files. + + -- Helmut Grohne <hel...@subdivi.de> Tue, 03 Jan 2023 11:02:29 +0100 + graphviz (2.42.2-7) unstable; urgency=medium * Recommend fonts-liberation2 (closes: #1003006). diff --minimal -Nru graphviz-2.42.2/debian/control graphviz-2.42.2/debian/control --- graphviz-2.42.2/debian/control 2022-06-15 19:55:30.000000000 +0200 +++ graphviz-2.42.2/debian/control 2023-01-03 11:02:29.000000000 +0100 @@ -29,7 +29,8 @@ libargon2-dev, libsodium-dev, libxml2-dev, - python3-dev, + libpython3-dev, + python3-dev:any, libcairo2-dev, libpango1.0-dev, d-shlibs, diff --minimal -Nru graphviz-2.42.2/debian/rules graphviz-2.42.2/debian/rules --- graphviz-2.42.2/debian/rules 2022-06-15 19:55:30.000000000 +0200 +++ graphviz-2.42.2/debian/rules 2023-01-03 11:02:28.000000000 +0100 @@ -4,6 +4,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/architecture.mk DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk @@ -26,6 +27,12 @@ RUBY = --enable-ruby endif +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +PERLVER := $(shell perl -MConfig -e 'print $$Config{version}') +export PERL5LIB := /usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) +endif + + PYTHON_VERSIONS = $(shell pyversions -r) PYTHON3_VERSIONS = $(shell py3versions -r)