diff -Nru httpdirfs-fuse-1.2.4/debian/changelog httpdirfs-fuse-1.2.4/debian/changelog --- httpdirfs-fuse-1.2.4/debian/changelog 2023-01-28 14:34:33.000000000 +0000 +++ httpdirfs-fuse-1.2.4/debian/changelog 2023-01-31 19:12:23.000000000 +0000 @@ -1,3 +1,11 @@ +httpdirfs-fuse (1.2.4-2) unstable; urgency=medium + + [ Amin Bandali ] + * d/rules: fix build on architectures where undefined behaviour + sanitizer is not supported. + + -- Jérôme Charaoui Tue, 31 Jan 2023 14:12:23 -0500 + httpdirfs-fuse (1.2.4-1) unstable; urgency=medium * New upstream version 1.2.4 diff -Nru httpdirfs-fuse-1.2.4/debian/rules httpdirfs-fuse-1.2.4/debian/rules --- httpdirfs-fuse-1.2.4/debian/rules 2023-01-28 14:34:33.000000000 +0000 +++ httpdirfs-fuse-1.2.4/debian/rules 2023-01-31 19:12:23.000000000 +0000 @@ -1,6 +1,7 @@ #!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk +include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS=hardening=+all @@ -12,6 +13,10 @@ execute_before_dh_auto_configure: sed -i "s,^VERSION\s\+=.*,VERSION = $(DEB_VERSION_UPSTREAM)," Makefile +ifneq (,$(filter $(DEB_HOST_ARCH), mips64el mipsel alpha hppa ia64 powerpc riscv64 sh4)) +# Disable undefined behaviour sanitizer on unsupported architectures + sed -i "s/-fsanitize=undefined//" Makefile +endif execute_after_dh_auto_build: $(MAKE) man