* patch files
@ 2025-01-19 17:32 Stephen Ecker
2025-01-20 8:31 ` Uladzimir Bely
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Ecker @ 2025-01-19 17:32 UTC (permalink / raw)
To: isar-users
[-- Attachment #1.1: Type: text/plain, Size: 677 bytes --]
I'm not certain if this is isar specific or just bitbake: I have a patch
file I've added to my layer but my build keeps erroring stating that it
can't find the file to patch. the target file is in a recipe of the same
name but in a different layer. to where should the patch file point in its
second line?
thanks
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/47d4ffc5-3681-4567-91c7-e6533a64b893n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 965 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: patch files
2025-01-19 17:32 patch files Stephen Ecker
@ 2025-01-20 8:31 ` Uladzimir Bely
2025-01-20 10:44 ` Stephen Ecker
2025-01-20 10:57 ` Stephen Ecker
0 siblings, 2 replies; 6+ messages in thread
From: Uladzimir Bely @ 2025-01-20 8:31 UTC (permalink / raw)
To: Stephen Ecker, isar-users
On Sun, 2025-01-19 at 09:32 -0800, Stephen Ecker wrote:
> I'm not certain if this is isar specific or just bitbake: I have a
> patch file I've added to my layer but my build keeps erroring stating
> that it can't find the file to patch. the target file is in a recipe
> of the same name but in a different layer. to where should the patch
> file point in its second line?
>
> thanks
>
Hello.
If you have some <recipe>.bb in some layer and <files/your.patch> for
it in your layer, you should also create in your layer
<recipe>.bbappend with the contents like:
| FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
| SRC_URI:append = " \
| file://your.patch \
| "
> --
> You received this message because you are subscribed to the Google
> Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to isar-users+unsubscribe@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/isar-users/47d4ffc5-3681-4567-91c7-e6533a64b893n%40googlegroups.com
> .
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/759c17a39de5c2f18e40dc43a6d1f57c668be94d.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: patch files
2025-01-20 8:31 ` Uladzimir Bely
@ 2025-01-20 10:44 ` Stephen Ecker
2025-01-20 10:57 ` Stephen Ecker
1 sibling, 0 replies; 6+ messages in thread
From: Stephen Ecker @ 2025-01-20 10:44 UTC (permalink / raw)
To: Uladzimir Bely; +Cc: isar-users
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
That's exactly what I did, but it always says that it could not find the
file to patch.
What should the two first lines of the path show was the directory?
On Mon, Jan 20, 2025, 2:31 AM Uladzimir Bely <ubely@ilbers.de> wrote:
> On Sun, 2025-01-19 at 09:32 -0800, Stephen Ecker wrote:
> > I'm not certain if this is isar specific or just bitbake: I have a
> > patch file I've added to my layer but my build keeps erroring stating
> > that it can't find the file to patch. the target file is in a recipe
> > of the same name but in a different layer. to where should the patch
> > file point in its second line?
> >
> > thanks
> >
>
> Hello.
> If you have some <recipe>.bb in some layer and <files/your.patch> for
> it in your layer, you should also create in your layer
> <recipe>.bbappend with the contents like:
>
> | FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
> | SRC_URI:append = " \
> | file://your.patch \
> | "
>
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "isar-users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to isar-users+unsubscribe@googlegroups.com.
> > To view this discussion visit
> >
> https://groups.google.com/d/msgid/isar-users/47d4ffc5-3681-4567-91c7-e6533a64b893n%40googlegroups.com
> > .
>
> --
> Best regards,
> Uladzimir.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/CAK9C7GCGjp5MAoQ0ccX6nhbohC%3DbyqCeb57e1PJYQpytOWMzzA%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 2859 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: patch files
2025-01-20 8:31 ` Uladzimir Bely
2025-01-20 10:44 ` Stephen Ecker
@ 2025-01-20 10:57 ` Stephen Ecker
2025-01-21 12:43 ` Uladzimir Bely
1 sibling, 1 reply; 6+ messages in thread
From: Stephen Ecker @ 2025-01-20 10:57 UTC (permalink / raw)
To: Uladzimir Bely; +Cc: isar-users
[-- Attachment #1: Type: text/plain, Size: 2043 bytes --]
Bb shows the directories in which it looked for the patch file... It found
that. It's the file to patch that quilt can't find:
NOTE: Applying patch 'something.patch'
(../meta-something/recipes-core/recipe-name/files/something.patch)
....
can't find file to patch at input line 3
perhaps you used the wrong -p or --strip option?
...
It does not show the directories in which it tried to find the target file
Maybe you could provide me an example patch file?
On Mon, Jan 20, 2025, 2:31 AM Uladzimir Bely <ubely@ilbers.de> wrote:
> On Sun, 2025-01-19 at 09:32 -0800, Stephen Ecker wrote:
> > I'm not certain if this is isar specific or just bitbake: I have a
> > patch file I've added to my layer but my build keeps erroring stating
> > that it can't find the file to patch. the target file is in a recipe
> > of the same name but in a different layer. to where should the patch
> > file point in its second line?
> >
> > thanks
> >
>
> Hello.
> If you have some <recipe>.bb in some layer and <files/your.patch> for
> it in your layer, you should also create in your layer
> <recipe>.bbappend with the contents like:
>
> | FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
> | SRC_URI:append = " \
> | file://your.patch \
> | "
>
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "isar-users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to isar-users+unsubscribe@googlegroups.com.
> > To view this discussion visit
> >
> https://groups.google.com/d/msgid/isar-users/47d4ffc5-3681-4567-91c7-e6533a64b893n%40googlegroups.com
> > .
>
> --
> Best regards,
> Uladzimir.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/CAK9C7GCwq54bGgoiv_7wSata9PM6_ktgaBwsB2O1qVSgBsmbSw%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 3463 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: patch files
2025-01-20 10:57 ` Stephen Ecker
@ 2025-01-21 12:43 ` Uladzimir Bely
2025-01-21 13:50 ` Stephen Ecker
0 siblings, 1 reply; 6+ messages in thread
From: Uladzimir Bely @ 2025-01-21 12:43 UTC (permalink / raw)
To: Stephen Ecker; +Cc: isar-users
On Mon, 2025-01-20 at 04:57 -0600, Stephen Ecker wrote:
> Bb shows the directories in which it looked for the patch file... It
> found that. It's the file to patch that quilt can't find:
>
> NOTE: Applying patch 'something.patch' (../meta-something/recipes-
> core/recipe-name/files/something.patch)
> ....
> can't find file to patch at input line 3
> perhaps you used the wrong -p or --strip option?
>
This looks not related to Isar or bitbake. Your patch simply doesn't
fit sources you want to apply it to.
> ...
>
> It does not show the directories in which it tried to find the target
> file
>
> Maybe you could provide me an example patch file?
>
>
>
> On Mon, Jan 20, 2025, 2:31 AM Uladzimir Bely <ubely@ilbers.de> wrote:
> > On Sun, 2025-01-19 at 09:32 -0800, Stephen Ecker wrote:
> > > I'm not certain if this is isar specific or just bitbake: I have
> > > a
> > > patch file I've added to my layer but my build keeps erroring
> > > stating
> > > that it can't find the file to patch. the target file is in a
> > > recipe
> > > of the same name but in a different layer. to where should the
> > > patch
> > > file point in its second line?
> > >
> > > thanks
> > >
> >
> > Hello.
> > If you have some <recipe>.bb in some layer and <files/your.patch>
> > for
> > it in your layer, you should also create in your layer
> > <recipe>.bbappend with the contents like:
> >
> > | FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
> > | SRC_URI:append = " \
> > | file://your.patch \
> > | "
> >
> >
> > > --
> > > You received this message because you are subscribed to the
> > > Google
> > > Groups "isar-users" group.
> > > To unsubscribe from this group and stop receiving emails from it,
> > > send an email to isar-users+unsubscribe@googlegroups.com.
> > > To view this discussion visit
> > > https://groups.google.com/d/msgid/isar-users/47d4ffc5-3681-4567-91c7-e6533a64b893n%40googlegroups.com
> > > .
> >
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/38f1db24cba24707914f5dd5dcfcee210373c8d4.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: patch files
2025-01-21 12:43 ` Uladzimir Bely
@ 2025-01-21 13:50 ` Stephen Ecker
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Ecker @ 2025-01-21 13:50 UTC (permalink / raw)
To: Uladzimir Bely; +Cc: isar-users
[-- Attachment #1: Type: text/plain, Size: 2760 bytes --]
I made the patch file with the exact two files I'm trying to patch:
diff -u
../../../isar-cip-core/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partitions.script
encrypt_partitions.script > encrypt_partitions.script.patch
On Tue, Jan 21, 2025, 6:43 AM Uladzimir Bely <ubely@ilbers.de> wrote:
> On Mon, 2025-01-20 at 04:57 -0600, Stephen Ecker wrote:
> > Bb shows the directories in which it looked for the patch file... It
> > found that. It's the file to patch that quilt can't find:
> >
> > NOTE: Applying patch 'something.patch' (../meta-something/recipes-
> > core/recipe-name/files/something.patch)
> > ....
> > can't find file to patch at input line 3
> > perhaps you used the wrong -p or --strip option?
> >
>
> This looks not related to Isar or bitbake. Your patch simply doesn't
> fit sources you want to apply it to.
>
> > ...
> >
> > It does not show the directories in which it tried to find the target
> > file
> >
> > Maybe you could provide me an example patch file?
> >
> >
> >
> > On Mon, Jan 20, 2025, 2:31 AM Uladzimir Bely <ubely@ilbers.de> wrote:
> > > On Sun, 2025-01-19 at 09:32 -0800, Stephen Ecker wrote:
> > > > I'm not certain if this is isar specific or just bitbake: I have
> > > > a
> > > > patch file I've added to my layer but my build keeps erroring
> > > > stating
> > > > that it can't find the file to patch. the target file is in a
> > > > recipe
> > > > of the same name but in a different layer. to where should the
> > > > patch
> > > > file point in its second line?
> > > >
> > > > thanks
> > > >
> > >
> > > Hello.
> > > If you have some <recipe>.bb in some layer and <files/your.patch>
> > > for
> > > it in your layer, you should also create in your layer
> > > <recipe>.bbappend with the contents like:
> > >
> > > | FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
> > > | SRC_URI:append = " \
> > > | file://your.patch \
> > > | "
> > >
> > >
> > > > --
> > > > You received this message because you are subscribed to the
> > > > Google
> > > > Groups "isar-users" group.
> > > > To unsubscribe from this group and stop receiving emails from it,
> > > > send an email to isar-users+unsubscribe@googlegroups.com.
> > > > To view this discussion visit
> > > >
> https://groups.google.com/d/msgid/isar-users/47d4ffc5-3681-4567-91c7-e6533a64b893n%40googlegroups.com
> > > > .
> > >
>
> --
> Best regards,
> Uladzimir.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/CAK9C7GDN_8F40SCqOhh%2Bs4f4hZuUR7KUrhRwOzd%2BtiB2N11hcg%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 4381 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-01-21 13:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-19 17:32 patch files Stephen Ecker
2025-01-20 8:31 ` Uladzimir Bely
2025-01-20 10:44 ` Stephen Ecker
2025-01-20 10:57 ` Stephen Ecker
2025-01-21 12:43 ` Uladzimir Bely
2025-01-21 13:50 ` Stephen Ecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox