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

Dear Maintainer,

The package rasmol fails to build from source on ppc64el due to a conflict with
gcc macro named vector.

A way I found to undefine the macro and not messing with the actual source code 
was
to do that by using the flag -Uvector through debian/rules itself.

It can also be done by using #undef vector in Imakefile.

The patch is attached.

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 rasmol-2.7.5.2/debian/changelog rasmol-2.7.5.2/debian/changelog
--- rasmol-2.7.5.2/debian/changelog	2013-05-27 15:34:44.000000000 +0000
+++ rasmol-2.7.5.2/debian/changelog	2014-10-29 20:50:18.000000000 +0000
@@ -1,3 +1,10 @@
+rasmol (2.7.5.2-2ppc64el1) UNRELEASED; urgency=medium
+
+  * Undefined vector through -Uvector so the keyword does not conflict with the
+    gcc macro with the same name. 
+
+ -- Fernando Seiti Furusato <[email protected]>  Wed, 29 Oct 2014 20:48:53 +0000
+
 rasmol (2.7.5.2-2) unstable; urgency=low
 
   [ Andreas Tille ]
diff -Nru rasmol-2.7.5.2/debian/rules rasmol-2.7.5.2/debian/rules
--- rasmol-2.7.5.2/debian/rules	2013-05-27 15:34:44.000000000 +0000
+++ rasmol-2.7.5.2/debian/rules	2014-10-29 20:45:10.000000000 +0000
@@ -8,7 +8,7 @@
 src/rasmol-gtk:
 	dh_testdir
 	-rm -f x11-stamp
-	cd $(CURDIR)/src ; xmkmf -DGTKWIN ; cd $(CURDIR)
+	cd $(CURDIR)/src ; xmkmf '-DGTKWIN -Uvector' ; cd $(CURDIR)
 	$(MAKE) -C src clean;
 	$(MAKE) -C src
 	mv src/rasmol src/rasmol-gtk
@@ -16,7 +16,7 @@
 build-x11: src/rasmol.8 src/rasmol.16 src/rasmol.32
 
 x11-stamp:
-	cd $(CURDIR)/src ; xmkmf -DX11WIN ; cd $(CURDIR)
+	cd $(CURDIR)/src ; xmkmf '-DX11WIN -Uvector' ; cd $(CURDIR)
 	touch $@
 
 src/rasmol.8: x11-stamp
-- 
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to