peter green wrote:
Found 756777 1.0.2-6
Thanks
I've just tested and found that building with gcc/g++ 4.8 fixes the
build. Using 4.8 also requires switching from strong to regular stack
protector. This
can be done with the following
export
CC=gcc-4.8
export
CXX=g++-4.8
export
DEB_CFLAGS_MAINT_STRIP=-fstack-protector-strong
export
DEB_CFLAGS_MAINT_APPEND=-fstack-protector
export
DEB_CXXFLAGS_MAINT_STRIP=-fstack-protector-strong
export DEB_CXXFLAGS_MAINT_APPEND=-fstack-protector
If noone proposes a better soloution in the next couple of days I'll
wrap this
in appropriate conditional logic and upload it as a NMU.
I have just uploaded a NMU with the attatched debdiff.
diff -Nru dirac-1.0.2/debian/changelog dirac-1.0.2/debian/changelog
--- dirac-1.0.2/debian/changelog 2014-07-29 07:14:50.000000000 +0000
+++ dirac-1.0.2/debian/changelog 2014-10-17 20:49:36.000000000 +0000
@@ -1,3 +1,14 @@
+dirac (1.0.2-7.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Use gcc/g++ 4.8 on armhf to avoid segfault in test. (Closes: 756777)
+ * Use -fstack-protector instead of -fstack-protector-strong on armhf as
+ gcc-4.8 doesn't support the later. (note: due to the aforementioned
+ segfault dirac was never built with the strong stack protector on armhf
+ so this is not a regression)
+
+ -- Peter Michael Green <plugw...@debian.org> Fri, 17 Oct 2014 20:04:24 +0000
+
dirac (1.0.2-7) unstable; urgency=medium
* Team upload.
diff -Nru dirac-1.0.2/debian/control dirac-1.0.2/debian/control
--- dirac-1.0.2/debian/control 2014-07-29 07:14:13.000000000 +0000
+++ dirac-1.0.2/debian/control 2014-10-17 20:08:20.000000000 +0000
@@ -7,7 +7,8 @@
Build-Depends:
autoconf,
debhelper (>= 9~),
- dh-autoreconf
+ dh-autoreconf,
+ gcc-4.8 [armhf], g++-4.8 [armhf]
Build-Depends-Indep:
doxygen-latex,
graphviz
diff -Nru dirac-1.0.2/debian/rules dirac-1.0.2/debian/rules
--- dirac-1.0.2/debian/rules 2014-07-29 07:11:08.000000000 +0000
+++ dirac-1.0.2/debian/rules 2014-10-17 20:02:19.000000000 +0000
@@ -1,5 +1,16 @@
#!/usr/bin/make -f
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifeq ($(DEB_HOST_ARCH),armhf)
+ export CC=gcc-4.8
+ export CXX=g++-4.8
+ export DEB_CFLAGS_MAINT_STRIP=-fstack-protector-strong
+ export DEB_CFLAGS_MAINT_APPEND=-fstack-protector
+ export DEB_CXXFLAGS_MAINT_STRIP=-fstack-protector-strong
+ export DEB_CXXFLAGS_MAINT_APPEND=-fstack-protector
+endif
+
+
%:
dh $@ --parallel --with autoreconf