[Buildroot] Issue Applying Patches to Package

Michael Nosthoff buildroot at heine.tech
Wed Oct 1 14:11:44 UTC 2025


Hi Dylan,

On Wednesday, October 01, 2025 15:55 CEST, Dylan <ohitsdylan at outlook.com> wrote:

> Hello,
> 
> I am trying to patch the psplash package. I've followed the Buildroot 
> documentation and set up a global patch directory with the package name 
> and the patches within:
> 
> /home/dylan/project_name/external/board/my_board/patches
> └── psplash
>      ├── 0001-psplash-config.patch
>      ├── 0002-psplash-colors.patch
>      ├── psplash-colors.h
>      ├── psplash-colors.h.orig
>      ├── psplash-config.h
>      └── psplash-config.h.orig
> 

I don't see why you include the .h and .h.orig files into the patch dir. The changes are in the .patch files
so only those files are relevant.

> When Buildroot tries to patch the psplash package, it returns an error 
> message, "can't find file to patch at input line 3".
> I've included the output of "make psplash-patch V=1" in the pastebin 
> here: https://paste.ack.tf/ce2678
> 
> I'm not sure what I'm doing wrong here; it seems to me that everything 
> is set up correctly.
> 
> I've attached the patch files here, as well.

The issue is in your patch files. 

--- psplash-config.h.orig       2025-09-03 15:01:21.282531766 -0400
+++ psplash-config.h    2025-09-03 15:10:18.445116066 -0400

should be

--- psplash-config.h       2025-09-03 15:01:21.282531766 -0400
+++ psplash-config.h    2025-09-03 15:10:18.445116066 -0400

I assume you created this diff manually between the two files and not from a git commit.
For the patching we want to apply the change to one file and not to another so the
two lines need to be identical.

Regards,
Michael



More information about the buildroot mailing list