Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/sdl2_net: add missing host-pkgconf dependency
@ 2018-12-12  8:52 Thomas Petazzoni
  2018-12-13 20:17 ` Thomas Petazzoni
  2018-12-16 21:16 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-12  8:52 UTC (permalink / raw)
  To: buildroot

The sdl2_net configure script uses pkg-config to finx sdl2. If it
doesn't find pkg-config, it tries to locate sdl2-config, and defaults
to /usr/bin/sdl2-config, which causes the build to fail with:

arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/SDL2'

Fix this by adding host-pkgconf to the dependencies of sdl2_net. We
could have added the right autoconf cache variable to tell the
configure script where sdl2-config is located, but since pkg-config is
tried first, let's use that.

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

diff --git a/package/sdl2_net/sdl2_net.mk b/package/sdl2_net/sdl2_net.mk
index 2fa4a8c2e0..93bf3a2eb3 100644
--- a/package/sdl2_net/sdl2_net.mk
+++ b/package/sdl2_net/sdl2_net.mk
@@ -10,6 +10,6 @@ SDL2_NET_SITE = http://www.libsdl.org/projects/SDL_net/release
 SDL2_NET_LICENSE = Zlib
 SDL2_NET_LICENSE_FILES = COPYING.txt
 SDL2_NET_INSTALL_STAGING = YES
-SDL2_NET_DEPENDENCIES = sdl2
+SDL2_NET_DEPENDENCIES = sdl2 host-pkgconf
 
 $(eval $(autotools-package))
-- 
2.19.2

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

* [Buildroot] [PATCH] package/sdl2_net: add missing host-pkgconf dependency
  2018-12-12  8:52 [Buildroot] [PATCH] package/sdl2_net: add missing host-pkgconf dependency Thomas Petazzoni
@ 2018-12-13 20:17 ` Thomas Petazzoni
  2018-12-16 21:16 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-13 20:17 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 12 Dec 2018 09:52:12 +0100, Thomas Petazzoni wrote:
> The sdl2_net configure script uses pkg-config to finx sdl2. If it
> doesn't find pkg-config, it tries to locate sdl2-config, and defaults
> to /usr/bin/sdl2-config, which causes the build to fail with:
> 
> arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/SDL2'
> 
> Fix this by adding host-pkgconf to the dependencies of sdl2_net. We
> could have added the right autoconf cache variable to tell the
> configure script where sdl2-config is located, but since pkg-config is
> tried first, let's use that.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  package/sdl2_net/sdl2_net.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

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

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

* [Buildroot] [PATCH] package/sdl2_net: add missing host-pkgconf dependency
  2018-12-12  8:52 [Buildroot] [PATCH] package/sdl2_net: add missing host-pkgconf dependency Thomas Petazzoni
  2018-12-13 20:17 ` Thomas Petazzoni
@ 2018-12-16 21:16 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-12-16 21:16 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > The sdl2_net configure script uses pkg-config to finx sdl2. If it
 > doesn't find pkg-config, it tries to locate sdl2-config, and defaults
 > to /usr/bin/sdl2-config, which causes the build to fail with:

 > arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/SDL2'

 > Fix this by adding host-pkgconf to the dependencies of sdl2_net. We
 > could have added the right autoconf cache variable to tell the
 > configure script where sdl2-config is located, but since pkg-config is
 > tried first, let's use that.

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Committed to 2018.02.x, 2018.08.x and 2018.11.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2018-12-16 21:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-12  8:52 [Buildroot] [PATCH] package/sdl2_net: add missing host-pkgconf dependency Thomas Petazzoni
2018-12-13 20:17 ` Thomas Petazzoni
2018-12-16 21:16 ` Peter Korsgaard

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