[oe] [meta-java][PATCH 3/4] openjre-8: fix debuginfo fixup in do_install
Jacob Kroon
jacob.kroon at gmail.com
Mon Jan 27 13:04:06 UTC 2020
On 1/27/20 12:37 PM, André Draszik wrote:
> Hi,
>
> On Mon, 2020-01-27 at 12:24 +0100, Richard Leitner wrote:
>> Based on a patch sent by Jacob Kroon.
>>
>> Signed-off-by: Richard Leitner <richard.leitner at skidata.com>
>> Cc: Jacob Kroon <jacob.kroon at gmail.com>
>> ---
>> recipes-core/openjdk/openjre-8_242.bb | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/recipes-core/openjdk/openjre-8_242.bb b/recipes-core/openjdk/openjre-8_242.bb
>> index 4ed2e6b..2c8a6a5 100644
>> --- a/recipes-core/openjdk/openjre-8_242.bb
>> +++ b/recipes-core/openjdk/openjre-8_242.bb
>> @@ -11,7 +11,7 @@ do_install() {
>> cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME}
>> chown -R root:root ${D}${JRE_HOME}
>> install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/
>> - find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
>> + [ -d ${D}${JDK_HOME} ] && find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
>
> Does this line make sense? The JRE build should not produce any files in the JDK_HOME
> directory, I think?
>
> So the only 'fix' this is doing is to silence 'find' to not print a warning about a
> directory it can't find?
>
It wasn't a warning - the build fails.
> Shouldn't the line be dropped completely instead?
>
> Should we worry if the JRE build (sometimes?) places files into JDK_HOME?
>
Right, I'm all for removing the line completely if this is the case.
Cheers,
Jacob
More information about the Openembedded-devel
mailing list