Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id B603478DC1 for ; Tue, 12 Jun 2018 11:00:11 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w5CAxJCS029772 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 12 Jun 2018 03:59:50 -0700 Received: from [128.224.162.186] (128.224.162.186) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.399.0; Tue, 12 Jun 2018 03:59:26 -0700 To: Richard Leitner , References: <20180607092459.33931-1-wenlin.kang@windriver.com> <20180607092459.33931-2-wenlin.kang@windriver.com> <5a5c799e-4542-412f-8225-3f2ada94c8f3@skidata.com> From: Wenlin Kang Message-ID: <32dc8dba-e59c-d86a-140d-f161787cad67@windriver.com> Date: Tue, 12 Jun 2018 18:59:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <5a5c799e-4542-412f-8225-3f2ada94c8f3@skidata.com> X-Originating-IP: [128.224.162.186] Subject: Re: [meta-java][PATCH 2/2] openjdk-8: combine the -dbg package X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 11:00:11 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 2018年06月12日 16:01, Richard Leitner wrote: Hi Richard > Hi Wenlin, > as we clarified the "one -dbg package per recipe" thing I have some > comments on the patch itself. > > > On 06/07/2018 11:24 AM, Wenlin Kang wrote: >> One recipe should only have one -dbg package, because OE only picks >> up all .debug file into the last one -dbg package listed in variable >> PACKAGES. > May you please include a reference to that statement from "Ross Burton"? What about changing the comments as below: openjdk-8: remove redunant FILES_${PN}-dbg One recipe should only have one -dbg package, because OE only picks up all .debug file into the last one -dbg package listed in variable PACKAGES. Comments(oe-core's commit a3b000643898d7402b9e57c02e8d10e677cc9722) from Ross Burton as below: "meta: more removals of redunant FILES_${PN}-dbg In some recipes overly-split -dbg packages were merged into PN-dbg. Unless there's a very good reason, recipes should have a single -dev and -dbg package. " > >> Signed-off-by: Wenlin Kang >> --- >> recipes-core/openjdk/openjdk-8_16xbyy.bb | 10 +++------- >> 1 file changed, 3 insertions(+), 7 deletions(-) >> >> diff --git a/recipes-core/openjdk/openjdk-8_16xbyy.bb b/recipes-core/openjdk/openjdk-8_16xbyy.bb >> index dd0ed1d..1d7d794 100644 >> --- a/recipes-core/openjdk/openjdk-8_16xbyy.bb >> +++ b/recipes-core/openjdk/openjdk-8_16xbyy.bb >> @@ -14,7 +14,6 @@ do_install() { >> } >> >> PACKAGES_append = " \ >> - ${PN}-demo-dbg \ >> ${PN}-demo \ >> ${PN}-source \ >> " >> @@ -47,12 +46,6 @@ FILES_${PN}-dbg_append = "\ >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/headless/.debug/ \ >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/xawt/.debug/ \ >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/client/.debug/ \ >> -" >> - >> -FILES_${PN}-demo = " ${JDK_HOME}/demo ${JDK_HOME}/sample " >> -RDEPENDS_${PN}-demo = " ${PN} " >> - >> -FILES_${PN}-demo-dbg = "\ >> ${JDK_HOME}/demo/jvmti/gctest/lib/.debug/ \ >> ${JDK_HOME}/demo/jvmti/heapTracker/lib/.debug/ \ >> ${JDK_HOME}/demo/jvmti/heapViewer/lib/.debug/ \ >> @@ -64,6 +57,9 @@ FILES_${PN}-demo-dbg = "\ >> ${JDK_HOME}/demo/jvmti/compiledMethodLoad/lib/.debug/ \ >> " > AFAIK as all ".debug" are included in the -dbg packages it should > be fine if you remove the whole FILES_${PN}-dbg_append definition. I have tested it, that's OK after remove the whole FILES_${PN}-dbg_append definition. Do you mean that we should also remove FILES_${PN}-dbg_append? > >> >> +FILES_${PN}-demo = " ${JDK_HOME}/demo ${JDK_HOME}/sample " >> +RDEPENDS_${PN}-demo = " ${PN} " >> + >> FILES_${PN}-doc_append = "\ >> ${JDK_HOME}/man \ >> ${JDK_HOME}/ASSEMBLY_EXCEPTION \ > > thanks®ards;Richard.L > -- Thanks, Wenlin Kang