Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Yocto layer for NoPorts #1568

Closed
cpswan opened this issue Nov 25, 2024 · 6 comments
Closed

Create Yocto layer for NoPorts #1568

cpswan opened this issue Nov 25, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@cpswan
Copy link
Member

cpswan commented Nov 25, 2024

Is your feature request related to a problem? Please describe.

@cconstab has heard customer demand for NoPorts with Yocto

Describe the solution you'd like

Create a Yocto layer based on earlier CMake work and current releases of C sshnpd

@cpswan cpswan added the enhancement New feature or request label Nov 25, 2024
@cpswan cpswan self-assigned this Nov 25, 2024
@cpswan
Copy link
Member Author

cpswan commented Jan 6, 2025

Good progress during PR102, but the recipe won't build into an image due to cJSON library issues.

Carrying over to PR103 and reducing SP to complete work.

@cpswan
Copy link
Member Author

cpswan commented Jan 21, 2025

Updated build to use the c0.3.0 release.

Still showing problems with cJSON:

bitbake core-image-sato

ERROR: csshnpd-0.3.0-r0 do_package_qa: QA Issue: /usr/bin/sshnpd contained in package csshnpd requires libcjson.so.1()(64bit), but no providers found in RDEPENDS:csshnpd? [file-rdeps]
ERROR: csshnpd-0.3.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/chris/git/git.yoctoproject.org/poky/build/tmp/work/core2-64-poky-linux/csshnpd/0.3.0/temp/log.do_package_qa.14900
ERROR: Task (/home/chris/git/github/atsign-foundation/meta-atsign/recipes-sshnpd/sshnpd/csshnpd_0.3.0.bb:do_package_qa) failed with exit code '1'

If I remove INSANE_SKIP:${PN} += "file-rdeps" from the csshnpd recipe:

ERROR: csshnpd-0.3.0-r0 do_package_qa: QA Issue: /usr/bin/sshnpd contained in package csshnpd requires libcjson.so.1()(64bit), but no providers found in RDEPENDS:csshnpd? [file-rdeps]
ERROR: csshnpd-0.3.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/chris/git/git.yoctoproject.org/poky/build/tmp/work/core2-64-poky-linux/csshnpd/0.3.0/temp/log.do_package_qa.14900
ERROR: Task (/home/chris/git/github/atsign-foundation/meta-atsign/recipes-sshnpd/sshnpd/csshnpd_0.3.0.bb:do_package_qa) failed with exit code '1'

👀 @XavierChanth as I'm not sure all the changes to cjson linking you had done/planned with at_c have propagated to noports yet.

@XavierChanth
Copy link
Member

Updated build to use the c0.3.0 release.

Still showing problems with cJSON:

bitbake core-image-sato

ERROR: csshnpd-0.3.0-r0 do_package_qa: QA Issue: /usr/bin/sshnpd contained in package csshnpd requires libcjson.so.1()(64bit), but no providers found in RDEPENDS:csshnpd? [file-rdeps]
ERROR: csshnpd-0.3.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/chris/git/git.yoctoproject.org/poky/build/tmp/work/core2-64-poky-linux/csshnpd/0.3.0/temp/log.do_package_qa.14900
ERROR: Task (/home/chris/git/github/atsign-foundation/meta-atsign/recipes-sshnpd/sshnpd/csshnpd_0.3.0.bb:do_package_qa) failed with exit code '1'

If I remove INSANE_SKIP:${PN} += "file-rdeps" from the csshnpd recipe:

ERROR: csshnpd-0.3.0-r0 do_package_qa: QA Issue: /usr/bin/sshnpd contained in package csshnpd requires libcjson.so.1()(64bit), but no providers found in RDEPENDS:csshnpd? [file-rdeps]
ERROR: csshnpd-0.3.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/chris/git/git.yoctoproject.org/poky/build/tmp/work/core2-64-poky-linux/csshnpd/0.3.0/temp/log.do_package_qa.14900
ERROR: Task (/home/chris/git/github/atsign-foundation/meta-atsign/recipes-sshnpd/sshnpd/csshnpd_0.3.0.bb:do_package_qa) failed with exit code '1'

👀 @XavierChanth as I'm not sure all the changes to cjson linking you had done/planned with at_c have propagated to noports yet.

Raised #1673 to address this

@cpswan
Copy link
Member Author

cpswan commented Jan 21, 2025

Thanks @XavierChanth

Raised #1673 to address this

I approved and merged, then released c0.3.1 and bumped meta-atsign to use it.

But, the error messages remain stubbornly the same.

@XavierChanth
Copy link
Member

It's looking for a shared cjson library, but we statically link...

@cpswan
Copy link
Member Author

cpswan commented Jan 21, 2025

ldd ./tmp/work/core2-64-poky-linux/csshnpd/0.3.1/build/sshnpd/sshnpd

        linux-vdso.so.1 (0x00007ffca4fb9000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc09fced000)
        libcjson.so.1 => /home/chris/git/git.yoctoproject.org/poky/build/./tmp/work/core2-64-poky-linux/csshnpd/0.3.1/build/sshnpd/../_deps/cjson-build/libcjson.so.1 (0x00007fc09fce3000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc09fb02000)
        /lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007fc09fdf8000)

@cpswan cpswan closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants