Source: mpv Version: 0.6.2-2 Severity: normal Tags: patch User: debian-powe...@lists.debian.org
Dear Maintainer, The package mpv fails to build from source on ppc64el, because the keyword bool is conflicting with altivec's macro with the same keyword. The solution to that was to disable altivec in d/rules for ppc64el only, which allowed the package to build without problems. The patch is attached. Regards. Fernando -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: ppc64el (ppc64le) Kernel: Linux 3.16-trunk-powerpc64le (SMP w/32 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
diff -Nru mpv-0.6.2/debian/changelog mpv-0.6.2/debian/changelog --- mpv-0.6.2/debian/changelog 2014-10-25 13:17:04.000000000 +0000 +++ mpv-0.6.2/debian/changelog 2014-11-19 16:17:03.000000000 +0000 @@ -1,3 +1,10 @@ +mpv (0.6.2-2ppc64el1) UNRELEASED; urgency=medium + + * Disable vsx/altivec for ppc64el, because gcc ends up using altivec's macro 'bool' during + compilation, which breaks the build. + + -- Fernando Seiti Furusato <ferse...@br.ibm.com> Wed, 19 Nov 2014 16:15:54 +0000 + mpv (0.6.2-2) unstable; urgency=medium * Re-enable CDDA support via libcdio (Closes: #766725) diff -Nru mpv-0.6.2/debian/rules mpv-0.6.2/debian/rules --- mpv-0.6.2/debian/rules 2014-10-25 13:17:04.000000000 +0000 +++ mpv-0.6.2/debian/rules 2014-11-19 16:12:23.000000000 +0000 @@ -2,6 +2,13 @@ export DEB_BUILD_MAINT_OPTIONS:=hardening=+all # #741439 +DEB_BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) + +ifeq ($(DEB_BUILD_ARCH_CPU), ppc64el) + CXXFLAGS+=-mno-altivec -mno-vsx + CFLAGS+=-mno-altivec -mno-vsx +endif + %: dh $@