From 0fe869c169ebc46e7b856e76a7687c82ddf206ca Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 28 Sep 2025 18:15:13 +1000 Subject: [PATCH] See #7131. Rollback to prevent instant segfaults on Linux. --- src/bonsai/Makefile | 2 +- src/ifcopenshell-python/Makefile | 4 ++-- src/ifcopenshell-python/ifcopenshell/__init__.py | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bonsai/Makefile b/src/bonsai/Makefile index ce2a0a8ef4..130cc0fc3b 100644 --- a/src/bonsai/Makefile +++ b/src/bonsai/Makefile @@ -87,7 +87,7 @@ BLENDER_PLATFORM:=windows-x64 endif # Current build commit hash. -OLD:=e795cec +OLD:=6924012 .PHONY: bump bump: ifndef NEW diff --git a/src/ifcopenshell-python/Makefile b/src/ifcopenshell-python/Makefile index 79a43fd369..17042a9693 100644 --- a/src/ifcopenshell-python/Makefile +++ b/src/ifcopenshell-python/Makefile @@ -63,8 +63,8 @@ PLATFORMTAG:=win_amd64 endif BINARY_VERSION:=0.8.4 -IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-e795cec-$(PLATFORM).zip -IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-e795cec-$(PLATFORM).zip +IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-6924012-$(PLATFORM).zip +IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-6924012-$(PLATFORM).zip .PHONY: build-urls build-urls: diff --git a/src/ifcopenshell-python/ifcopenshell/__init__.py b/src/ifcopenshell-python/ifcopenshell/__init__.py index 6f68fee18a..060953aafb 100644 --- a/src/ifcopenshell-python/ifcopenshell/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/__init__.py @@ -185,7 +185,10 @@ def open( return sqlite(path) if should_stream: return stream(path) - f = ifcopenshell_wrapper.open(str(path.absolute()), readonly) + if readonly: # Temporary conditional see #7131. Remove once newer builds don't segfault on Linux. + f = ifcopenshell_wrapper.open(str(path.absolute()), readonly) + else: + f = ifcopenshell_wrapper.open(str(path.absolute())) return file(f)