Source: piglit
Version: 0~git20180515-62ef6b0db-1
Severity: normal
Tags: patch

The gcc bug is fixed in gcc 8, so the following can be
applied to remove the i386 workaround:

--- debian/rules.old    2019-02-15 21:40:30.777278651 +0200
+++ debian/rules        2019-02-15 21:40:42.949278535 +0200
@@ -6,23 +6,6 @@
 %:
        dh $@ --buildsystem cmake --with python3
 
-# workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82364
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-ifneq (,$(filter $(DEB_HOST_ARCH), i386))
-export DEB_CFLAGS_MAINT_APPEND=-O1 -DNDEBUG
-
-override_dh_auto_configure:
-       dh_auto_configure -- \
-               -DCMAKE_INSTALL_PREFIX=/usr \
-               -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
-               -DPIGLIT_BUILD_GLES1_TESTS=1 \
-               -DPIGLIT_BUILD_GLES2_TESTS=1 \
-               -DPIGLIT_BUILD_GLES3_TESTS=1 \
-               -DPIGLIT_BUILD_CL_TESTS=1 \
-               -DPIGLIT_USE_WAFFLE=1
-
-else
-
 override_dh_auto_configure:
        dh_auto_configure -- \
                -DCMAKE_INSTALL_PREFIX=/usr \
@@ -34,8 +17,6 @@
                -DPIGLIT_BUILD_CL_TESTS=1 \
                -DPIGLIT_USE_WAFFLE=1
 
-endif
-
 override_dh_auto_install:
        dh_auto_install
        find $(DEB_DESTDIR) -type d -name __pycache__ -exec rm -r {} +

Reply via email to