From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Santos Date: Wed, 11 Jul 2018 18:48:49 -0300 (BRT) Subject: [Buildroot] [PATCH v2 2/2] coreutils: optimize the '[' symlink In-Reply-To: <5821c4c9a85e95a15423616c8a7f674df515b714.1531338679.git.baruch@tkos.co.il> References: <2b42d6f4f947a7423813916cd6f8e5f37c5b113a.1531338679.git.baruch@tkos.co.il> <5821c4c9a85e95a15423616c8a7f674df515b714.1531338679.git.baruch@tkos.co.il> Message-ID: <45644937.3226443.1531345729370.JavaMail.zimbra@datacom.com.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > From: "Baruch Siach" > To: "buildroot" > Cc: "DATACOM" , "Arnout Vandecappelle" , "Baruch Siach" > Sent: Wednesday, July 11, 2018 4:51:19 PM > Subject: [PATCH v2 2/2] coreutils: optimize the '[' symlink > Link '[' directly to the coreutils binary instead of going through > 'test'. > > Suggested-by: Arnout Vandecappelle > Signed-off-by: Baruch Siach > --- > v2: New patch in this series > --- > package/coreutils/coreutils.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk > index 2fb4a32c794f..7e7251ff7396 100644 > --- a/package/coreutils/coreutils.mk > +++ b/package/coreutils/coreutils.mk > @@ -112,7 +112,7 @@ endif > > define COREUTILS_CLEANUP > # link for archaic shells > - ln -fs test $(TARGET_DIR)/usr/bin/[ > + ln -fs coreutils $(TARGET_DIR)/usr/bin/[ > # gnu thinks chroot is in bin, debian thinks it's in sbin > rm -f $(TARGET_DIR)/usr/bin/chroot > ln -sf ../bin/coreutils $(TARGET_DIR)/usr/sbin/chroot > -- > 2.18.0 Reviewd-by: Carlos Santos -- Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer