From patchwork Sat Dec 16 20:42:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 849555 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yzfQ10w6cz9t3V for ; Sun, 17 Dec 2017 07:43:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 817BF86F89; Sat, 16 Dec 2017 20:43:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CTUl4a1UVUxZ; Sat, 16 Dec 2017 20:42:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 497D686F1D; Sat, 16 Dec 2017 20:42:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DCEDE1C0539 for ; Sat, 16 Dec 2017 20:42:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D5761875D1 for ; Sat, 16 Dec 2017 20:42:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4PyVLaN4-XVl for ; Sat, 16 Dec 2017 20:42:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by whitealder.osuosl.org (Postfix) with ESMTPS id DF42F87652 for ; Sat, 16 Dec 2017 20:42:52 +0000 (UTC) Received: from tarshish.tkos.co.il (unknown [10.0.8.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPSA id 47F3044047A; Sat, 16 Dec 2017 22:42:31 +0200 (IST) From: Baruch Siach To: buildroot@busybox.net Date: Sat, 16 Dec 2017 22:42:41 +0200 Message-Id: <2e227ffb5d56b6d3b40306b14c32e1b6aaa4accc.1513456961.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.15.1 Subject: [Buildroot] [PATCH] libgpgme: fix build on MIPS with older kernel headers X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Philipp Claves , Vicente Olivert Riera MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 Cc: Philipp Claves Signed-off-by: Baruch Siach --- 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))