[yocto] strange QA issue - how to ignore automatic so dependency

Dvorkin Dmitry dvorkin at tibbo.com
Mon Nov 30 15:32:15 PST 2015



On 01.12.2015 02:22, Khem Raj wrote:
>> On Nov 30, 2015, at 3:15 PM, Dvorkin Dmitry <dvorkin at tibbo.com> wrote:
>>
>> I know. But
>> it really does not require to have libX* in the system to successfully run JDK+our software
>> We're using simple tar xvzf jdk-...tar.gz in all of our embedded systems, so I know what I'm talking about, sorry.
> you are walking muddy water, I will caution you before I hand a chainsaw to you as I suggest something as below.
I see. Thank you!

> you can use patchelf or something like that on these binaries and remove the dependencies after unpacking them
> run the .so in question via patchelf --remove-needed <deplib-to-remove>
> and that will make shlibs code in OE not flag them
>
>> This feature blocks my efforts to have a well-designed system with Poky/Yocto... :(
> Well designed would mean to adhere to prerequisites as needed by prebuilt software you are using
>
>>
>> On 01.12.2015 02:06, Khem Raj wrote:
>>>> On Nov 30, 2015, at 2:42 PM, Dvorkin Dmitry <dvorkin at tibbo.com> wrote:
>>>>
>>>>
>>>> I'm trying to include binary JDK into my linux image.
>>>> just unpacking jdk-...tar.gz into recipe image and packing it into RPM (I'm using RPM as base of my distribution).
>>>>
>>>> after adding
>>>> INSANE_SKIP_${PN} = "file-rdeps ldflags dev-so build-deps"
>>>> into recipe I've got no errors or warning while building recipe itself,
>>>> RPM is created and it contains some dynamic libraries dependencies....
>>>>
>>>> but I've got error building rootfs with this recipe:
>>>>
>>>> ....(skipped)...
>>>> Updating cache... ######################################## [100%]
>>>>
>>>> Computing transaction...error: Can't install tps-jdk-7u60+linux+arm+vfp+hflt-r0 at cortexa8hf_vfp_neon: no package provides libXrender.so.1
>>>>
>>>> I can't include libXrender.so.1 into my image, I can't remove libraries from JDK.
>>>>
>>>> Is there any way to ignore this dependency?
>>> No, and if you ignored it then this binary won’t function as expected on the system. So you should find out providers of missing
>>> rdeps and add them to your image via depends
>>>
>>>> something like RPM_LDD_IGNORE_CHECK="libX*"
>>>>
>>>> --
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto at yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list