diff -Nru libunwind-1.2.1/debian/changelog libunwind-1.2.1/debian/changelog --- libunwind-1.2.1/debian/changelog 2018-04-13 01:41:47.000000000 +1200 +++ libunwind-1.2.1/debian/changelog 2022-12-13 12:12:23.000000000 +1300 @@ -1,3 +1,11 @@ +libunwind (1.2.1-8ubuntu1) bionic; urgency=medium + + * Manually enable C++ exception support only on i386 and amd64, + it is known broken on several other architectures. + Thanks to Bernhard Übelacker. (Closes: #923962) (LP: #1999104) + + -- Matthew Ruffell Tue, 13 Dec 2022 12:12:23 +1300 + libunwind (1.2.1-8) unstable; urgency=low * libunwind-dev: Depend on liblzma-dev for static linking. diff -Nru libunwind-1.2.1/debian/rules libunwind-1.2.1/debian/rules --- libunwind-1.2.1/debian/rules 2018-04-11 05:03:57.000000000 +1200 +++ libunwind-1.2.1/debian/rules 2022-12-13 12:12:12.000000000 +1300 @@ -6,6 +6,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=-all,+format +ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386)) + CXX_EXCEPTIONS=--enable-cxx-exceptions +endif + %: dh $@ @@ -20,7 +24,7 @@ sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ override_dh_auto_configure: - dh_auto_configure -- --with-pic --enable-cxx-exceptions --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) + dh_auto_configure -- --with-pic $(CXX_EXCEPTIONS) --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) override_dh_install: dh_install