GCC 6 abs to std::abs fix accepted and committed upstream: https://github.com/timschmidt/repsnapper/commit/93dde1ef83c0c1c555f3f1ca8ff477d14d29a1e9
Original pull request: https://github.com/timschmidt/repsnapper/pull/119 Attached patch and a debdiff, the debdiff includes a workaround for bug #810907 (avoids yet another FTBFS on powerpc/ppc64el). -- Tiago Stürmer Daitx Software Engineer tiago.da...@canonical.com PGP Key: 4096R/F5B213BE (hkp://keyserver.ubuntu.com) Fingerprint = 45D0 FE5A 8109 1E91 866E 8CA4 1931 8D5E F5B2 13BE
repsnapper_2.4a0-1_repsnapper_2.4a0-1ubuntu1.debdiff
Description: Binary data
Description: resnapper FTBFS due to mismathing headers in linux-libc-dev The headers in linux-libc-dev are different in powerpc/ppc64el compared to other archs, they seems to be missing include clauses to the header under the asm-generic/ directory. This patch works around that by explicitly including both headers under asm-generic. Note that the include of arm/termbits.h had to be removed because it causes yet another conflict, this time due to the redefinition of types termios and ktermios, which also only affects powepc/ppc64el. Author: Tiago Stürmer Daitx <tiago.da...@canonical.com> Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810907 Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/repsnapper/+bug/1619100 Forwarded: https://bugs.launchpad.net/bugs/1619446 Last-Update: 2016-09-01 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/printer/custom_baud.cpp +++ b/src/printer/custom_baud.cpp @@ -6,7 +6,8 @@ #include <cstdlib> #include <fcntl.h> #include <sys/ioctl.h> -#include <asm/termbits.h> +#include <asm-generic/ioctls.h> +#include <asm-generic/termbits.h> #endif bool set_custom_baudrate( int device_fd, int baudrate ) {