All of lore.kernel.org
 help / color / mirror / Atom feed
* apply a patch to a complete meta-xxx - before using it (in kas)?
@ 2024-06-17 13:13 star
  2024-06-17 13:16 ` [poky] " Alexander Kanavin
  2024-06-17 14:19 ` Alexandre Belloni
  0 siblings, 2 replies; 10+ messages in thread
From: star @ 2024-06-17 13:13 UTC (permalink / raw)
  To: poky@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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 13:13 apply a patch to a complete meta-xxx - before using it (in kas)? star
@ 2024-06-17 13:16 ` Alexander Kanavin
  2024-06-17 13:24   ` star
  2024-06-17 14:19 ` Alexandre Belloni
  1 sibling, 1 reply; 10+ messages in thread
From: Alexander Kanavin @ 2024-06-17 13:16 UTC (permalink / raw)
  To: star; +Cc: poky@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

On Mon, 17 Jun 2024 at 15:13, Steve via lists.yoctoproject.org
<star=gmx.li@lists.yoctoproject.org> wrote:
>
> 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: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 13:16 ` [poky] " Alexander Kanavin
@ 2024-06-17 13:24   ` star
  2024-06-17 13:27     ` Alexander Kanavin
  0 siblings, 1 reply; 10+ messages in thread
From: star @ 2024-06-17 13:24 UTC (permalink / raw)
  To: poky

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

On 6/17/24 15:16, Alexander Kanavin via lists.yoctoproject.org wrote:
> 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
>
> On Mon, 17 Jun 2024 at 15:13, Steve via lists.yoctoproject.org
> <star=gmx.li@lists.yoctoproject.org> wrote:
>>
>> 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: poky+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [star@gmx.li]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 13:24   ` star
@ 2024-06-17 13:27     ` Alexander Kanavin
  2024-06-17 13:44       ` star
  0 siblings, 1 reply; 10+ messages in thread
From: Alexander Kanavin @ 2024-06-17 13:27 UTC (permalink / raw)
  To: star; +Cc: poky

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

Alex

On Mon, 17 Jun 2024 at 15:24, Steve via lists.yoctoproject.org
<star=gmx.li@lists.yoctoproject.org> wrote:
>
> 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
>
> On 6/17/24 15:16, Alexander Kanavin via lists.yoctoproject.org wrote:
> > 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
> >
> > On Mon, 17 Jun 2024 at 15:13, Steve via lists.yoctoproject.org
> > <star=gmx.li@lists.yoctoproject.org> wrote:
> >>
> >> 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: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 13:27     ` Alexander Kanavin
@ 2024-06-17 13:44       ` star
  0 siblings, 0 replies; 10+ messages in thread
From: star @ 2024-06-17 13:44 UTC (permalink / raw)
  To: poky

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

On 6/17/24 15:27, Alexander Kanavin via lists.yoctoproject.org wrote:
> Yocto 3.0 is ancient and isn't supported. Is there a reason you can't
> migrate to scarthgap?
>
> Alex
>
> On Mon, 17 Jun 2024 at 15:24, Steve via lists.yoctoproject.org
> <star=gmx.li@lists.yoctoproject.org> wrote:
>>
>> 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
>>
>> On 6/17/24 15:16, Alexander Kanavin via lists.yoctoproject.org wrote:
>>> 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
>>>
>>> On Mon, 17 Jun 2024 at 15:13, Steve via lists.yoctoproject.org
>>> <star=gmx.li@lists.yoctoproject.org> wrote:
>>>>
>>>> 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: poky+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [star@gmx.li]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 13:13 apply a patch to a complete meta-xxx - before using it (in kas)? star
  2024-06-17 13:16 ` [poky] " Alexander Kanavin
@ 2024-06-17 14:19 ` Alexandre Belloni
  2024-06-17 14:22   ` star
  1 sibling, 1 reply; 10+ messages in thread
From: Alexandre Belloni @ 2024-06-17 14:19 UTC (permalink / raw)
  To: star; +Cc: poky@lists.yoctoproject.org

On 17/06/2024 15:13:42+0200, Steve via lists.yoctoproject.org wrote:
> 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.

> 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: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 14:19 ` Alexandre Belloni
@ 2024-06-17 14:22   ` star
  2024-06-17 14:59     ` Ross Burton
  0 siblings, 1 reply; 10+ messages in thread
From: star @ 2024-06-17 14:22 UTC (permalink / raw)
  To: poky

On 6/17/24 16:19, Alexandre Belloni via lists.yoctoproject.org wrote:
> On 17/06/2024 15:13:42+0200, Steve via lists.yoctoproject.org wrote:
>> 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.
>

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

>> 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: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [star@gmx.li]
> -=-=-=-=-=-=-=-=-=-=-=-
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 14:22   ` star
@ 2024-06-17 14:59     ` Ross Burton
  2024-06-17 15:20       ` star
  0 siblings, 1 reply; 10+ messages in thread
From: Ross Burton @ 2024-06-17 14:59 UTC (permalink / raw)
  To: star@gmx.li; +Cc: poky@lists.yoctoproject.org



> On 17 Jun 2024, at 15:22, Steve via lists.yoctoproject.org <star=gmx.li@lists.yoctoproject.org> wrote:
> 
> On 6/17/24 16:19, Alexandre Belloni via lists.yoctoproject.org wrote:
>> On 17/06/2024 15:13:42+0200, Steve via lists.yoctoproject.org wrote:
>>> 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.
>> 
> 
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 14:59     ` Ross Burton
@ 2024-06-17 15:20       ` star
  2024-06-17 15:52         ` Ross Burton
  0 siblings, 1 reply; 10+ messages in thread
From: star @ 2024-06-17 15:20 UTC (permalink / raw)
  To: poky

On 6/17/24 16:59, Ross Burton via lists.yoctoproject.org wrote:
>
>
>> On 17 Jun 2024, at 15:22, Steve via lists.yoctoproject.org <star=gmx.li@lists.yoctoproject.org> wrote:
>>
>> On 6/17/24 16:19, Alexandre Belloni via lists.yoctoproject.org wrote:
>>> On 17/06/2024 15:13:42+0200, Steve via lists.yoctoproject.org wrote:
>>>> 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.
>>>
>>
>> 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

>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> 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: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [star@gmx.li]
> -=-=-=-=-=-=-=-=-=-=-=-
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [poky] apply a patch to a complete meta-xxx - before using it (in kas)?
  2024-06-17 15:20       ` star
@ 2024-06-17 15:52         ` Ross Burton
  0 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2024-06-17 15:52 UTC (permalink / raw)
  To: star@gmx.li; +Cc: poky@lists.yoctoproject.org

On 17 Jun 2024, at 16:20, Steve via lists.yoctoproject.org <star=gmx.li@lists.yoctoproject.org> wrote:
> 
> On 6/17/24 16:59, Ross Burton via lists.yoctoproject.org wrote:
>> 
>> 
>>> On 17 Jun 2024, at 15:22, Steve via lists.yoctoproject.org <star=gmx.li@lists.yoctoproject.org> wrote:
>>> 
>>> On 6/17/24 16:19, Alexandre Belloni via lists.yoctoproject.org wrote:
>>>> On 17/06/2024 15:13:42+0200, Steve via lists.yoctoproject.org wrote:
>>>>> 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.
>>>> 
>>> 
>>> 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).

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

Ross

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-06-17 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 13:13 apply a patch to a complete meta-xxx - before using it (in kas)? star
2024-06-17 13:16 ` [poky] " Alexander Kanavin
2024-06-17 13:24   ` star
2024-06-17 13:27     ` Alexander Kanavin
2024-06-17 13:44       ` star
2024-06-17 14:19 ` Alexandre Belloni
2024-06-17 14:22   ` star
2024-06-17 14:59     ` Ross Burton
2024-06-17 15:20       ` star
2024-06-17 15:52         ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.