Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/xxhash: make sure installed .pc file is correct
@ 2026-10-21 18:35 Thomas Petazzoni via buildroot
  2026-10-21 19:24 ` Julien Olivain via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-21 18:35 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni

The libxxhash.pc installed by our xxhash package is incorrect as it
contains:

prefix=/usr/local

while the library is installed in /usr. This causes for example a
build failure of libplacebo when xxhash is built before:

output/build/libplacebo-v7.360.1/src/meson.build:247:6: ERROR: Include dir /home/thomas/projets/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/local/include does not exist.

The problem comes from the fact that the .pc file is generated during
the build step from .pc.in template, and we don't pass PREFIX=/usr at
the build step. To fix, we pass PREFIX=/usr during the build step, not
just during the install step.

The problem has probably existed since we started installing the
libxxhash library in commit
cc0c90aa83821d817ae2cbe01ad2c8d22ea30ba8 ("package/xxhash: install in
staging"), but we tested in 2025.02.x, and the problem exists so this
patch should be backported to 2025.02.x.

Fixes:

  https://autobuild.buildroot.net/results/344af8504a77ae96e4009d76a77572180cf49b14/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/xxhash/xxhash.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/xxhash/xxhash.mk b/package/xxhash/xxhash.mk
index 51bf6ce855..fc2084c878 100644
--- a/package/xxhash/xxhash.mk
+++ b/package/xxhash/xxhash.mk
@@ -31,7 +31,7 @@ endif
 
 define XXHASH_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
-		MOREFLAGS=-DXXH_NO_INLINE_HINTS $(XXHASH_TARGETS)
+		PREFIX=/usr MOREFLAGS=-DXXH_NO_INLINE_HINTS $(XXHASH_TARGETS)
 endef
 
 define XXHASH_INSTALL_STAGING_CMDS
-- 
2.56.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/xxhash: make sure installed .pc file is correct
  2026-10-21 18:35 [Buildroot] [PATCH] package/xxhash: make sure installed .pc file is correct Thomas Petazzoni via buildroot
@ 2026-10-21 19:24 ` Julien Olivain via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-10-21 19:24 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: buildroot

On 21/10/2026 20:35, Thomas Petazzoni via buildroot wrote:
> The libxxhash.pc installed by our xxhash package is incorrect as it
> contains:
> 
> prefix=/usr/local
> 
> while the library is installed in /usr. This causes for example a
> build failure of libplacebo when xxhash is built before:
> 
> output/build/libplacebo-v7.360.1/src/meson.build:247:6: ERROR: Include 
> dir 
> /home/thomas/projets/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/local/include 
> does not exist.
> 
> The problem comes from the fact that the .pc file is generated during
> the build step from .pc.in template, and we don't pass PREFIX=/usr at
> the build step. To fix, we pass PREFIX=/usr during the build step, not
> just during the install step.
> 
> The problem has probably existed since we started installing the
> libxxhash library in commit
> cc0c90aa83821d817ae2cbe01ad2c8d22ea30ba8 ("package/xxhash: install in
> staging"), but we tested in 2025.02.x, and the problem exists so this
> patch should be backported to 2025.02.x.
> 
> Fixes:
> 
>   
> https://autobuild.buildroot.net/results/344af8504a77ae96e4009d76a77572180cf49b14/
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-21 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 18:35 [Buildroot] [PATCH] package/xxhash: make sure installed .pc file is correct Thomas Petazzoni via buildroot
2026-10-21 19:24 ` Julien Olivain via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox