diff -u openjade-1.4devel1/debian/changelog openjade-1.4devel1/debian/changelog --- openjade-1.4devel1/debian/changelog +++ openjade-1.4devel1/debian/changelog @@ -1,3 +1,9 @@ +openjade (1.4devel1-21.3ubuntu1~ppa1) focal; urgency=medium + + * d/rules: build with -O0 on arm64 to avoid segfaults (LP: #1869734) + + -- Christian Ehrhardt Mon, 30 Mar 2020 16:54:59 +0200 + openjade (1.4devel1-21.3build1) focal; urgency=medium * No-change rebuild for libgcc-s1 package name change. diff -u openjade-1.4devel1/debian/control openjade-1.4devel1/debian/control --- openjade-1.4devel1/debian/control +++ openjade-1.4devel1/debian/control @@ -1,7 +1,8 @@ Source: openjade Section: text Priority: optional -Maintainer: Neil Roeth +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Neil Roeth Homepage: http://openjade.sourceforge.net/ Standards-Version: 3.9.2.0 Build-Depends: libosp-dev (>= 1.5.1.0-2.1), debhelper (>= 9), dh-autoreconf, gettext, dh-buildinfo, libperl4-corelibs-perl diff -u openjade-1.4devel1/debian/rules openjade-1.4devel1/debian/rules --- openjade-1.4devel1/debian/rules +++ openjade-1.4devel1/debian/rules @@ -21,12 +21,19 @@ CFLAGS := -g --pipe CXXFLAGS := -g --pipe -fpermissive ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +ifneq (,$(findstring arm64,$(DEB_BUILD_ARCH))) +# arm64 on recent gcc generates a segfaulting openjade (LP: #1869734) +# can be avoided with -O0 + CFLAGS += -O0 + CXXFLAGS += -O0 +else CFLAGS += -O2 CXXFLAGS += -O2 +endif # on arm64 else CFLAGS += -O0 CXXFLAGS += -O0 -endif +endif # noopt ifneq (,$(findstring hppa,$(DEB_BUILD_ARCH))) CFLAGS += -ffunction-sections CXXFLAGS += -ffunction-sections