From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 9D22060596 for ; Thu, 11 Oct 2018 14:58:03 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id w9BEw3FS017859 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 11 Oct 2018 07:58:03 -0700 (PDT) Received: from [128.224.162.232] (128.224.162.232) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.408.0; Thu, 11 Oct 2018 07:58:02 -0700 To: , References: <20181011095511.5509-1-hongxu.jia@windriver.com> From: Hongxu Jia Message-ID: <8fe4eb7c-a838-e1da-a1a2-7acd201d9977@windriver.com> Date: Thu, 11 Oct 2018 22:58:00 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Subject: Re: [PATCH] openssl: use nativeperl to build 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: Thu, 11 Oct 2018 14:58:03 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 2018年10月11日 20:00, richard.purdie@linuxfoundation.org wrote: > On Thu, 2018-10-11 at 02:55 -0700, Hongxu Jia wrote: >> If host perl is old version (such as perl v5.16.3 on CentOS-7.5), >> the openssl-native failed at do_install, the reason is its Makefile >> is not correct which is generated at do_configure by perl script. >> >> Use nativeperl to assure latest perl on host for openssl build. >> >> Signed-off-by: Hongxu Jia >> --- >> meta/recipes-connectivity/openssl/openssl_1.1.1.bb | 6 ++++-- >> 1 file changed, 4 insertions(+), 2 deletions(-) > I think this will have a noticeable effect on built times unfortunately > since it means openssl-native would then depend upon perl-native... Hi RP, Yes, I do the test to build openssl-native from scratch, it requires extra 4 minutes 1. Use host perl 18 task real    1m33.978s user    0m0.728s sys     0m0.080s 2. Use nativeperl 114 tasks real    5m49.911s user    0m1.372s sys     0m0.140s But for a image build, the cost is not much (To exclude network affect, we assure all tarball/git exist in downloads) But build a image from scratch: time bitbake core-image-minimal 1. Use host perl NOTE: Tasks Summary: Attempted 1655 tasks of which 5 didn't need to be rerun and all succeeded. real    28m29.625s user    0m7.296s sys     0m0.988s 2. Use native perl NOTE: Tasks Summary: Attempted 1655 tasks of which 5 didn't need to be rerun and all succeeded. real    28m42.619s user    0m7.496s sys     0m0.952s As upstream said, it indeed require specific PERL version `If you are building OpenSSL 1.1.0 and above, then you will also need PERL 5.10 or high' https://wiki.openssl.org/index.php/Compilation_and_Installation And I found at least PERL 5.16.3 not work for OpenSSL 1.1.1 Or add a perl version detecting in insane check? We should report a lowest workable perl version number when detect failed. But we may update the version number in insane check when openssl is upgraded. //Hongxu > Cheers, > > Richard >