Skip to contentSkip to conversation

kirkstone DEPEND problem

DISCUSSION Joakim Tjernlund 3 participants 6 messages Feb 14, 2023 – Feb 16, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

in swupdate.inc there is
depends = d.getVar('DEPENDS', False)
pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'

if 'CONFIG_SSL_IMPL_OPENSSL=y\n' in features:
depends += ' openssl'
elif 'CONFIG_SSL_IMPL_MBEDTLS=y\n' in features:
depends += ' mbedtls'
elif 'CONFIG_SSL_IMPL_WOLFSSL=y\n' in features:
depends += ' wolfssl'

if 'CONFIG_JSON=y\n' in features:
depends += ' json-c'
....
d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, + rdepends)

This fails to pick up dep in depends variable, but if I change '' to "" like so
depends += " mbedtls"
then swupdate builds.

This worked in dunfell so perhaps a bug i kirkstone?

Jocke

#2 lore raw
Quoted 21 lines · Joakim Tjernlund

in swupdate.inc there is
depends = d.getVar('DEPENDS', False)
pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'

if 'CONFIG_SSL_IMPL_OPENSSL=y\n' in features:
depends += ' openssl'
elif 'CONFIG_SSL_IMPL_MBEDTLS=y\n' in features:
depends += ' mbedtls'
elif 'CONFIG_SSL_IMPL_WOLFSSL=y\n' in features:
depends += ' wolfssl'

if 'CONFIG_JSON=y\n' in features:
depends += ' json-c'
....
d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, + rdepends)

Quoted 8 lines

This fails to pick up dep in depends variable, but if I change '' to "" like so
depends += " mbedtls"
then swupdate builds.

This worked in dunfell so perhaps a bug i kirkstone?

Jocke

Correction, bitbake swupdate builds but bitbake lib32-swupdate does not. To make lib32-swupdate build I have to add deps directly to DEPENDS variable:
-DEPENDS += "libconfig zlib"
+DEPENDS += "libconfig zlib lua mtd-utils mbedtls"

Jocke

#3 lore raw
Quoted 33 lines · Joakim Tjernlund
Quoted 21 lines · Joakim Tjernlund

in swupdate.inc there is
depends = d.getVar('DEPENDS', False)
pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'

if 'CONFIG_SSL_IMPL_OPENSSL=y\n' in features:
depends += ' openssl'
elif 'CONFIG_SSL_IMPL_MBEDTLS=y\n' in features:
depends += ' mbedtls'
elif 'CONFIG_SSL_IMPL_WOLFSSL=y\n' in features:
depends += ' wolfssl'

if 'CONFIG_JSON=y\n' in features:
depends += ' json-c'
....
d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, + rdepends)

Quoted 8 lines

This fails to pick up dep in depends variable, but if I change '' to "" like so
depends += " mbedtls"
then swupdate builds.

This worked in dunfell so perhaps a bug i kirkstone?

Jocke

Correction, bitbake swupdate builds but bitbake lib32-swupdate does not. To make lib32-swupdate build I have to add deps directly to DEPENDS variable:

Review

Quoted 2 lines
(quoted diff) +1 -1
-DEPENDS += "libconfig zlib"
+DEPENDS += "libconfig zlib lua mtd-utils mbedtls"

The multilib code changed between dunfell and kirkstone. I haven't gone into the details of how swupdate.inc is calling the code above but I can believe the multilib improvements and fixes made for kirkstone did change the behaviour.

Cheers,

Richard

#4 lore raw
Quoted 32 lines · Richard Purdie
Quoted 31 lines · Joakim Tjernlund
Quoted 29 lines · Joakim Tjernlund

in swupdate.inc there is
depends = d.getVar('DEPENDS', False)
pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'

if 'CONFIG_SSL_IMPL_OPENSSL=y\n' in features:
depends += ' openssl'
elif 'CONFIG_SSL_IMPL_MBEDTLS=y\n' in features:
depends += ' mbedtls'
elif 'CONFIG_SSL_IMPL_WOLFSSL=y\n' in features:
depends += ' wolfssl'

if 'CONFIG_JSON=y\n' in features:
depends += ' json-c'
....
d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, + rdepends)

This fails to pick up dep in depends variable, but if I change '' to "" like so
depends += " mbedtls"
then swupdate builds.

This worked in dunfell so perhaps a bug i kirkstone?

Jocke

Quoted 9 lines

Review

Quoted 4 lines

Correction, bitbake swupdate builds but bitbake lib32-swupdate does not. To make lib32-swupdate build I have to add deps directly to DEPENDS variable:

(quoted diff) +1 -1
-DEPENDS += "libconfig zlib"
+DEPENDS += "libconfig zlib lua mtd-utils mbedtls"

The multilib code changed between dunfell and kirkstone. I haven't gone into the details of how swupdate.inc is calling the code above but I can believe the multilib improvements and fixes made for kirkstone did change the behaviour.

Something else that may have changed (we just found out) is python venv does not install the "pip" binary(symlink) into the venv/bin dir. Is there some change in kirkstone here ?

Jocke

#5 lore raw
Quoted 43 lines · Joakim Tjernlund
Quoted 32 lines · Richard Purdie
Quoted 31 lines · Joakim Tjernlund
Quoted 29 lines · Joakim Tjernlund

in swupdate.inc there is
depends = d.getVar('DEPENDS', False)
pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'

if 'CONFIG_SSL_IMPL_OPENSSL=y\n' in features:
depends += ' openssl'
elif 'CONFIG_SSL_IMPL_MBEDTLS=y\n' in features:
depends += ' mbedtls'
elif 'CONFIG_SSL_IMPL_WOLFSSL=y\n' in features:
depends += ' wolfssl'

if 'CONFIG_JSON=y\n' in features:
depends += ' json-c'
....
d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, + rdepends)

This fails to pick up dep in depends variable, but if I change '' to "" like so
depends += " mbedtls"
then swupdate builds.

This worked in dunfell so perhaps a bug i kirkstone?

Jocke

Quoted 9 lines

Review

Quoted 4 lines

Correction, bitbake swupdate builds but bitbake lib32-swupdate does not. To make lib32-swupdate build I have to add deps directly to DEPENDS variable:

(quoted diff) +1 -1
-DEPENDS += "libconfig zlib"
+DEPENDS += "libconfig zlib lua mtd-utils mbedtls"

The multilib code changed between dunfell and kirkstone. I haven't gone into the details of how swupdate.inc is calling the code above but I can believe the multilib improvements and fixes made for kirkstone did change the behaviour.

Quoted 3 lines

Something else that may have changed (we just found out) is python venv does not install the "pip" binary(symlink) into the venv/bin dir. Is there some change in kirkstone here ?

That really isn't a bitbake question. I'd suggest looking at the recipe in question to find out the history, I have no idea.

Cheers,

Richard

#6 lore raw

Hi all,

Quoted 44 lines · Richard Purdie
Quoted 43 lines · Joakim Tjernlund
Quoted 41 lines · Richard Purdie
Quoted 33 lines · Joakim Tjernlund
Quoted 21 lines · Joakim Tjernlund

in swupdate.inc there is
depends = d.getVar('DEPENDS', False) pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'

if 'CONFIG_SSL_IMPL_OPENSSL=y\n' in features:
depends += ' openssl'
elif 'CONFIG_SSL_IMPL_MBEDTLS=y\n' in features:
depends += ' mbedtls'
elif 'CONFIG_SSL_IMPL_WOLFSSL=y\n' in features:
depends += ' wolfssl'

if 'CONFIG_JSON=y\n' in features:
depends += ' json-c'
....
d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, + rdepends)

Quoted 8 lines

This fails to pick up dep in depends variable, but if I change '' to "" like so

    depends += " mbedtls"

then swupdate builds.

This worked in dunfell so perhaps a bug i kirkstone?

Jocke

Correction, bitbake swupdate builds but bitbake lib32-swupdate does not. To make lib32-swupdate build I have to add deps directly to DEPENDS variable:

Review

Quoted 2 lines
(quoted diff) +1 -1
-DEPENDS += "libconfig zlib"
+DEPENDS += "libconfig zlib lua mtd-utils mbedtls"

The multilib code changed between dunfell and kirkstone. I haven't gone into the details of how swupdate.inc is calling the code above but I can believe the multilib improvements and fixes made for kirkstone did change the behaviour.

Quoted 7 lines
Quoted 3 lines

Something else that may have changed (we just found out) is python venv does not install the "pip" binary(symlink) into the venv/bin dir. Is there some change in kirkstone here ?

That really isn't a bitbake question. I'd suggest looking at the recipe in question to find out the history, I have no idea.

Wondering if this isn't a case of a missing ${MLPREFIX}?

c.f. https://docs.yoctoproject.org/dev-manual/common-tasks.html#preparing-to-use-multilib and specifically:
"""
If you are extending any manual code in the recipe, you can use the ${MLPREFIX} variable to ensure those names are extended correctly. """

Cheers,
Quentin