Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gnupg: fix build failure on MIPS64
@ 2012-12-16 14:59 Thomas Petazzoni
  2012-12-16 15:52 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2012-12-16 14:59 UTC (permalink / raw)
  To: buildroot

Fixes:

  http://autobuild.buildroot.org/results/49d5891dcecf2cce8de9f2bdb16a76ff86579f45/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/gnupg/gnupg-mips64-build-fix.patch |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/gnupg/gnupg-mips64-build-fix.patch

diff --git a/package/gnupg/gnupg-mips64-build-fix.patch b/package/gnupg/gnupg-mips64-build-fix.patch
new file mode 100644
index 0000000..014435c
--- /dev/null
+++ b/package/gnupg/gnupg-mips64-build-fix.patch
@@ -0,0 +1,20 @@
+Fix build issue on MIPS64
+
+On MIPS64, there is a syntax problem in the preprocessor
+conditions. Fix that to avoid a build failure.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/mpi/longlong.h
+===================================================================
+--- a/mpi/longlong.h
++++ b/mpi/longlong.h
+@@ -752,7 +752,7 @@
+     (w1) = _r >> 64;                                                    \
+     (w0) = (UDItype) _r;                                                \
+   } while (0)
+-# elif if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
++# elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+ #  define umul_ppmm(w1, w0, u, v)                                       \
+      __asm__ ("dmultu %2,%3"                                            \
+               : "=l" ((UDItype)(w0)),                                   \
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] gnupg: fix build failure on MIPS64
  2012-12-16 14:59 [Buildroot] [PATCH] gnupg: fix build failure on MIPS64 Thomas Petazzoni
@ 2012-12-16 15:52 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2012-12-16 15:52 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Fixes:
 Thomas>   http://autobuild.buildroot.org/results/49d5891dcecf2cce8de9f2bdb16a76ff86579f45/build-end.log

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-16 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-16 14:59 [Buildroot] [PATCH] gnupg: fix build failure on MIPS64 Thomas Petazzoni
2012-12-16 15:52 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox