From patchwork Fri Nov 7 12:54:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 408100 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 300041400D2 for ; Fri, 7 Nov 2014 23:54:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 70FA3923E5; Fri, 7 Nov 2014 12:54:34 +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 gwEApw9pnHi3; Fri, 7 Nov 2014 12:54:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 91E1C923E8; Fri, 7 Nov 2014 12:54:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3E7291C27CC for ; Fri, 7 Nov 2014 12:54:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 39F39923E8 for ; Fri, 7 Nov 2014 12:54:32 +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 0SIN-nyWxKzn for ; Fri, 7 Nov 2014 12:54:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.zacarias.com.ar (www.zacarias.com.ar [62.210.192.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5ED9D923E5 for ; Fri, 7 Nov 2014 12:54:31 +0000 (UTC) Received: from asgard (cpe-186-23-17-245.telecentro-reversos.com.ar [186.23.17.245] (may be forged)) (authenticated bits=0) by www.zacarias.com.ar (8.14.9/8.14.9) with ESMTP id sA7CsONA003200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 7 Nov 2014 12:54:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1415364869; bh=JgCpHC+uNPTQF9DTt4xM8/TuPcmZEF592nRPKS/KA1Y=; h=From:To:Cc:Subject:Date; b=n8N/zsUxHyBxlggIhxsC4UFOOksk2/6h+h6bd2UKM2XqfCNT+/CeOZL0e7tyZw0MD tJYh/ZcQUqWJtI5gefxrmVx0dg3RHHBgMrsEN9SzyGqZcCjG50ScALUFDaiG6kMXce 5V9hLVtwEi8GXosJzQbDpXT/Or1SM6gM7TBk3HBw= Received: by asgard (sSMTP sendmail emulation); Fri, 07 Nov 2014 09:54:19 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Fri, 7 Nov 2014 09:54:19 -0300 Message-Id: <1415364859-23792-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 2.0.4 X-Virus-Scanned: clamav-milter 0.98.4 at www X-Virus-Status: Clean Subject: [Buildroot] [PATCH] grep: fix build failure for musl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" musl doesn't implement re_match and friends and coreutils fails to detect this properly, so force internal regex routines for musl. Signed-off-by: Gustavo Zacarias --- package/grep/grep.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/grep/grep.mk b/package/grep/grep.mk index e07f169..2c2477c 100644 --- a/package/grep/grep.mk +++ b/package/grep/grep.mk @@ -9,7 +9,8 @@ GREP_SITE = $(BR2_GNU_MIRROR)/grep GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_LICENSE = GPLv3+ GREP_LICENSE_FILES = COPYING -GREP_CONF_OPTS = --disable-perl-regexp --without-included-regex +GREP_CONF_OPTS = --disable-perl-regexp \ + $(if $(BR2_TOOLCHAIN_USES_MUSL),--with-included-regex) GREP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) # link with iconv if enabled