On 2023-12-14 5:25 p.m., Khem Raj wrote:


On Thu, Dec 14, 2023 at 5:13 PM Ron Eggler <ron.egg...@mistywest.com> wrote:


    On 2023-12-14 5:00 p.m., Khem Raj wrote:
    On Thu, Dec 14, 2023 at 4:26 PM Mistyron<ron.egg...@mistywest.com>  
<mailto:ron.egg...@mistywest.com>  wrote:
    Hi,

    I'm working with dunfell and want to create a symlink after compilation
    of the library:

    I added the following in aziot-keys_%.bbapend:

    do_install_append() {
          install -d ${D}/usr/lib
          lnr ${D}/usr/lib64/rust/libaziot_keys.so ${D}/usr/lib/libaziot_keys.so
    try using ln -rs instead of lnr.

    With ln -rs I get the following error:

    ERROR: aziot-keys-1.4.7.AUTOINC+91e058880c-r0 do_package: QA
    Issue: aziot-keys: Files/directories were installed but not
    shipped in any package: /usr/lib /usr/lib/libaziot_keys.so


Right so you need to add /usr/lib to FILES variable

Right, so I've updated my recipe to:

FILES_${PN} += "/usr/lib" do_install_append() { install -d ${D}/usr/lib cd ${D}/usr/lib lnr ${D}../lib64/rust/libaziot_keys.so libaziot_keys.so }

With this I don't get any errors nor warnings but the symlink does not get created.

I tried to replace lnr with ln -sr but am getting errors with that:

ERROR: aziot-keys-1.4.7.AUTOINC+91e058880c-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package aziot-keys contains symlink .so '/usr/lib/libaziot_keys.so' [dev-so] ERROR: aziot-keys-1.4.7.AUTOINC+91e058880c-r0 do_package_qa: Error executing a python function in exec_func_python() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_func_python() autogenerated', lineno: 2, function: <module> ... ... Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/yocto/rzv_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/aziot-keys/1.4.7.AUTOINC+91e058880c-r0/packages-split/aziot-keys/usr/lib/libaziot_keys.so' ERROR: Logfile of failure stored in: /home/yocto/rzv_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/aziot-keys/1.4.7.AUTOINC+91e058880c-r0/temp/log.do_package_qa.88151 ERROR: Task (/home/yocto/rzv_vlp_v3.0.0/build/../meta-iotedge/recipes-core/aziot-keys/aziot-keys_1.4.7.bb:do_package_qa) failed with exit code '1'

But I do wonder if your link should be inside ${libdir} which is /usr/lib64 in your case
I don't think so as after boot, I can create the link with:

# ln -s /usr/lib64/rust/libaziot_keys.so /usr/lib/libaziot_keys.so


    Please set FILES such that these items are packaged. Alternatively
    if they are unneeded, avoid installing them or delete them within
    do_install.
    aziot-keys: 2 installed and not shipped files. [installed-vs-shipped]
    ERROR: aziot-keys-1.4.7.AUTOINC+91e058880c-r0 do_package: Fatal QA
    errors found, failing task.
    ERROR: Logfile of failure stored in:
    
/home/yocto/rzv_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/aziot-keys/1.4.7.AUTOINC+91e058880c-r0/temp/log.do_package.64055
    ERROR: Task
    
(/home/yocto/rzv_vlp_v3.0.0/build/../meta-iotedge/recipes-core/aziot-keys/aziot-keys_1.4.7.bb:do_package)
    failed with exit code '1'

    I came across a post that read that for dunfell, lnr shoudl be
    used (rather than ln -r for newer versions)

    }

    Yet, after building the image,
    I do not see the symlink in/usr/lib/

    I did find the recipe for which I created the bbappend with:
    oe-pkgdata-util find-path /usr/lib64/rust/libaziot_keys.so

    What is missing?

    Thank you,
    Ron

    --
    Mistyron


    --
    Mistyron


--


*RON EGGLER*
Firmware Engineer, Tech Lead
(he/him/his)
www.mistywest.com
MistyWest Logo
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61915): https://lists.yoctoproject.org/g/yocto/message/61915
Mute This Topic: https://lists.yoctoproject.org/mt/103181952/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to