Source: angelscript Version: 2.34.0+ds-2 Severity: serious Tags: ftbfs patch
https://buildd.debian.org/status/package.php?p=angelscript ... debian/rules override_dh_auto_test-arch make[1]: Entering directory '/<<PKGBUILDDIR>>' CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2 -I../angelscript/include" LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,-rpath,../../../angelscript/lib -L../angelscript/lib" /usr/bin/make -C samples test make[2]: Entering directory '/<<PKGBUILDDIR>>/samples' mkdir -p tutorial/bin g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I../angelscript/include -D_LINUX_ -DAS_DEBIAN_LIB -o tutorial/bin/tutorial tutorial/source/main.cpp -Wl,-z,relro -Wl,-z,now -Wl,-rpath,../../../angelscript/lib -L../angelscript/lib -langelscript-addon -langelscript cd tutorial/bin && echo y | ./tutorial tutorial: ../../source/as_callfunc.cpp:256: int AngelScript::PrepareSystemFunction(AngelScript::asCScriptFunction*, AngelScript::asSSystemFunctionInterface*, AngelScript::asCScriptEngine*): Assertion `false' failed. Aborted make[2]: *** [Makefile:28: test_tutorial] Error 134 Fix/workaround: --- debian/rules.old 2020-10-26 09:03:20.601856087 +0000 +++ debian/rules 2020-10-26 09:09:14.763737123 +0000 @@ -13,9 +13,7 @@ export VERSION := $(shell echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\+.*//') # buggy archs -ifeq ($(DEB_HOST_ARCH),armhf) - DEB_CXXFLAGS_MAINT_APPEND += -DAS_MAX_PORTABILITY -else ifeq ($(DEB_HOST_ARCH),x32) +ifneq (,$(filter $(DEB_HOST_ARCH), armhf mips64el sparc64 x32)) DEB_CXXFLAGS_MAINT_APPEND += -DAS_MAX_PORTABILITY endif