From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 8460173FE4 for ; Wed, 13 May 2015 02:27:34 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.9) with ESMTP id t4D2RZWk003972 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 12 May 2015 19:27:35 -0700 (PDT) Received: from [128.224.163.153] (128.224.163.153) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 12 May 2015 19:27:34 -0700 Message-ID: <5552B696.8010100@windriver.com> Date: Wed, 13 May 2015 10:27:34 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Khem Raj References: <3030d69a4aa172f6af394a142075414bba95e61d.1431411478.git.Qi.Chen@windriver.com> <6BA6B5A3-7785-4130-AE6E-42436EF2D8A3@gmail.com> <5552ACB3.8060805@windriver.com> <187E6A9D-C952-418F-81BE-76D2E08AFDC3@gmail.com> In-Reply-To: <187E6A9D-C952-418F-81BE-76D2E08AFDC3@gmail.com> X-Originating-IP: [128.224.163.153] Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH V3 1/2] populate_sdk_ext: install the latest buildtools-tarball X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2015 02:27:35 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 05/13/2015 09:56 AM, Khem Raj wrote: >> On May 12, 2015, at 6:45 PM, ChenQi wrote: >> >> On 05/13/2015 12:19 AM, Khem Raj wrote: >>>> On May 11, 2015, at 11:19 PM, Chen Qi wrote: >>>> >>>> - install ${SDK_DEPLOY}/${DISTRO}-${TCLIBC}-${SDK_ARCH}-buildtools-tarball-${TUNE_PKGARCH}-buildtools-nativesdk-standalone-${DISTRO_VERSION}.sh ${SDK_OUTPUT}/${SDKPATH} >>>> + # find latest buildtools-tarball and install it >>>> + buildtools_path=`ls -t1 ${SDK_DEPLOY}/${DISTRO}-${TCLIBC}-${SDK_ARCH}-buildtools-tarball-${TUNE_PKGARCH}-buildtools-nativesdk-standalone-*.sh | head -n1` >>>> + install $buildtools_path ${SDK_OUTPUT}/${SDKPATH} >>>> >>> why not create a symink instead of poking using wild chars >> Because it's simpler. > what happens if I touch an older installer ? Hi Khem, I make this patch to avoid installing a non-existent buildools-tarball. If we touch an old buildtools-tarball, the installation would still succeed. The touched one is installed. What would lead to a potential problem is the following situation. The user built buildtools-tarball, after one day, he modified key part of buildtools-tarball recipe, rebuilt it, and then he deliberately touched the old one, and then he built an ext SDK. I don't think that's a situation we need to take care of. But if you insist that we should, you can suggest a reasonable symlink name and I would make a new patch. Best Regards, Chen Qi > >> //Chen Qi