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 3E30473D64 for ; Tue, 21 Apr 2015 09:11:01 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.14.9/8.14.9) with ESMTP id t3L9B1B7028733 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 21 Apr 2015 02:11:02 -0700 (PDT) Received: from [128.224.162.174] (128.224.162.174) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.224.2; Tue, 21 Apr 2015 02:11:01 -0700 Message-ID: <55361424.1080604@windriver.com> Date: Tue, 21 Apr 2015 17:11:00 +0800 From: Robert Yang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Richard Purdie References: <78a8e0beb1dd78a8461b994816267ec8848b2ca7.1427262046.git.liezhi.yang@windriver.com> <1429601943.26983.74.camel@linuxfoundation.org> In-Reply-To: <1429601943.26983.74.camel@linuxfoundation.org> Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH 1/1] libarchive: set CLEANBROKEN 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: Tue, 21 Apr 2015 09:11:02 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 04/21/2015 03:39 PM, Richard Purdie wrote: > On Tue, 2015-03-24 at 22:41 -0700, Robert Yang wrote: >> Errors when rebuild: >> checking for xml2-config... /path/to/tmp/sysroots/qemux86-64/usr/bin/crossscripts/xml2-config >> checking for xmlInitParser in -lxml2... no >> configure: error: in `/path/to/tmp/work/core2-64-poky-linux/libarchive/3.1.2-r0/libarchive-3.1.2': >> configure: error: Missing xml2 library >> >> Signed-off-by: Robert Yang >> --- >> .../libarchive/libarchive_3.1.2.bb | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb >> index 96e2d50..2ac8c5e 100644 >> --- a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb >> +++ b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb >> @@ -7,6 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b4e3ffd607d6686c6cb2f63394370841" >> >> DEPENDS = "e2fsprogs-native" >> >> +CLEANBROKEN = "1" >> + >> PACKAGECONFIG ?= "libxml2 zlib bz2" >> >> PACKAGECONFIG_append_class-target = "\ > > I just looked into this I will explain why this worries me. We patch > libarchive to remove the reference to xml2-config in SRC_URI. For this > error to appear, the patch must have been removed. > > The question is therefore why does it get removed and why isn't that an > error? Does the CVE patch get removed too? > > FWIW, "bitbake libarchive -c configure -f" does not reproduce the error > and the clean broken is therefore a workaround/hack. > > Actually, I just found what does break it is "bitbake libarchive -C > unpack". Why? Running "make clean" triggers configure to run again since > after unpack, the configure timestamp is more recent that config.status. > > So to fix this, we just need to touch config.status (if it exists) > before running make clean. We should probably do this in the autotools > class. Thanks, I will do more investigations on it. // Robert > > Cheers, > > Richard > > > > >