Source: freefem3d
Severity: normal
Tags: patch
User: [email protected]

Dear Maintainer,

The package freefem3d fails to build from source on ppc64el.
The compilation breaks due to the usage of keywords that conflict with gcc 
macros
(vector and bool).
Unsetting __vector fixes that, so I added it as a workaround for ppc64el only, 
in debian/rules.
I also added the usage of dh-autoreconf, which is recommended.

Thanks.

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 freefem3d-1.0pre10/debian/changelog freefem3d-1.0pre10/debian/changelog
--- freefem3d-1.0pre10/debian/changelog	2014-02-16 08:03:12.000000000 +0000
+++ freefem3d-1.0pre10/debian/changelog	2014-11-04 12:56:28.000000000 +0000
@@ -1,3 +1,9 @@
+freefem3d (1.0pre10-3.2ppc64el1) UNRELEASED; urgency=medium
+
+  * debian/rules: added dh-autoreconf and workaround to undef __vector to avoid conflict with the gcc macro. 
+
+ -- Fernando Seiti Furusato <[email protected]>  Tue, 04 Nov 2014 12:55:46 +0000
+
 freefem3d (1.0pre10-3.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru freefem3d-1.0pre10/debian/control freefem3d-1.0pre10/debian/control
--- freefem3d-1.0pre10/debian/control	2014-02-16 08:02:09.000000000 +0000
+++ freefem3d-1.0pre10/debian/control	2014-11-04 12:39:15.000000000 +0000
@@ -6,7 +6,7 @@
 Standards-Version: 3.9.2
 Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/freefem3d/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/freefem3d/trunk/
-Build-Depends: cdbs (>= 0.4.23-1.1), autotools-dev, debhelper (>= 4.1.0), automake1.11, libtool (>= 1.5), doc-base, bison, texlive, texlive-latex-extra
+Build-Depends: cdbs (>= 0.4.23-1.1), dh-autoreconf, debhelper (>= 4.1.0), automake1.11, libtool (>= 1.5), doc-base, bison, texlive, texlive-latex-extra
 
 Package: freefem3d
 Architecture: any
diff -Nru freefem3d-1.0pre10/debian/rules freefem3d-1.0pre10/debian/rules
--- freefem3d-1.0pre10/debian/rules	2014-02-16 08:02:09.000000000 +0000
+++ freefem3d-1.0pre10/debian/rules	2014-11-04 12:38:59.000000000 +0000
@@ -2,6 +2,7 @@
 
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/autoreconf.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 DEB_AC_AUX_DIR = $(DEB_SRCDIR)/m4
@@ -13,6 +14,11 @@
 DEB_AUTO_UPDATE_AUTOCONF = yes
 DEB_AUTO_UPDATE_AUTOHEADER = yes
 
+BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
+ifeq ($(BUILD_ARCH_CPU), ppc64el)
+	CPPFLAGS+=-U__vector
+endif
+
 clean::
 	rm -f aclocal.m4 config.guess config.h.in config.sub install-sh
 	rm -f libtool ltconfig ltmain.sh missing mkinstalldirs stamp-h.in

Reply via email to