]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rust: Fix malformed hunk header in rustix patch
authorYash Shinde <Yash.Shinde@windriver.com>
Mon, 21 Jul 2025 13:05:23 +0000 (06:05 -0700)
committerSteve Sakoman <steve@sakoman.com>
Wed, 23 Jul 2025 16:15:40 +0000 (09:15 -0700)
commit2e5234204922d08eba18812d297f469779d80c82
tree2dace433c96f39c38ac21e0fb67cfbae27e2dd85
parente4e5738597567b574b18f2ffdf60e2b41951c42a
rust: Fix malformed hunk header in rustix patch

The rv32-cargo-rustix-0.38.38-fix.patch file contains a malformed hunk
header at line 83 (@ -71,10 +71,10 @@), where a single '@' is used
instead of the required '@@'. Due to this, the subsequent hunks are not
applied during patching.

This causes a compilation error in the rustix crate:

error[E0603]: constant import `FICLONE` is private
   --> vendor/rustix-0.38.37/src/fs/ioctl.rs:82:57
    |
82  |     const OPCODE: ioctl::Opcode = ioctl::Opcode::old(c::FICLONE as ioctl::RawOpcode);
    |                                                         ^^^^^^^ private constant import

Fixing the hunk header ensures the patch is applied correctly and
resolves the build issue.

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/rust/files/rv32-cargo-rustix-0.38.38-fix.patch