From: Bjoern Kaufmann <bjoern.kaufmann.s@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: "No file to patch" when trying to apply patch
Date: Fri, 7 Mar 2025 02:14:05 -0800 (PST) [thread overview]
Message-ID: <58571238-96cc-4862-89ea-4ca2c3152b5an@googlegroups.com> (raw)
[-- 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 --]
next reply other threads:[~2025-03-07 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 10:14 Bjoern Kaufmann [this message]
2025-03-07 10:17 ` 'Jan Kiszka' via isar-users
2025-03-07 11:00 ` Bjoern Kaufmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58571238-96cc-4862-89ea-4ca2c3152b5an@googlegroups.com \
--to=bjoern.kaufmann.s@gmail.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox