All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libgpgme: fix build on MIPS with older kernel headers
@ 2017-12-16 20:42 Baruch Siach
  2017-12-18 10:10 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2017-12-16 20:42 UTC (permalink / raw)
  To: buildroot

MIPS N64 ABI has been missing getdents64 wire up until kernel version
3.10. Disable use of getdents on older kernels.

Fixes:
http://autobuild.buildroot.net/results/961/9619062ce6642ae4121d7debb3b4c632c88723d5/

Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Cc: Philipp Claves <claves@budelmann-elektronik.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/libgpgme/libgpgme.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/libgpgme/libgpgme.mk b/package/libgpgme/libgpgme.mk
index 31f25b4645b0..5c46c7c561ac 100644
--- a/package/libgpgme/libgpgme.mk
+++ b/package/libgpgme/libgpgme.mk
@@ -35,4 +35,9 @@ LIBGPGME_CONF_ENV += LIBS="-largp" ac_cv_type_error_t=yes
 LIBGPGME_DEPENDENCIES += argp-standalone
 endif
 
+# MIPS N64 (re)introduced getdents64 in kernel version 3.10
+ifeq ($(BR2_MIPS_NABI64)x$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10),yx)
+LIBGPGME_CONF_OPTS += --disable-linux-getdents
+endif
+
 $(eval $(autotools-package))
-- 
2.15.1

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

* [Buildroot] [PATCH] libgpgme: fix build on MIPS with older kernel headers
  2017-12-16 20:42 [Buildroot] [PATCH] libgpgme: fix build on MIPS with older kernel headers Baruch Siach
@ 2017-12-18 10:10 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-12-18 10:10 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 16 Dec 2017 22:42:41 +0200, Baruch Siach wrote:
> MIPS N64 ABI has been missing getdents64 wire up until kernel version
> 3.10. Disable use of getdents on older kernels.
> 
> Fixes:
> http://autobuild.buildroot.net/results/961/9619062ce6642ae4121d7debb3b4c632c88723d5/
> 
> Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> Cc: Philipp Claves <claves@budelmann-elektronik.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/libgpgme/libgpgme.mk | 5 +++++
>  1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-12-18 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-16 20:42 [Buildroot] [PATCH] libgpgme: fix build on MIPS with older kernel headers Baruch Siach
2017-12-18 10:10 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.