Browse Source

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.

(From OE-Core rev: 2e5234204922d08eba18812d297f469779d80c82)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Yash Shinde 3 months ago
parent
commit
b4ecf098a6

File diff suppressed because it is too large
+ 1 - 1
meta/recipes-devtools/rust/files/rv32-cargo-rustix-0.38.38-fix.patch


Some files were not shown because too many files changed in this diff