[Buildroot] [PATCH 1/1] package/sdl2: Fix sdl2-config.cmake

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jul 29 10:17:02 UTC 2021


On Thu,  1 Jul 2021 07:24:32 +0100
Gleb Mazovetskiy <glex.spb at gmail.com> wrote:

> SDL2 autotools-provided sdl2-config.cmake uses the absolute /usr prefix.
> For this reason, we previously removed it (as of d59261836a).
> 
> This commit fixes sdl2-config.cmake to use relative paths instead.
> 
> Signed-off-by: Gleb Mazovetskiy <glex.spb at gmail.com>
> ---
>  package/sdl2/sdl2.mk | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

I have applied, after slightly reworking how the SED replacement is
done. I'm using the "i" sed command to insert the line, and then do the
"s" replacement separately.

Yes, it requires two sed invocations, but I found it to be a bit
clearer.

Thanks for your contribution!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list