diff -Nru debug-me-1.20221231/debian/changelog debug-me-1.20221231/debian/changelog --- debug-me-1.20221231/debian/changelog 2023-07-04 17:38:00.000000000 +0200 +++ debug-me-1.20221231/debian/changelog 2023-09-18 15:51:21.000000000 +0200 @@ -1,3 +1,9 @@ +debug-me (1.20221231-1ubuntu1) mantic; urgency=medium + + * Disable LTO on the ppc64el architecture (LP: #2033639) + + -- Heinrich Schuchardt Mon, 18 Sep 2023 15:51:21 +0200 + debug-me (1.20221231-1) unstable; urgency=medium * New upstream release. diff -Nru debug-me-1.20221231/debian/control debug-me-1.20221231/debian/control --- debug-me-1.20221231/debian/control 2023-07-04 17:38:00.000000000 +0200 +++ debug-me-1.20221231/debian/control 2023-09-18 15:51:21.000000000 +0200 @@ -1,5 +1,6 @@ Source: debug-me -Maintainer: Sean Whitton +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Sean Whitton Priority: optional Section: net Build-Depends: debhelper (>= 10), diff -Nru debug-me-1.20221231/debian/rules debug-me-1.20221231/debian/rules --- debug-me-1.20221231/debian/rules 2023-07-04 17:38:00.000000000 +0200 +++ debug-me-1.20221231/debian/rules 2023-09-18 15:51:21.000000000 +0200 @@ -1,9 +1,18 @@ #!/usr/bin/make -f +DPKG_EXPORT_BUILDFLAGS := 1 +include /usr/share/dpkg/architecture.mk + # Debian's ghc cannot compile anything with -fPIC at present, so we # have to disable PIE hardening to avoid build failures on archs like # amd64. See discussion on debian-haskell@lists.debian.org -export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie +DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie + +# Building with LTO failed on ppc64el (LP: #2033639) +ifeq ("$(DEB_BUILD_ARCH)", "ppc64el") + DEB_BUILD_MAINT_OPTIONS += optimize=-lto +endif +export DEB_BUILD_MAINT_OPTIONS # cabal likes to write to $HOME, so use Setup.hs directly export BUILDER = ./Setup