Bug#1031132: godot FTBFS on arm64, armel, ppc64el and s390x
Petter Reinholdtsen
pere at hungry.com
Wed May 31 05:45:43 BST 2023
Control: forwarded -1 https://github.com/godotengine/godot/issues/47344
A solution was provided in the upstream issue. I am currently testing
this patch on arm64.
diff --git a/debian/rules b/debian/rules
index 51ceee03..bd0fe095 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +13,15 @@ ifeq ($(DEB_HOST_ARCH),$(filter $(GCC_MINOR),armel riscv64))
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
endif
+# The denoise module depends on OIDN which is x86_64 only (in the
+# vendored version).
+# Godot's own logic to disable it on other arches is a bit brittle
+# when it comes to cross-compiling currently.
+# See https://github.com/godotengine/godot/issues/47344
+ifneq ($(DEB_HOST_ARCH),$(filter $(GCC_MINOR),amd64 i386 armhf))
+ DISABLE_MODULES = module_denoise_enabled=no
+endif
+
override_dh_clean:
dh_clean
scons -c
@@ -68,9 +78,9 @@ SCONS_OPTIONS = bits=$(DEB_HOST_ARCH_BITS) \
override_dh_auto_build:
dh_auto_build
- scons platform=server tools=yes target=release_debug $(SCONS_OPTIONS) -j $(NUMJOBS) CCFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
- scons platform=x11 tools=no target=release $(SCONS_OPTIONS) -j $(NUMJOBS) CCFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
- scons platform=x11 tools=yes target=release_debug $(SCONS_OPTIONS) -j $(NUMJOBS) CCFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
+ scons platform=server tools=yes target=release_debug $(SCONS_OPTIONS) -j $(NUMJOBS) CCFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" $(DISABLE_MODULES)
+ scons platform=x11 tools=no target=release $(SCONS_OPTIONS) -j $(NUMJOBS) CCFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" $(DISABLE_MODULES)
+ scons platform=x11 tools=yes target=release_debug $(SCONS_OPTIONS) -j $(NUMJOBS) CCFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" $(DISABLE_MODULES)
override_dh_auto_install:
echo "Installing binaries for $(BITS) bits architecture"
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-games-devel
mailing list