Package: racket Version: 7.2+dfsg1-2 Severity: minor Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu eoan ubuntu-patch
Hi David, In Ubuntu, racket has been failing to build on ppc64el because the Ubuntu ppc64el port, unlike Debian's, uses -O3 as the default optimization level; and it appears that when built this way the software misbehaves, resulting in tools segfaulting during the build: [...] make[6]: Entering directory '/<<BUILDDIR>>/racket-7.2+dfsg1/build/gracket/gc2' ../../racket/racket3m -O "info@compiler/cm error" -l- setup --boot /<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../../setup-go.rkt ../../compiled --tag ++out /<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../../racket/gc2/xform-mod.rkt --cpp "gcc -E -I/<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../../racket/gc2 -I./../../racket/ -I/<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../../racket/include/ -DUSE_SENORA_GC -Wdate-time -D_FORTIFY_SOURCE=2 -Dwx_xt -MMD" --keep-lines -o ++out xsrc/grmain.c +D INITIAL_COLLECTS_DIRECTORY='"'"`cd /<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../../../collects; pwd`"'"' +D INITIAL_CONFIG_DIRECTORY='"'"`cd /<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../../..; pwd`/etc"'"' /<<BUILDDIR>>/racket-7.2+dfsg1/src/gracket/gc2/../grmain.c Aborted (core dumped) make[6]: *** [Makefile:76: xsrc/grmain.c] Error 134 [...] (https://launchpad.net/ubuntu/+source/racket/7.2+dfsg1-2/+build/16664122) I've therefore uploaded the attached patch to Ubuntu to get the package building on all architectures. While this issue doesn't affect Debian in its default configuration, this patch or one like it would help make the package more resilient to downstreams that use other build flags. Thanks for considering, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru racket-7.2+dfsg1/debian/rules racket-7.2+dfsg1/debian/rules --- racket-7.2+dfsg1/debian/rules 2019-02-19 13:11:01.000000000 -0800 +++ racket-7.2+dfsg1/debian/rules 2019-08-27 17:11:35.000000000 -0700 @@ -1,9 +1,11 @@ #!/usr/bin/make -f +DEB_CFLAGS_MAINT_APPEND := -O2 include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include debian/racket-arch.mk +export DEB_CFLAGS_MAINT_APPEND DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_CONFIGURE_SCRIPT := $(CURDIR)/src/configure MZDYN := mzdyn3m.o