From patchwork Mon Oct 14 13:23:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 283219 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 248962C0343 for ; Tue, 15 Oct 2013 00:23:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 89B6889C1D; Mon, 14 Oct 2013 13:23:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3OJqWG2-AXPL; Mon, 14 Oct 2013 13:23:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 15AAA893E7; Mon, 14 Oct 2013 13:23:09 +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 EDD631BF98D for ; Mon, 14 Oct 2013 13:23:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E92A08C7A4 for ; Mon, 14 Oct 2013 13:23:07 +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 NTRtujjXYU9S for ; Mon, 14 Oct 2013 13:23:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8ACBF8C7DC for ; Mon, 14 Oct 2013 13:23:06 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id xb4so7297810pbc.22 for ; Mon, 14 Oct 2013 06:23:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=eESbUnWOKVRB0Tg2yiuJRvU/hdnp/KMUzHW0xiV8ZAI=; b=JjEErWD+HMBB93ckLUmjGKQFjxqHm+Pih9J1mkgVXy2W7tqLPjGEa3iuG2oKuHxr+s qvgoZ8PX0RtgFqLUlqeY/cUZ4WhJmSSaXejP2Wf8I68JiHkOsNpvYLuRYF3vIG1zHpiw yuOWoAymKSI8jrtNtJdPuheDd9sX7mRRHhtXQR/olNGFcJ0PB7OFAfUm20RVCG4fBMF3 qNVThDsaQLpyWZCYYG9xAJJw5sjblU4ywe5ivSTmyIRsqYsvqZ3xV00o6xah0twxuoPM gMnk7G7L6zvlVGdRU38+7H+YgZSdTCPVAOKKpjlj542CG4fPChWpfRcgK8XckEUI6vfW uUcQ== X-Gm-Message-State: ALoCoQk/v4tlDGidD3+FeyQ/6BaiN4A7Q6O80jLelXQdnKmNaT03qCi/YG9QUma9/WkboMyXbDjI X-Received: by 10.66.164.136 with SMTP id yq8mr37234285pab.67.1381756986370; Mon, 14 Oct 2013 06:23:06 -0700 (PDT) Received: from [218.164.156.193] (218-164-156-193.dynamic.hinet.net. [218.164.156.193]) by mx.google.com with ESMTPSA id fy4sm78077800pbb.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 06:23:06 -0700 (PDT) Message-ID: <1381756982.15266.3.camel@phoenix> From: Axel Lin To: Peter Korsgaard Date: Mon, 14 Oct 2013 21:23:02 +0800 In-Reply-To: <1381756890.15266.1.camel@phoenix> References: <1381756890.15266.1.camel@phoenix> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: buildroot@busybox.net Subject: [Buildroot] [PATCH 3/3] tcl: specify ln -sf to remove existing destination file 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This fixes below build error when executing "make tcl-dirclean; make tcl-rebuild". ln -s tclsh8.4 /opt/test/br-x86/buildroot/output/target/usr/bin/tclsh ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/target/usr/bin/tclsh': File exists make: *** [/opt/test/br-x86/buildroot/output/build/tcl-8.4.19/.stamp_target_installed] Error 1 Signed-off-by: Axel Lin --- package/tcl/tcl.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk index 3291c1b..58f085a 100644 --- a/package/tcl/tcl.mk +++ b/package/tcl/tcl.mk @@ -37,7 +37,7 @@ endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH else define TCL_SYMLINK_TCLSH - ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh + ln -sf tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH endif