[Pkg-electronics-devel] Bug#876641: pcb FTBFS on i386: test hid_gcode3 fails
Adrian Bunk
bunk at debian.org
Sun Sep 24 09:47:15 UTC 2017
Source: pcb
Version: 1:4.0.2-1
Severity: serious
Tags: patch
https://buildd.debian.org/status/fetch.php?pkg=pcb&arch=i386&ver=1%3A4.0.2-1&stamp=1504721870&raw=0
...
Test: hid_gcode3
(cd outputs/hid_gcode3 && ../../../src/pcbtest.sh -x gcode --dpi 1200 gcode_oneline.pcb)
--- /tmp/pcb_tests.24323/gcode_oneline-bottom.gcode-ref 2017-09-06 18:17:42.309476498 +0000
+++ /tmp/pcb_tests.24323/gcode_oneline-bottom.gcode-out 2017-09-06 18:17:42.309476498 +0000
@@ -36,6 +36,6 @@
G1 X28.765500 Y12.488333
G1 X28.765500 Y12.890500
-G1 X28.638500 Y13.165667
-G1 X28.448000 Y13.377333
+G1 X28.617333 Y13.208000
+G1 X28.405667 Y13.398500
G1 X28.130500 Y13.525500
G1 X27.813000 Y13.546667
--- /tmp/pcb_tests.24323/gcode_oneline-top.gcode-ref 2017-09-06 18:17:42.329476462 +0000
+++ /tmp/pcb_tests.24323/gcode_oneline-top.gcode-out 2017-09-06 18:17:42.329476462 +0000
@@ -36,6 +36,6 @@
G1 X23.706667 Y12.488333
G1 X23.706667 Y12.890500
-G1 X23.579667 Y13.165667
-G1 X23.389167 Y13.377333
+G1 X23.558500 Y13.208000
+G1 X23.346833 Y13.398500
G1 X23.071667 Y13.525500
G1 X22.754167 Y13.546667
FAIL
If exact results are required, the following fixes the problem:
--- debian/rules.old 2017-09-24 09:06:47.000000000 +0000
+++ debian/rules 2017-09-24 09:41:05.000000000 +0000
@@ -5,6 +5,12 @@
package = pcb
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifneq (,$(filter $(DEB_HOST_ARCH), i386))
+ export DEB_CFLAGS_MAINT_APPEND=-ffloat-store
+endif
+
CONFIGURE_OPTS=--disable-rpath --enable-dbus --disable-update-desktop-database --disable-update-mime-database --enable-dependency-tracking --enable-coord64 LDFLAGS="$(LDFLAGS) -Wl,--as-needed"
%:
More information about the Pkg-electronics-devel
mailing list