* "No file to patch" when trying to apply patch
@ 2025-03-07 10:14 Bjoern Kaufmann
2025-03-07 10:17 ` 'Jan Kiszka' via isar-users
0 siblings, 1 reply; 3+ messages in thread
From: Bjoern Kaufmann @ 2025-03-07 10:14 UTC (permalink / raw)
To: isar-users
[-- Attachment #1.1: Type: text/plain, Size: 1990 bytes --]
Hello,
I am currently trying to apply a patch on one of my components I want to
build from sources using the dpkg bbclass:
my-recipe_1.0.bb
*inherit dpkgSRC_URI = "git://some-repo.git;branch=master;protocol=ssh"*
*SRC_URI += "file://TPM-dictionary-attack-lock.patch"*
*SRCREV = "6fa1dbb543cb7147197c175bccd61e2bd443d36b"*
my filetree looks like this:
*my-recipe/*
* my-recipe_1.0.bb*
* files/*
TPM-dictionary-attack-lock.patch
The workdir after do_fetch, do_unpack etc. looks like the following:
[image: workdir.png]
But during do_patch when trying to apply the patch, it always gives me the
error "No file to patch.":
stdout: Applying patch TPM-dictionary-attack-lock.patch
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 76020b69daebb37d74e3d74288b9694274e9b3f5 Mon Sep 17 00:00:00 2001
|From: somename <somename@somemail.com>
|Date: Fri, 7 Mar 2025 10:22:58 +0100
|Subject: [PATCH] feat: add TPM dictionary attack lock
| script
|
|---
| provisioning/tpm_ibm/tpm-provisioning | 2 ++
| 1 file changed, 2 insertions(+)
|
|diff --git a/provisioning/tpm_ibm/tpm-provisioning
b/provisioning/tpm_ibm/tpm-provisioning
|index c1c62de..2ed1ce6 100644
|--- a/provisioning/tpm_ibm/tpm-provisioning
|+++ b/provisioning/tpm_ibm/tpm-provisioning
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch TPM-dictionary-attack-lock.patch does not apply (enforce with -f)
stderr:
I am currently using isar commit 30471bb3f787fb0aa822d15e141ecce2f3b99860.
Best Regards,
Bjoern
--
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/58571238-96cc-4862-89ea-4ca2c3152b5an%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2898 bytes --]
[-- Attachment #2: workdir.png --]
[-- Type: image/png, Size: 9945 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "No file to patch" when trying to apply patch
2025-03-07 10:14 "No file to patch" when trying to apply patch Bjoern Kaufmann
@ 2025-03-07 10:17 ` 'Jan Kiszka' via isar-users
2025-03-07 11:00 ` Bjoern Kaufmann
0 siblings, 1 reply; 3+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2025-03-07 10:17 UTC (permalink / raw)
To: Bjoern Kaufmann, isar-users
On 07.03.25 11:14, Bjoern Kaufmann wrote:
> Hello,
>
> I am currently trying to apply a patch on one of my components I want to
> build from sources using the dpkg bbclass:
>
> my-recipe_1.0.bb
>
> /inherit dpkg
>
> SRC_URI = "git://some-repo.git;branch=master;protocol=ssh"/
> /SRC_URI += "file://TPM-dictionary-attack-lock.patch"/
> /
> SRCREV = "6fa1dbb543cb7147197c175bccd61e2bd443d36b"/
> /
S = "${WORKDIR}/git"
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center
--
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/509b182a-4942-4b7a-9ab7-d5c383b5a17e%40siemens.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "No file to patch" when trying to apply patch
2025-03-07 10:17 ` 'Jan Kiszka' via isar-users
@ 2025-03-07 11:00 ` Bjoern Kaufmann
0 siblings, 0 replies; 3+ messages in thread
From: Bjoern Kaufmann @ 2025-03-07 11:00 UTC (permalink / raw)
To: isar-users
[-- Attachment #1.1: Type: text/plain, Size: 1017 bytes --]
Oh, thank you
Bjoern
On Friday, March 7, 2025 at 11:17:44 AM UTC+1 Jan Kiszka wrote:
> On 07.03.25 11:14, Bjoern Kaufmann wrote:
> > Hello,
> >
> > I am currently trying to apply a patch on one of my components I want to
> > build from sources using the dpkg bbclass:
> >
> > my-recipe_1.0.bb
> >
> > /inherit dpkg
> >
> > SRC_URI = "git://some-repo.git;branch=master;protocol=ssh"/
> > /SRC_URI += "file://TPM-dictionary-attack-lock.patch"/
> > /
> > SRCREV = "6fa1dbb543cb7147197c175bccd61e2bd443d36b"/
> > /
>
> S = "${WORKDIR}/git"
>
> Jan
>
> --
> Siemens AG, Foundational Technologies
> Linux Expert Center
>
--
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/4304c5e0-d9a7-41ac-9a6c-f96878bf8191n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1864 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-07 11:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-07 10:14 "No file to patch" when trying to apply patch Bjoern Kaufmann
2025-03-07 10:17 ` 'Jan Kiszka' via isar-users
2025-03-07 11:00 ` Bjoern Kaufmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox