Skip to contentSkip to conversation

apply a patch to a complete meta-xxx - before using it (in kas)?

DISCUSSION star 4 participants 10 messages Jun 17, 2024

lore
Share & tools
lore

star

author
#0 lore raw

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.
Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

#1 lore raw

I'd suggest you fork the layer into a private repo and add the needed changes on top as proper commits. Given that the layer doesn't have the new syntax, it's almost certainly abandoned, and you won't lose any changes because they will never happen.

Alex

Quoted 22 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.
Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13371): https://lists.yoctoproject.org/g/poky/message/13371
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw

That is something I can do, sure. Thanks for hint, Alex.
But in fact it's the other way around, the repo I refer to is newer, and I need that in an older Yocto3.0 build.
So just in case someone knows how this works. But yes - forking a layer is possible too, but far massive than apply a slim patch.

- Steve

Quoted 35 lines · Alexander Kanavin via lists.yoctoproject.org

I'd suggest you fork the layer into a private repo and add the needed changes on top as proper commits. Given that the layer doesn't have the new syntax, it's almost certainly abandoned, and you won't lose any changes because they will never happen.

Alex

Quoted 26 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.
Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13372): https://lists.yoctoproject.org/g/poky/message/13372
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/3618575
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Yocto 3.0 is ancient and isn't supported. Is there a reason you can't migrate to scarthgap?

Alex

Quoted 49 lines · Steve via lists.yoctoproject.org

That is something I can do, sure. Thanks for hint, Alex.
But in fact it's the other way around, the repo I refer to is newer, and I need that in an older Yocto3.0 build.
So just in case someone knows how this works. But yes - forking a layer is possible too, but far massive than apply a slim patch.

- Steve

Quoted 5 lines · Alexander Kanavin via lists.yoctoproject.org

I'd suggest you fork the layer into a private repo and add the needed changes on top as proper commits. Given that the layer doesn't have the new syntax, it's almost certainly abandoned, and you won't lose any changes because they will never happen.

Quoted 24 lines

Alex

Quoted 20 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.
Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13373): https://lists.yoctoproject.org/g/poky/message/13373
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#4 lore raw

I know, I know - customer request! Need to fix something in an older project (nothing else should be changed) - but didn't managed these patch to meta-xxx so far. I just want to improve that.

- Steve

Quoted 60 lines · Alexander Kanavin via lists.yoctoproject.org

Yocto 3.0 is ancient and isn't supported. Is there a reason you can't migrate to scarthgap?

Alex

Quoted 53 lines · Steve via lists.yoctoproject.org

That is something I can do, sure. Thanks for hint, Alex.
But in fact it's the other way around, the repo I refer to is newer, and I need that in an older Yocto3.0 build.
So just in case someone knows how this works. But yes - forking a layer is possible too, but far massive than apply a slim patch.

- Steve

Quoted 5 lines · Alexander Kanavin via lists.yoctoproject.org

I'd suggest you fork the layer into a private repo and add the needed changes on top as proper commits. Given that the layer doesn't have the new syntax, it's almost certainly abandoned, and you won't lose any changes because they will never happen.

Quoted 24 lines

Alex

Quoted 20 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.
Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13374): https://lists.yoctoproject.org/g/poky/message/13374
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/3618575
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
In reply to star
Quoted 7 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.

Yes, kas can do that with the patches property of any repo. I wouldn't recommend using it but this works.

Quoted 15 lines

Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13371): https://lists.yoctoproject.org/g/poky/message/13371
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#6 lore raw
Quoted 5 lines · Alexandre Belloni via lists.yoctoproject.org
Quoted 4 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

Quoted 7 lines
Quoted 3 lines

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.

Yes, kas can do that with the patches property of any repo. I wouldn't recommend using it but this works.

Do you have an example maybe?
Kas complained about my attempts with (for me not) readable kind of error message.

Quoted 21 lines
Quoted 9 lines

Guess I can't do it in Yocto, as my first bitbake command it will complain about the syntax, so I can't "repair" that inside yocto. Or am I wrong?

Best regards

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13376): https://lists.yoctoproject.org/g/poky/message/13376
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/3618575
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw
Quoted 14 lines · Steve via lists.yoctoproject.org
Quoted 9 lines · Alexandre Belloni via lists.yoctoproject.org
Quoted 7 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.

Quoted 7 lines
Quoted 3 lines

Yes, kas can do that with the patches property of any repo. I wouldn't recommend using it but this works.

Do you have an example maybe?
Kas complained about my attempts with (for me not) readable kind of error message.

As a tiny example,
https://git.yoctoproject.org/meta-arm/commit/?id=fef5eafc0858b790df22b7e4025f8efcde1d84b2 is where we added a patch to meta-arm’s kas files to patch poky.

Ross

author
#8 lore raw
Quoted 18 lines · Ross Burton via lists.yoctoproject.org
Quoted 18 lines · Steve via lists.yoctoproject.org
Quoted 12 lines · Alexandre Belloni via lists.yoctoproject.org
Quoted 7 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.

Yes, kas can do that with the patches property of any repo. I wouldn't recommend using it but this works.

Quoted 9 lines
Quoted 3 lines

Do you have an example maybe?
Kas complained about my attempts with (for me not) readable kind of error message.

As a tiny example,
https://git.yoctoproject.org/meta-arm/commit/?id=fef5eafc0858b790df22b7e4025f8efcde1d84b2 is where we added a patch to meta-arm’s kas files to patch poky.

Ross

Thanks Ross,
can't test it right now, but I see my mistake. I located the patch inside the layer structure. But why this procps entry? There isn't any procps structure that could be addressed in meta-arm, isn't it?
I read your example as: There is a patch 0001...patch that has to be applied to meta-arm repo (in general).

- Steve

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13378): https://lists.yoctoproject.org/g/poky/message/13378
Mute This Topic: https://lists.yoctoproject.org/mt/106720251/3618575
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#9 lore raw
Quoted 30 lines · Steve via lists.yoctoproject.org
Quoted 18 lines · Ross Burton via lists.yoctoproject.org
Quoted 18 lines · Steve via lists.yoctoproject.org
Quoted 12 lines · Alexandre Belloni via lists.yoctoproject.org
Quoted 7 lines · Steve via lists.yoctoproject.org

I need a version of a meta-xxx repo that has new syntax ":" instead of "_". Some other minor things have to be changed too (as compatibility string)

I check that meta-xxx out by help of kas tool.
Do I have a chance to apply a patch right there once the meta-xxx has been cloned? The kas docu confuses me a lot.

Yes, kas can do that with the patches property of any repo. I wouldn't recommend using it but this works.

Quoted 9 lines
Quoted 3 lines

Do you have an example maybe?
Kas complained about my attempts with (for me not) readable kind of error message.

As a tiny example,
https://git.yoctoproject.org/meta-arm/commit/?id=fef5eafc0858b790df22b7e4025f8efcde1d84b2 is where we added a patch to meta-arm’s kas files to patch poky.

Ross

Quoted 7 lines

Thanks Ross,
can't test it right now, but I see my mistake. I located the patch inside the layer structure. But why this procps entry? There isn't any procps structure that could be addressed in meta-arm, isn't it?
I read your example as: There is a patch 0001...patch that has to be applied to meta-arm repo (in general).

This was a patch in the meta-arm repository that was being applied to poky. The patch explains why. :)

Ross