[Buildroot] Issue Applying Patches to Package

Nicolas Cavallari nicolas.cavallari at green-communications.fr
Wed Oct 1 16:11:28 UTC 2025


On 10/1/25 16:11, Michael Nosthoff via buildroot wrote:
> 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

Actually, buildroot uses -p 1, so it should be e.g.

--- a/psplash-config.h
+++ b/psplash-config.h


More information about the buildroot mailing list