linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] pkg-config default search paths
@ 2014-08-18 11:05 Silvio Fricke
  2014-08-18 11:05 ` [PATCH v2] kconfig: menuconfig: pkg-config should base upon default configuration Silvio Fricke
  0 siblings, 1 reply; 2+ messages in thread
From: Silvio Fricke @ 2014-08-18 11:05 UTC (permalink / raw)
  To: Yann E . MORIN; +Cc: Silvio Fricke, linux-kbuild, linux-kernel


Hi,

some cross-toolchains change the pkg-config search pathes to do some
package-config setups for cross compiling. The init of the toolchain
manipulates PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH environment variables.
A pkg-config call from kconfig searches now on the wrong place to find the
ncurses and relevant packages and gives back the wrong values for the ncurses
installation and this break the [x,g,menu]config.

Yann, please include this patch to your maintainer repository.

V2:
no changes to v1 [1], only "RFC" removed

[1] http://thread.gmane.org/gmane.linux.kbuild.devel/11993

Cheers,
Silvio


Silvio Fricke (1):
  kconfig: menuconfig: pkg-config should base upon default configuration

 scripts/kconfig/lxdialog/check-lxdialog.sh | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.0.4


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

* [PATCH v2] kconfig: menuconfig: pkg-config should base upon default configuration
  2014-08-18 11:05 [PATCH v2] pkg-config default search paths Silvio Fricke
@ 2014-08-18 11:05 ` Silvio Fricke
  0 siblings, 0 replies; 2+ messages in thread
From: Silvio Fricke @ 2014-08-18 11:05 UTC (permalink / raw)
  To: Yann E . MORIN; +Cc: Silvio Fricke, linux-kbuild, linux-kernel

Since fc9c6e0 "menuconfig: optionally use pkg-config to detect ncurses
libs" we use pkg-config, but some cross toolchains (like yocto tc)
change the search pathes for pc files with some PKG_CONFIG_* environment
variables.

With this patch we ensure that we only get the host config options for
ncurses and don't mix with others not relevant settings.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
---
 scripts/kconfig/lxdialog/check-lxdialog.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 9d2a4c5..a067d3c 100644
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -1,6 +1,9 @@
 #!/bin/sh
 # Check ncurses compatibility
 
+unset PKG_CONFIG_PATH
+unset PKG_CONFIG_SYSROOT_DIR
+
 # What library to link
 ldflags()
 {
-- 
2.0.4


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

end of thread, other threads:[~2014-08-18 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-18 11:05 [PATCH v2] pkg-config default search paths Silvio Fricke
2014-08-18 11:05 ` [PATCH v2] kconfig: menuconfig: pkg-config should base upon default configuration Silvio Fricke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).