From patchwork Fri Jun 21 11:57:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 253202 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 92EB12C0084 for ; Fri, 21 Jun 2013 21:58:45 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E791410C10D; Fri, 21 Jun 2013 11:58:42 +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 jZqGHn-N4WhB; Fri, 21 Jun 2013 11:58:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B003610C0C7; Fri, 21 Jun 2013 11:57:37 +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 7D73C8F79E for ; Fri, 21 Jun 2013 11:57:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 79E788C724 for ; Fri, 21 Jun 2013 11:57:28 +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 7OdcHuw66ooH for ; Fri, 21 Jun 2013 11:57:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by whitealder.osuosl.org (Postfix) with ESMTPS id CC3808C4CD for ; Fri, 21 Jun 2013 11:57:26 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id u53so6334592wes.37 for ; Fri, 21 Jun 2013 04:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=/r8Rvj6XrxQAX7CdA6pWkXtV6RV6TJ8+syQFu/2sNJE=; b=uQmFSo0DYNBv0Ili4xq4mfT1GzLzGf9Aa2YSN0ubix4D0VQ8Ebte/1O/HGJya2jTAk UpKiXVa+AepyKWggNbYbchPv4KpQmXiJaQQx6vhRwB1lKfJgPjD4gcdlACGPZ6UcmWWf 2YUoFph6LXFu882eSn4WqQfpDWkL19cw/TSWdWSwBcRLwHW89KXzLu0G6+QVR3Lo5XfX JoOmn5u1cuF9ph4uk/V8fJijm8rOLspui7zddusiiKAZIRUeC0qMRGwcznJCUwpTiCHV nkRGieFkOHvQB7D9hEUUdBlOMwaLXn02vB+Eg9Lg82PcyWmg79mm6J+xfRT4Zkw3V4gD RZnQ== X-Received: by 10.180.210.132 with SMTP id mu4mr2626797wic.5.1371815845272; Fri, 21 Jun 2013 04:57:25 -0700 (PDT) Received: from lnx-rg.pr (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPSA id fv11sm6698658wic.11.2013.06.21.04.57.23 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 04:57:24 -0700 (PDT) From: richard.genoud@gmail.com To: buildroot@busybox.net Date: Fri, 21 Jun 2013 13:57:01 +0200 Message-Id: <51c43fa4.ebbbb40a.0abf.ffffba19@mx.google.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1371815822-29453-1-git-send-email-y> References: <1371743610-17810-1-git-send-email-richard.genoud@gmail.com> <1371815822-29453-1-git-send-email-y> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH 5/6] tcl: add a tclsh symlink X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net From: Richard Genoud tclsh is installed with its version number (tclshx.y) but scripts (like usb_modeswitch_dispatcher) are calling tclsh, not tclshx.y. Signed-off-by: Richard Genoud --- package/tcl/tcl.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk index 90989d0..b50daeb 100644 --- a/package/tcl/tcl.mk +++ b/package/tcl/tcl.mk @@ -30,7 +30,12 @@ endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_ENCODINGS endif -ifneq ($(BR2_PACKAGE_TCL_TCLSH),y) +ifeq ($(BR2_PACKAGE_TCL_TCLSH),y) +define TCL_SYMLINK_TCLSH + ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh +endef +TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH +else define TCL_REMOVE_TCLSH rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR) endef