Bug#1145402: ifcopenshell: FTBFS against python 3.15rc2

Maximiliano Curia maxy at debian.org
Wed Sep 16 09:40:14 BST 2026


user debian-python at lists.debian.org
usertags 1145402 python3.15
tags 1145402 patch
thanks

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version I ran into this FTBFS. 

To solve the problem, I had to add the missing parts of upstream patch
3bb8b0cb9a30f7d9cc5287c2aec3620724dfd9b8 Support swig 4.5 (#9324)

Additionally, I had trouble building this package because it uses too
many workers that are memory hungry in arm64, using guess-concurrency to
limit them makes this problem go away.

I've applied these fixes in the sandbox [1] to verify that it builds
successfully, these should be applied in Debian to get the package back
to a healthy state.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/
-- 
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
-------------- next part --------------
#!/usr/bin/make -f
BUILDDIR = $(CURDIR)/debian/build
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_BUILD_PARALLEL ?= $(shell guess_concurrency --require-mem 8G)
PY3VERS := $(shell py3versions -sv)
PY3VER_DEFAULT := $(shell py3versions -dv)

CMAKE_FLAGS = \
      -DCOLLADA_SUPPORT=Off \
      -DBUILD_SHARED_LIBS=On \
      -DHDF5_SUPPORT=Off \
      -DCGAL_INCLUDE_DIR=/usr/include \
      -DGMP_INCLUDE_DIR=/usr/include \
      -DMPFR_INCLUDE_DIR=/usr/include \
      -DPCRE_LIBRARY_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
      -DGMP_LIBRARY_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
      -DMPFR_LIBRARY_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
      -DJSON_INCLUDE_DIR=/usr/include \
      -DEIGEN_DIR=/usr/include/eigen3

%:
	dh $@ --buildsystem=cmake --sourcedirectory=cmake --builddirectory=$(BUILDDIR)/$(PY3VER_DEFAULT) --max-parallel=$(DEB_BUILD_PARALLEL)

override_dh_auto_configure:
	set -e; for pyver in $(PY3VERS); do \
		dh_auto_configure \
		    --sourcedirectory=cmake \
		    --builddirectory=$(BUILDDIR)/$$pyver \
		    -- $(CMAKE_FLAGS) \
		    -DPYTHON_INCLUDE_DIR=/usr/include/python$$pyver \
		    -DPYTHON_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython$$pyver.so; \
	done

override_dh_auto_build:
	set -e; for pyver in $(PY3VERS); do \
		dh_auto_build --builddirectory=$(BUILDDIR)/$$pyver --max-parallel=$(DEB_BUILD_PARALLEL); \
	done

override_dh_auto_test:
	set -e; for pyver in $(PY3VERS); do \
		dh_auto_test --builddirectory=$(BUILDDIR)/$$pyver --max-parallel=$(DEB_BUILD_PARALLEL); \
	done

override_dh_auto_install:
	dh_auto_install --builddirectory=$(BUILDDIR)/$(PY3VER_DEFAULT)
	set -e; for pyver in $(PY3VERS); do \
		if [ "$$pyver" != "$(PY3VER_DEFAULT)" ]; then \
			find $(BUILDDIR)/$$pyver/ifcwrap -name "_ifcopenshell_wrapper.cpython-*.so" \
			    -exec install -m 644 {} \
			    $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/ifcopenshell/ \; ; \
		fi; \
	done

override_dh_dwz:

execute_after_dh_clean:
	rm -rf $(BUILDDIR)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-with-swig-4.5.0.patch
Type: text/x-diff
Size: 5048 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260916/55ea40c2/attachment.patch>


More information about the debian-science-maintainers mailing list