From patchwork Tue Feb 4 10:47:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1233252 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=ZRe4pmAx; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48BhGw04VhzB3wT for ; Tue, 4 Feb 2020 21:47:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7B12385078; Tue, 4 Feb 2020 10:47:34 +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 MrLf28uir-vE; Tue, 4 Feb 2020 10:47:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EE3698506E; Tue, 4 Feb 2020 10:47:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id AB5A71BF841 for ; Tue, 4 Feb 2020 10:47:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A817E8506E for ; Tue, 4 Feb 2020 10:47:32 +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 etKjjTLgFcuJ for ; Tue, 4 Feb 2020 10:47:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0187285065 for ; Tue, 4 Feb 2020 10:47:30 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id l18so11881868lfc.1 for ; Tue, 04 Feb 2020 02:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=yjZTzNX/zp6yhG+Qb0DVAMxTNnkOKxk0luBUNOXbmnU=; b=ZRe4pmAxWZJbVqPwc0zGkgtgq/+XJTOgRYsjFgIKGoJ4yzI+sdZ0mjAFZ5O3iwyYLL FI5oWEXHQBWssLi1SP72KOi65ofs8wNZUPzTiGPx+2Mc6ThLVy6aQXpEGp3ri1tJseq9 PKvMFN7XfTNhvf3ZuMmnq8v1YmSlb2VKgwglg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yjZTzNX/zp6yhG+Qb0DVAMxTNnkOKxk0luBUNOXbmnU=; b=r6sOd3UjjXpleOF1Z0m0XCfr9U4CLEWztUKKzgQaZHpWNpHgnueLTKdhhkYJg3iIi/ 32u3BIcLxhEf4CSb7ftkcd4MZDxylcJrerIlHJY/pggm5ECFg7BoAz9Tx5Z6dLSzcDek dwtDqYf+tLcQeHhuAYgaZzToxPhBl4yiojX2zX9xXjwvluyLvB0Gv2njm0U4czqEKBPE bUWNo50+C/Ah480Ot2OsrBHTI7MYdpvmJN1A/+RvhYELqete1Rong7rwa31UqZibqSNn ORS8aH6/95DAgsbNkTzW4GhPhz7979ewQ6gQC08bI5lrZ8MZVlpqwSNL+n0Jip96nvb0 898g== X-Gm-Message-State: APjAAAU5dBexN2xKsWLMzzNsT5JUTvj/FRdnDDYlmF99USa+0BHaI6Eo Lvl1GxVqA8zqo9BkEM/1CfeR2S8vaUeNJQ== X-Google-Smtp-Source: APXvYqx511u/ks2fuwInOa666+gI1tieL+sbk5NMkrOwHiYw8d6IC0n/i0gpf8pSP4F2Sw0cTDXRrQ== X-Received: by 2002:a19:f514:: with SMTP id j20mr14570044lfb.31.1580813248838; Tue, 04 Feb 2020 02:47:28 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:4da8:e122:c3b:1b67]) by smtp.gmail.com with ESMTPSA id f21sm9418897ljc.30.2020.02.04.02.47.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Feb 2020 02:47:28 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 4 Feb 2020 11:47:10 +0100 Message-Id: <1580813230-11405-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] package/grep: fix busybox aliasing X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When grep package is selected, it should be installed at the same exact location where busybox installs it too, this way the grep/egrep/fgrep executables will end up overwriting the busybox provided ones. Busybox installs *grep executables in /bin, grep package in /usr/bin. Moreover, egrep/fgrep is using autotools SHELL variable to execve the grep executable with correct options, SHELL is defaulted to /bin/bash which is usually not available on target. Signed-off-by: Angelo Compagnucci --- package/grep/grep.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/grep/grep.mk b/package/grep/grep.mk index 96685b0..7365a57 100644 --- a/package/grep/grep.mk +++ b/package/grep/grep.mk @@ -10,6 +10,7 @@ GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_LICENSE = GPL-3.0+ GREP_LICENSE_FILES = COPYING GREP_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) +GREP_CONF_OPTS = SHELL=/bin/sh --exec-prefix=/ # link with iconv if enabled ifeq ($(BR2_PACKAGE_LIBICONV),y)