All of lore.kernel.org
 help / color / mirror / Atom feed
* One recipe, two gits with destsuffix, how to patch?
@ 2015-01-24  8:34 Kalle Komierowski
  2015-01-26 11:04 ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Kalle Komierowski @ 2015-01-24  8:34 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

Hi,

This is my first post to this list.

I'm working with the ti-compat-wireless recipe.
It contains two gits like this:

SRC_URI = "git://git.ti.com/wilink8-wlan/wl18xx.git;branch=${BRANCH_wl18xx};destsuffix=wl18xx;name=wl18xx \
git://git.ti.com/wilink8-wlan/backports.git;branch=${BRANCH_backports};destsuffix=backports;name=backports \
file://wl18xx.patch \

Now I want to add the wl18xx.patch file, and this file ends up in the S and applying it fails since the git it should be applied to is under S/backports due to the destsuffix.

I tried to use the quilt and create new patches from the S but they fail to.

What would be the correct way of adding a patch so it applies to backports?

Thanks
BR
-Kalle Komierowski


[-- Attachment #2.1: Type: text/html, Size: 857 bytes --]

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

* Re: One recipe, two gits with destsuffix, how to patch?
  2015-01-24  8:34 One recipe, two gits with destsuffix, how to patch? Kalle Komierowski
@ 2015-01-26 11:04 ` Paul Eggleton
  2015-01-26 11:24   ` Kalle Komierowski
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-01-26 11:04 UTC (permalink / raw)
  To: kalle; +Cc: yocto

Hi Kalle,

On Saturday 24 January 2015 08:34:56 Kalle Komierowski wrote:
> I'm working with the ti-compat-wireless recipe.
> It contains two gits like this:
> 
> SRC_URI =
> "git://git.ti.com/wilink8-wlan/wl18xx.git;branch=${BRANCH_wl18xx};destsuffi
> x=wl18xx;name=wl18xx \
> git://git.ti.com/wilink8-wlan/backports.git;branch=${BRANCH_backports};dest
> suffix=backports;name=backports \ file://wl18xx.patch \
> 
> Now I want to add the wl18xx.patch file, and this file ends up in the S and
> applying it fails since the git it should be applied to is under
> S/backports due to the destsuffix.
> 
> I tried to use the quilt and create new patches from the S but they fail to.
> 
> What would be the correct way of adding a patch so it applies to backports?

You may find the patchdir option for the patch SRC_URI entry to be useful. I 
should imagine you'll want something like:
...
  file://wl18xx.patch;patchdir=../backports
...

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: One recipe, two gits with destsuffix, how to patch?
  2015-01-26 11:04 ` Paul Eggleton
@ 2015-01-26 11:24   ` Kalle Komierowski
  2015-01-26 11:35     ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Kalle Komierowski @ 2015-01-26 11:24 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1370 bytes --]

Thanks Paul!

I was hoping it was as simple as that but I couldn't find info about it. Maybe if it was just called destsuffix like when it's used for gits.

BR
-Kalle Komierowski



On January 26, 2015, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> Hi Kalle,
> 
> On Saturday 24 January 2015 08:34:56 Kalle Komierowski wrote:
> > I'm working with the ti-compat-wireless recipe.
> > It contains two gits like this:
> > 
> > SRC_URI =
> > "git://git.ti.com/wilink8-wlan/wl18xx.git;branch=${BRANCH_wl18xx};destsuffi
> > x=wl18xx;name=wl18xx \
> > git://git.ti.com/wilink8-wlan/backports.git;branch=${BRANCH_backports};dest
> > suffix=backports;name=backports \ file://wl18xx.patch \
> > 
> > Now I want to add the wl18xx.patch file, and this file ends up in the S and
> > applying it fails since the git it should be applied to is under
> > S/backports due to the destsuffix.
> > 
> > I tried to use the quilt and create new patches from the S but they fail to.
> > 
> > What would be the correct way of adding a patch so it applies to backports?
> > 
> You may find the patchdir option for the patch SRC_URI entry to be useful. I
> should imagine you'll want something like:
> ...
> file://wl18xx.patch;patchdir=../backports
> ...
> 
> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #2.1: Type: text/html, Size: 1581 bytes --]

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

* Re: One recipe, two gits with destsuffix, how to patch?
  2015-01-26 11:24   ` Kalle Komierowski
@ 2015-01-26 11:35     ` Paul Eggleton
  2015-01-27 10:29       ` Kalle Komierowski
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-01-26 11:35 UTC (permalink / raw)
  To: Kalle Komierowski; +Cc: yocto

On Monday 26 January 2015 11:24:50 Kalle Komierowski wrote:
> On January 26, 2015, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> > Hi Kalle,
> > 
> > On Saturday 24 January 2015 08:34:56 Kalle Komierowski wrote:
> > > I'm working with the ti-compat-wireless recipe.
> > > It contains two gits like this:
> > > 
> > > SRC_URI =
> > > "git://git.ti.com/wilink8-wlan/wl18xx.git;branch=${BRANCH_wl18xx};destsu
> > > ffi
> > > x=wl18xx;name=wl18xx \
> > > git://git.ti.com/wilink8-wlan/backports.git;branch=${BRANCH_backports};d
> > > est
> > > suffix=backports;name=backports \ file://wl18xx.patch \
> > > 
> > > Now I want to add the wl18xx.patch file, and this file ends up in the S
> > > and
> > > applying it fails since the git it should be applied to is under
> > > S/backports due to the destsuffix.
> > > 
> > > I tried to use the quilt and create new patches from the S but they fail
> > > to.
> > > 
> > > What would be the correct way of adding a patch so it applies to
> > > backports?
> > 
> > You may find the patchdir option for the patch SRC_URI entry to be useful.
> > I should imagine you'll want something like:
> > ...
> > file://wl18xx.patch;patchdir=../backports
> > ...
> > 
>
> Thanks Paul!
> 
> I was hoping it was as simple as that but I couldn't find info about it.
> Maybe if it was just called destsuffix like when it's used for gits.

destsuffix and patchdir aren't quite the same though - destsuffix controls where 
the git repository is unpacked, whereas patchdir is the directory that the 
patch is applied in rather than where the patch file itself is written to.

(Oddly, as it happens, patchdir is in the documentation and destsuffix isn't - 
Scott, we'll have to take care of that.)

Cheers,
Paul 

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: One recipe, two gits with destsuffix, how to patch?
  2015-01-26 11:35     ` Paul Eggleton
@ 2015-01-27 10:29       ` Kalle Komierowski
  2015-01-27 10:42         ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Kalle Komierowski @ 2015-01-27 10:29 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2632 bytes --]

Hi again,

I just modified my recipe with the patchdir.
SRC_URI = "
xxxxx.patch;patchdir=backports/

I can see that the patches are copied to the destination where I want them but for some reason they all fail when yocto tries to apply them.
If I go manually to the destination git and type "git am xxxxx.patch" the all apply with no problem, I also tried to "patch -p1 < xxxxx.patch" and that worked to.
Maybe I should play a bit with the striplevel? But I do think that yocto should be able to handle it from the point where I gave it the patchdir=..

BR
-Kalle Komierowski



On January 26, 2015, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> On Monday 26 January 2015 11:24:50 Kalle Komierowski wrote:
> > On January 26, 2015, Paul Eggleton <<paul.eggleton@linux.intel.com>> wrote:
> > > Hi Kalle,
> > > 
> > > On Saturday 24 January 2015 08:34:56 Kalle Komierowski wrote:
> > > > I'm working with the ti-compat-wireless recipe.
> > > > It contains two gits like this:
> > > > 
> > > > SRC_URI =
> > > > "git://git.ti.com/wilink8-wlan/wl18xx.git;branch=${BRANCH_wl18xx};destsu
> > > > ffi
> > > > x=wl18xx;name=wl18xx \
> > > > git://git.ti.com/wilink8-wlan/backports.git;branch=${BRANCH_backports};d
> > > > est
> > > > suffix=backports;name=backports \ file://wl18xx.patch \
> > > > 
> > > > Now I want to add the wl18xx.patch file, and this file ends up in the S
> > > > and
> > > > applying it fails since the git it should be applied to is under
> > > > S/backports due to the destsuffix.
> > > > 
> > > > I tried to use the quilt and create new patches from the S but they fail
> > > > to.
> > > > 
> > > > What would be the correct way of adding a patch so it applies to
> > > > backports?
> > > > 
> > > You may find the patchdir option for the patch SRC_URI entry to be useful.
> > > I should imagine you'll want something like:
> > > ...
> > > file://wl18xx.patch;patchdir=../backports
> > > ...
> > > 
> > > 
> > Thanks Paul!
> > 
> > I was hoping it was as simple as that but I couldn't find info about it.
> > Maybe if it was just called destsuffix like when it's used for gits.
> > 
> destsuffix and patchdir aren't quite the same though - destsuffix controls where
> the git repository is unpacked, whereas patchdir is the directory that the
> patch is applied in rather than where the patch file itself is written to.
> 
> (Oddly, as it happens, patchdir is in the documentation and destsuffix isn't -
> Scott, we'll have to take care of that.)
> 
> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #2.1: Type: text/html, Size: 2875 bytes --]

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

* Re: One recipe, two gits with destsuffix, how to patch?
  2015-01-27 10:29       ` Kalle Komierowski
@ 2015-01-27 10:42         ` Paul Eggleton
  2015-05-19 12:47           ` Kalle
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-01-27 10:42 UTC (permalink / raw)
  To: kalle; +Cc: yocto

On Tuesday 27 January 2015 10:29:12 Kalle Komierowski wrote:
> I just modified my recipe with the patchdir.
> SRC_URI = "
> xxxxx.patch;patchdir=backports/
> 
> I can see that the patches are copied to the destination where I want them
> but for some reason they all fail when yocto tries to apply them. If I go
> manually to the destination git and type "git am xxxxx.patch" the all apply
> with no problem, I also tried to "patch -p1 < xxxxx.patch" and that worked
> to. Maybe I should play a bit with the striplevel? But I do think that
> yocto should be able to handle it from the point where I gave it the
> patchdir=..

The default striplevel is 1. If the patch is formatted typically, suspect this 
means that you'd need patchdir to be set to ../backports - does that not work?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: One recipe, two gits with destsuffix, how to patch?
  2015-01-27 10:42         ` Paul Eggleton
@ 2015-05-19 12:47           ` Kalle
  0 siblings, 0 replies; 7+ messages in thread
From: Kalle @ 2015-05-19 12:47 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

Hi Paul,

Sorry for the late, or veeery late reply, but your suggestion here seems 
to do the work.

Thanks for the help!

BR
Kalle

On 2015-01-27 11:42, Paul Eggleton wrote:
> On Tuesday 27 January 2015 10:29:12 Kalle Komierowski wrote:
>> I just modified my recipe with the patchdir.
>> SRC_URI = "
>> xxxxx.patch;patchdir=backports/
>>
>> I can see that the patches are copied to the destination where I want them
>> but for some reason they all fail when yocto tries to apply them. If I go
>> manually to the destination git and type "git am xxxxx.patch" the all apply
>> with no problem, I also tried to "patch -p1 < xxxxx.patch" and that worked
>> to. Maybe I should play a bit with the striplevel? But I do think that
>> yocto should be able to handle it from the point where I gave it the
>> patchdir=..
> The default striplevel is 1. If the patch is formatted typically, suspect this
> means that you'd need patchdir to be set to ../backports - does that not work?
>
> Cheers,
> Paul
>



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

end of thread, other threads:[~2015-05-19 12:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-24  8:34 One recipe, two gits with destsuffix, how to patch? Kalle Komierowski
2015-01-26 11:04 ` Paul Eggleton
2015-01-26 11:24   ` Kalle Komierowski
2015-01-26 11:35     ` Paul Eggleton
2015-01-27 10:29       ` Kalle Komierowski
2015-01-27 10:42         ` Paul Eggleton
2015-05-19 12:47           ` Kalle

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.