Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV
@ 2012-04-04 12:50 Sven Neumann
  2012-04-11 10:05 ` Sven Neumann
  2012-04-15 21:09 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Neumann @ 2012-04-04 12:50 UTC (permalink / raw)
  To: buildroot

A host package that uses AUTORECONF (such as host-libglib2)
may end up running './config.status --recheck'. This will
call the configure script with the environment variables
set in HOST_MAKE_ENV. If PKG_CONFIG_SYSROOT_DIR is missing
this will cause the hardcoded sysroot dir take effect leading
to wrong paths.

See commit 22acade2ec311 which works around this problem by
fiddling with the generated .pc file. This commit becomes
obsolete with this fix.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Cc: Daniel Mack <zonque@gmail.com>
---
 package/Makefile.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index dc8d038..c344c6b 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -222,6 +222,7 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
 HOST_MAKE_ENV=PATH=$(HOST_PATH) \
 		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
+		PKG_CONFIG_SYSROOT_DIR="/" \
 		PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl"
 
-- 
1.7.9.1

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

* [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV
  2012-04-04 12:50 [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV Sven Neumann
@ 2012-04-11 10:05 ` Sven Neumann
  2012-04-15 21:09 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Sven Neumann @ 2012-04-11 10:05 UTC (permalink / raw)
  To: buildroot

Hi,

On Wed, 2012-04-04 at 14:50 +0200, Sven Neumann wrote:
> A host package that uses AUTORECONF (such as host-libglib2)
> may end up running './config.status --recheck'. This will
> call the configure script with the environment variables
> set in HOST_MAKE_ENV. If PKG_CONFIG_SYSROOT_DIR is missing
> this will cause the hardcoded sysroot dir take effect leading
> to wrong paths.
> 
> See commit 22acade2ec311 which works around this problem by
> fiddling with the generated .pc file. This commit becomes
> obsolete with this fix.22acade2ec311
> 
> Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
> Cc: Daniel Mack <zonque@gmail.com>
> ---
>  package/Makefile.in |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/package/Makefile.in b/package/Makefile.in
> index dc8d038..c344c6b 100644
> --- a/package/Makefile.in
> +++ b/package/Makefile.in
> @@ -222,6 +222,7 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
>  HOST_MAKE_ENV=PATH=$(HOST_PATH) \
>  		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
>  		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
> +		PKG_CONFIG_SYSROOT_DIR="/" \
>  		PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \
>  		PERLLIB="$(HOST_DIR)/usr/lib/perl"
>  

Any feedback on this? This small change fixes an important problem and
makes the workaround from 22acade2ec311 obsolete. Please consider it for
inclusion.


Regards,
Sven

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

* [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV
  2012-04-04 12:50 [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV Sven Neumann
  2012-04-11 10:05 ` Sven Neumann
@ 2012-04-15 21:09 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2012-04-15 21:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:

 Sven> A host package that uses AUTORECONF (such as host-libglib2)
 Sven> may end up running './config.status --recheck'. This will
 Sven> call the configure script with the environment variables
 Sven> set in HOST_MAKE_ENV. If PKG_CONFIG_SYSROOT_DIR is missing
 Sven> this will cause the hardcoded sysroot dir take effect leading
 Sven> to wrong paths.

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2012-04-15 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 12:50 [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV Sven Neumann
2012-04-11 10:05 ` Sven Neumann
2012-04-15 21:09 ` Peter Korsgaard

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