Re: [langdale] dropbear recipe fails to parse without pam in DISTRO_FEATURES


Khem Raj
 

On Fri, Jan 13, 2023 at 6:26 AM Claude Bing <cbing@...> wrote:

Good day everyone.

We are in the process of upgrading to langdale, and I ran across a small
problem when building dropbear. The order of external assets in SRC_URI
seems to cause an issue when PAM is not available in DISTRO_FEATURES.

ERROR:
/home/****/yocto/poky-next/build-cyber-v/../meta/recipes-core/dropbear/dropbear_2022.82.bb:
Unable to get checksum for dropbear SRC_URI entry
0007-Fix-X11-build-failure-use-DROPBEAR_PRIO_LOWDELAY.patchfile: file
could not be found

When we move the following entry to the bottom of SRC_URI in
meta/recipes-core/dropbear/dropbear_2022.82.bb, the recipe parses
successfully:

${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}

Is this a good fix? Am I missing a larger issue?
try something like below it will remove the positional requirement.

--- a/meta/recipes-core/dropbear/dropbear_2022.83.bb
+++ b/meta/recipes-core/dropbear/dropbear_2022.83.bb
@@ -27,7 +27,8 @@ SRC_URI[sha256sum] =
"bc5a121ffbc94b5171ad5ebe01be42746d50aa797c9549a4639894a167

PAM_SRC_URI = "file://0005-dropbear-enable-pam.patch \
file://0006-dropbear-configuration-file.patch \
- file://dropbear"
+ file://dropbear \
+ "

PAM_PLUGINS = "libpam-runtime \
pam-plugin-deny \


--
Regards,

Claude Bing


Join yocto@lists.yoctoproject.org to automatically receive all group messages.