Skip to contentSkip to conversation

libgpgme: fix build on MIPS with older kernel headers

PATCH New Baruch Siach 2 participants 2 messages Dec 16, 2017 – Dec 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgpgme: fix build on MIPS with older kernel headers

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 <[email protected]>
Cc Philipp Claves <[email protected]>
---
 package/libgpgme/libgpgme.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/libgpgme/libgpgme.mk +5 -0
index 31f25b4645b0..5c46c7c561ac 100644
@@ -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))
Signature · 1 line
2.15.1
#1 lore raw

PATCH 1/1 libgpgme: fix build on MIPS with older kernel headers

Hello,

Quoted 6 lines · Baruch Siach

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/

Quoted 6 lines
Cc Vicente Olivert Riera <[email protected]>
Cc Philipp Claves <[email protected]>
---
 package/libgpgme/libgpgme.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

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