freerdp: Use DEPENDS:append
PATCH 1/1 freerdp: Use DEPENDS:append
The build system might have put something into DEPENDS already, adhere to the recommended best practice and use DEPENDS:append to avoid overriding the DEPENDS set by the build system.
--- meta-oe/recipes-support/freerdp/freerdp_2.4.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/freerdp/freerdp_2.4.1.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "FreeRDP RDP client & server library" HOMEPAGE = "http://www.freerdp.com" -DEPENDS = "openssl alsa-lib libusb1" +DEPENDS:append = " openssl alsa-lib libusb1" SECTION = "net" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
Signature · 1 line
2.33.0
Quoted 4 lines · Marek Vasut
The build system might have put something into DEPENDS already, adhere to the recommended best practice and use DEPENDS:append to avoid overriding the DEPENDS set by the build system.
Which document states that this is considered best practice ?
Jacob
I don't think this makes sense either FWIW. The standard practice is that the recipe sets DEPENDS and then the classes add to it.
Alex
Quoted 21 lines · Jacob Kroon
Quoted 4 lines · Marek Vasut
The build system might have put something into DEPENDS already, adhere to the recommended best practice and use DEPENDS:append to avoid overriding the DEPENDS set by the build system.
Which document states that this is considered best practice ?
Jacob
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#94228):
https://lists.openembedded.org/g/openembedded-devel/message/94228
Mute This Topic: https://lists.openembedded.org/mt/87562882/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 1 line
The build system might have put something into DEPENDS already
There is only copyright notice before this chunk, so this doesn't make much sense to me (and no other recipe does this).
Quoted 40 lines · Marek Vasut
The build system might have put something into DEPENDS already, adhere to the recommended best practice and use DEPENDS:append to avoid overriding the DEPENDS set by the build system.
Signed-off-by Marek Vasut <[email protected]>Cc Alexander Kanavin <[email protected]>Cc Khem Raj <[email protected]>--- meta-oe/recipes-support/freerdp/freerdp_2.4.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-oe/recipes-support/freerdp/freerdp_2.4.1.bb +1
-2@@ -3,7 +3,7 @@ DESCRIPTION = "FreeRDP RDP client & server library" HOMEPAGE = "http://www.freerdp.com" -DEPENDS = "openssl alsa-lib libusb1" +DEPENDS:append = " openssl alsa-lib libusb1" SECTION = "net" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" --2.33.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#94227):
https://lists.openembedded.org/g/openembedded-devel/message/94227
Mute This Topic: https://lists.openembedded.org/mt/87562882/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines · Martin Jansa
Quoted 1 line
The build system might have put something into DEPENDS already
There is only copyright notice before this chunk, so this doesn't make much sense to me (and no other recipe does this).
At least oelint-adv warns about it here:
https://github.com/priv-kweihmann/oelint-adv/blob/master/oelint_adv/rule_base/rule_var_depends_append.py
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
Perhaps this issue should be addressed to Konrad first before rushing to write a patch?
Alex
Quoted 28 lines · Marek Vasut
Quoted 3 lines · Martin Jansa
Quoted 1 line
The build system might have put something into DEPENDS already
There is only copyright notice before this chunk, so this doesn't make
much
Quoted 1 line
sense to me (and no other recipe does this).
At least oelint-adv warns about it here:
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#94231):
https://lists.openembedded.org/g/openembedded-devel/message/94231
Mute This Topic: https://lists.openembedded.org/mt/87562882/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 23 lines · Alexander Kanavin
Perhaps this issue should be addressed to Konrad first before rushing to write a patch?
Alex
Quoted 16 lines · Marek Vasut
Quoted 3 lines · Martin Jansa
Quoted 1 line
The build system might have put something into DEPENDS already
There is only copyright notice before this chunk, so this doesn't make
much
Quoted 1 line
sense to me (and no other recipe does this).
At least oelint-adv warns about it here:
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
I believe the warning is valid, see above ?
Quoted 8 lines · Marek Vasut
Quoted 5 lines
Quoted 5 lines
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
I believe the warning is valid, see above ?
The linter is an obsessive pedant, and is not actually always right, that's why I want its author to comment :)
'DEPENDS = ... ' is used throughout all layers, and doesn't seem to cause much grief, so why fix it here specifically, is there an actual issue?
Alex
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Marek Vasut
Quoted 5 lines
Quoted 5 lines
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
Quoted 7 lines
Quoted 2 lines
I believe the warning is valid, see above ?
The linter is an obsessive pedant, and is not actually always right, that's why I want its author to comment :)
'DEPENDS = ... ' is used throughout all layers, and doesn't seem to cause much grief, so why fix it here specifically, is there an actual issue?
I believe it would be a good idea to start fixing it all over the place. So yes, let's wait for Konrad.
In this case I have to support Alex's viewpoint partially...
On way how a DEPENDS operation before that can be injected is via INHERIT += "some-class" in local/distro/etc .conf... and if this class adds their own DEPENDS, it would get overwritten here, that's why I would say (esp as the described use case is very rare) it should be fine for now to use it as it is - *but* I would actually take that discussion to the oe-arch list - guess it's worth discussing that in a broader scope (as we already did in the past for those corner cases of variable modifications)
BTW thx for the praise of the linter for being overly pedantic sometimes :-)
Quoted 18 lines · Marek Vasut
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Marek Vasut
Quoted 5 lines
Quoted 5 lines
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
Quoted 7 lines
Quoted 2 lines
I believe the warning is valid, see above ?
The linter is an obsessive pedant, and is not actually always right, that's why I want its author to comment :)
'DEPENDS = ... ' is used throughout all layers, and doesn't seem to cause much grief, so why fix it here specifically, is there an actual issue?I believe it would be a good idea to start fixing it all over the place. So yes, let's wait for Konrad.
I added something to the oe-arch ML [1] - please let's discuss the issue and all of the implications there
[1] https://lists.openembedded.org/g/openembedded-architecture/message/1372
Quoted 18 lines · Marek Vasut
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Marek Vasut
Quoted 5 lines
Quoted 5 lines
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
Quoted 7 lines
Quoted 2 lines
I believe the warning is valid, see above ?
The linter is an obsessive pedant, and is not actually always right, that's why I want its author to comment :)
'DEPENDS = ... ' is used throughout all layers, and doesn't seem to cause much grief, so why fix it here specifically, is there an actual issue?I believe it would be a good idea to start fixing it all over the place. So yes, let's wait for Konrad.
After it seems like we reached an agreement on the oe-arch ML, I just released a new version of the linter that doesn't mark this issue anymore.
Quoted 18 lines · Marek Vasut
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Marek Vasut
Quoted 5 lines
Quoted 5 lines
And as far as I can tell, bitbake can stick something into DEPENDS before it parses this recipe, so the :append is valid.
Furthermore, git grep through oe-core already indicates a few recipes which use DEPENDS:append.
Quoted 7 lines
Quoted 2 lines
I believe the warning is valid, see above ?
The linter is an obsessive pedant, and is not actually always right, that's why I want its author to comment :)
'DEPENDS = ... ' is used throughout all layers, and doesn't seem to cause much grief, so why fix it here specifically, is there an actual issue?I believe it would be a good idea to start fixing it all over the place. So yes, let's wait for Konrad.