[Buildroot] [RESEND PATCH 6/8] package/pkg-generic: Purge files that should not be installed by INSTALL_CMDS

John Ernberg john.ernberg at actia.se
Tue May 19 08:14:46 UTC 2026


Hi Arnout,

On 5/18/26 9:37 PM, Arnout Vandecappelle wrote:
> 
> 
> On 10/05/2026 21:38, John Ernberg wrote:
>> Packages such as mutt, bash and gdb are either generating their tar-balls
>> incorrectly, or break automake with custom directives, in such a way that
>> AM_UPDATE_INFO_DIR=no doesn't work to avoid updating the
>> /usr/share/info/dir file.
>>
>> Add a post-install hook to both staging and target to delete files 
>> that are
>> needlessly generated and conflict with other packages post-install when
>> building with PPD enabled.
>>
>> Since the currently listed file is documentation related, which ends up
>> deleted anyway, there is no TARGET_FINALIZE hook provided to generate the
>> file at a later point.
>>
>> The post-install hook is added at the global level for easier 
>> extension and
>> also cover non-automake based packages that could be similarly broken.
> 
>   Isn't this already done by remove-conflicting-useless-files? If that 
> doesn't
> work, please try to fix it rather than adding yet another mechanism.
> 
>   (Marked as Changes Requested in patchwork.)
> 
>   Regards,
>   Arnout
> 
I was looking for an existing mechanism and completely missed it, hence 
this one.

Looking at it, it looks like it's already trying to handle this same 
file and fails because the path is wrong... I'll have a dig and send V2 
when I have something.

Thanks! // John Ernberg


More information about the buildroot mailing list