Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [pull request] Fixes for 2010.05
@ 2010-04-30  0:24 llandwerlin at gmail.com
  2010-04-30  0:24 ` [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic) llandwerlin at gmail.com
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

Here are some patches already sent to the mailing list, taking into
account reviews (thanks to people reviewing).

Available at :
          git://git.potipota.net/buildroot 2010.05-lionels-fixes


Regards,

--
Lionel Landwerlin

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

* [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic)
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-02  7:32   ` Peter Korsgaard
  2010-04-30  0:24 ` [Buildroot] [PATCH 2/8] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target llandwerlin at gmail.com
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/Makefile.autotools.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index a4be8c8..38e57cd 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -200,7 +200,7 @@ ifndef $(2)_INSTALL_STAGING_CMDS
 define $(2)_INSTALL_STAGING_CMDS
 	$$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE) $$($$(PKG)_INSTALL_STAGING_OPT) -C $$($$(PKG)_SRCDIR)
 	for i in $$$$(find $(STAGING_DIR)/usr/lib* -name "*.la"); do \
-		cp $$$$i $$$$i~; \
+		cp -f $$$$i $$$$i~; \
 		$$(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:g" $$$$i; \
 	done
 endef
-- 
1.7.0.4

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

* [Buildroot] [PATCH 2/8] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
  2010-04-30  0:24 ` [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic) llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-01 12:10   ` [Buildroot] [PATCH] " llandwerlin at gmail.com
  2010-04-30  0:24 ` [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files llandwerlin at gmail.com
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Some packages like icu requires to be compiled against the host system
first to be able to compile against the target. This is due to the
usage of self generated binaries by the package to build itself. When
the generated tools also depends on generated libraries it is required
to add the path to these libraries in the library path
(LD_LIBRARY_PATH) especially for the configure step.

Adding $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for target compilation
might break the link step by mixing host libraries and target
binaries.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/Makefile.in |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index 3dfc712..507c59e 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -205,11 +205,11 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
 		NM_FOR_TARGET="$(TARGET_NM)" \
 		DEFAULT_ASSEMBLER="$(TARGET_AS)" \
 		DEFAULT_LINKER="$(TARGET_LD)" \
+		PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
 		PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
 		PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl" \
-		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib" \
 		STAGING_DIR="$(STAGING_DIR)"
 
 TARGET_CONFIGURE_ENV=\
@@ -219,7 +219,6 @@ TARGET_CONFIGURE_ENV=\
 	FCFLAGS="$(TARGET_FCFLAGS)" \
 
 TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
-		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl"
 
 HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
@@ -257,9 +256,11 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
 		ORIGINAL_LD_FOR_TARGET="$(TARGET_LD)" \
 		ORIGINAL_NM_FOR_TARGET="$(TARGET_NM)" \
 		ORIGINAL_OBJDUMP_FOR_TARGET="$(TARGET_OBJDUMP)" \
+		PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
 		PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \
-		PERLLIB="$(HOST_DIR)/usr/lib/perl"
+		PERLLIB="$(HOST_DIR)/usr/lib/perl" \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)"
 
 HOST_MAKE_ENV=PATH=$(HOST_PATH) \
 		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
-- 
1.7.0.4

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

* [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
  2010-04-30  0:24 ` [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic) llandwerlin at gmail.com
  2010-04-30  0:24 ` [Buildroot] [PATCH 2/8] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-02  7:33   ` Peter Korsgaard
  2010-04-30  0:24 ` [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages llandwerlin at gmail.com
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 scripts/copy.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/copy.sh b/scripts/copy.sh
index 410606d..508ed56 100755
--- a/scripts/copy.sh
+++ b/scripts/copy.sh
@@ -5,7 +5,7 @@ TARGET_DIR=$2
 
 echo "Copying development files to target..."
 
-cp -a ${STAGING_DIR}/usr/include ${TARGET_DIR}/usr
+cp -af ${STAGING_DIR}/usr/include ${TARGET_DIR}/usr
 
 for LIBSDIR in /lib /usr/lib; do
 	for WILDCARD in *.a *.la; do
@@ -13,7 +13,7 @@ for LIBSDIR in /lib /usr/lib; do
 			STAGING_STRIPPED=${FILE_PATH##${STAGING_DIR}}
 			EXTENDED_DIR=${STAGING_STRIPPED%/${WILDCARD}}
 			mkdir -p ${TARGET_DIR}${EXTENDED_DIR}
-			cp ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED}
+			cp -fa ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED}
 			#echo ${TARGET_DIR}${STAGING_STRIPPED}
 		done
 	done
-- 
1.7.0.4

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

* [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
                   ` (2 preceding siblings ...)
  2010-04-30  0:24 ` [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-01 11:08   ` Thomas Petazzoni
  2010-05-02  7:31   ` Peter Korsgaard
  2010-04-30  0:24 ` [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize llandwerlin at gmail.com
                   ` (3 subsequent siblings)
  7 siblings, 2 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/Makefile.autotools.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index 38e57cd..b7a7103 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -108,6 +108,7 @@ define $(2)_CONFIGURE_CMDS
 	        $$(HOST_CONFIGURE_OPTS) \
 		CFLAGS="$$(HOST_CFLAGS)" \
 		LDFLAGS="$$(HOST_LDFLAGS)" \
+                $$($$(PKG)_CONF_ENV) \
 		./configure \
 		--prefix="$$(HOST_DIR)/usr" \
 		--sysconfdir="$$(HOST_DIR)/etc" \
-- 
1.7.0.4

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

* [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
                   ` (3 preceding siblings ...)
  2010-04-30  0:24 ` [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-01 11:08   ` Thomas Petazzoni
  2010-05-02  7:34   ` Peter Korsgaard
  2010-04-30  0:24 ` [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable llandwerlin at gmail.com
                   ` (2 subsequent siblings)
  7 siblings, 2 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/libtool/libtool.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/package/libtool/libtool.mk b/package/libtool/libtool.mk
index bbabbb0..4278029 100644
--- a/package/libtool/libtool.mk
+++ b/package/libtool/libtool.mk
@@ -25,3 +25,4 @@ $(eval $(call AUTOTARGETS,package,libtool,host))
 
 # variables used by other packages
 LIBTOOL:=$(HOST_DIR)/usr/bin/libtool
+LIBTOOLIZE:=$(HOST_DIR)/usr/bin/libtoolize
-- 
1.7.0.4

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

* [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
                   ` (4 preceding siblings ...)
  2010-04-30  0:24 ` [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-01 11:08   ` Thomas Petazzoni
  2010-05-02  7:38   ` Peter Korsgaard
  2010-04-30  0:24 ` [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting llandwerlin at gmail.com
  2010-04-30  0:24 ` [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF " llandwerlin at gmail.com
  7 siblings, 2 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

autoheader is used by autoreconf, therefor we need to give the right
path to this tools for host/target autoreconfiguration.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/autoconf/autoconf.mk |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/autoconf/autoconf.mk b/package/autoconf/autoconf.mk
index d82c2c5..b7c1fe4 100644
--- a/package/autoconf/autoconf.mk
+++ b/package/autoconf/autoconf.mk
@@ -17,7 +17,7 @@ AUTOCONF_CONF_ENV = EMACS="no" ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
 AUTOCONF_DEPENDENCIES = microperl host-m4
 
 HOST_AUTOCONF_CONF_ENV = ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
-                    	 ac_cv_prog_gnu_m4_gnu=no
+			ac_cv_prog_gnu_m4_gnu=no
 
 HOST_AUTOCONF_DEPENDENCIES = host-m4 host-libtool
 
@@ -26,4 +26,5 @@ $(eval $(call AUTOTARGETS,package,autoconf,host))
 
 # variables used by other packages
 AUTOCONF:=$(HOST_DIR)/usr/bin/autoconf
-AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" $(HOST_DIR)/usr/bin/autoreconf -v -f -i -I "$(ACLOCAL_DIR)"
+AUTOHEADER:=$(HOST_DIR)/usr/bin/autoheader
+AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" AUTOHEADER="$(AUTOHEADER)" $(HOST_DIR)/usr/bin/autoreconf -v -f -i -I "$(ACLOCAL_DIR)"
-- 
1.7.0.4

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

* [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
                   ` (5 preceding siblings ...)
  2010-04-30  0:24 ` [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-01 11:09   ` Thomas Petazzoni
  2010-05-02  7:41   ` Peter Korsgaard
  2010-04-30  0:24 ` [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF " llandwerlin at gmail.com
  7 siblings, 2 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/autoconf/autoconf.mk |    2 +-
 package/automake/automake.mk |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/autoconf/autoconf.mk b/package/autoconf/autoconf.mk
index b7c1fe4..722165c 100644
--- a/package/autoconf/autoconf.mk
+++ b/package/autoconf/autoconf.mk
@@ -27,4 +27,4 @@ $(eval $(call AUTOTARGETS,package,autoconf,host))
 # variables used by other packages
 AUTOCONF:=$(HOST_DIR)/usr/bin/autoconf
 AUTOHEADER:=$(HOST_DIR)/usr/bin/autoheader
-AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" AUTOHEADER="$(AUTOHEADER)" $(HOST_DIR)/usr/bin/autoreconf -v -f -i -I "$(ACLOCAL_DIR)"
+AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" AUTOHEADER="$(AUTOHEADER)" AUTOMAKE="$(AUTOMAKE)" $(HOST_DIR)/usr/bin/autoreconf -v -f -i -I "$(ACLOCAL_DIR)"
diff --git a/package/automake/automake.mk b/package/automake/automake.mk
index db935a4..46bb773 100644
--- a/package/automake/automake.mk
+++ b/package/automake/automake.mk
@@ -25,6 +25,6 @@ $(eval $(call AUTOTARGETS,package,automake))
 $(eval $(call AUTOTARGETS,package,automake,host))
 
 # variables used by other packages
-AUTOMAKE:=$(HOST_DIR)/usr/bin/automake
+AUTOMAKE = $(HOST_DIR)/usr/bin/automake
 ACLOCAL_DIR = $(STAGING_DIR)/usr/share/aclocal
 ACLOCAL = $(HOST_DIR)/usr/bin/aclocal -I $(ACLOCAL_DIR)
-- 
1.7.0.4

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

* [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF variable setting
  2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
                   ` (6 preceding siblings ...)
  2010-04-30  0:24 ` [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting llandwerlin at gmail.com
@ 2010-04-30  0:24 ` llandwerlin at gmail.com
  2010-05-01 11:09   ` Thomas Petazzoni
  2010-05-02  7:42   ` Peter Korsgaard
  7 siblings, 2 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-04-30  0:24 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/autoconf/autoconf.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/autoconf/autoconf.mk b/package/autoconf/autoconf.mk
index 722165c..e98205e 100644
--- a/package/autoconf/autoconf.mk
+++ b/package/autoconf/autoconf.mk
@@ -27,4 +27,4 @@ $(eval $(call AUTOTARGETS,package,autoconf,host))
 # variables used by other packages
 AUTOCONF:=$(HOST_DIR)/usr/bin/autoconf
 AUTOHEADER:=$(HOST_DIR)/usr/bin/autoheader
-AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" AUTOHEADER="$(AUTOHEADER)" AUTOMAKE="$(AUTOMAKE)" $(HOST_DIR)/usr/bin/autoreconf -v -f -i -I "$(ACLOCAL_DIR)"
+AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" AUTOCONF="$(AUTOCONF)" AUTOHEADER="$(AUTOHEADER)" AUTOMAKE="$(AUTOMAKE)" $(HOST_DIR)/usr/bin/autoreconf -v -f -i -I "$(ACLOCAL_DIR)"
-- 
1.7.0.4

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

* [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages
  2010-04-30  0:24 ` [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages llandwerlin at gmail.com
@ 2010-05-01 11:08   ` Thomas Petazzoni
  2010-05-02  7:31   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2010-05-01 11:08 UTC (permalink / raw)
  To: buildroot

On Fri, 30 Apr 2010 02:24:09 +0200
llandwerlin at gmail.com wrote:

> From: Lionel Landwerlin <llandwerlin@gmail.com>
> 
> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize
  2010-04-30  0:24 ` [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize llandwerlin at gmail.com
@ 2010-05-01 11:08   ` Thomas Petazzoni
  2010-05-02  7:34   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2010-05-01 11:08 UTC (permalink / raw)
  To: buildroot

On Fri, 30 Apr 2010 02:24:10 +0200
llandwerlin at gmail.com wrote:

> From: Lionel Landwerlin <llandwerlin@gmail.com>
> 
> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>


-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable
  2010-04-30  0:24 ` [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable llandwerlin at gmail.com
@ 2010-05-01 11:08   ` Thomas Petazzoni
  2010-05-02  7:38   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2010-05-01 11:08 UTC (permalink / raw)
  To: buildroot

On Fri, 30 Apr 2010 02:24:11 +0200
llandwerlin at gmail.com wrote:

> From: Lionel Landwerlin <llandwerlin@gmail.com>
> 
> autoheader is used by autoreconf, therefor we need to give the right
> path to this tools for host/target autoreconfiguration.
> 
> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting
  2010-04-30  0:24 ` [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting llandwerlin at gmail.com
@ 2010-05-01 11:09   ` Thomas Petazzoni
  2010-05-02  7:41   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2010-05-01 11:09 UTC (permalink / raw)
  To: buildroot

On Fri, 30 Apr 2010 02:24:12 +0200
llandwerlin at gmail.com wrote:

> From: Lionel Landwerlin <llandwerlin@gmail.com>
> 
> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF variable setting
  2010-04-30  0:24 ` [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF " llandwerlin at gmail.com
@ 2010-05-01 11:09   ` Thomas Petazzoni
  2010-05-02  7:42   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2010-05-01 11:09 UTC (permalink / raw)
  To: buildroot

On Fri, 30 Apr 2010 02:24:13 +0200
llandwerlin at gmail.com wrote:

> From: Lionel Landwerlin <llandwerlin@gmail.com>
> 
> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target
  2010-04-30  0:24 ` [Buildroot] [PATCH 2/8] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target llandwerlin at gmail.com
@ 2010-05-01 12:10   ` llandwerlin at gmail.com
  0 siblings, 0 replies; 22+ messages in thread
From: llandwerlin at gmail.com @ 2010-05-01 12:10 UTC (permalink / raw)
  To: buildroot

From: Lionel Landwerlin <llandwerlin@gmail.com>

Some packages like icu requires to be compiled against the host system
first to be able to compile against the target. This is due to the
usage of self generated binaries by the package to build itself. When
the generated tools also depends on generated libraries it is required
to add the path to these libraries in the library path
(LD_LIBRARY_PATH) especially for the configure step.

Adding $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for target compilation
might break the link step by mixing host libraries and target
binaries.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 package/Makefile.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index 3dfc712..6d99205 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -209,7 +209,6 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
 		PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl" \
-		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib" \
 		STAGING_DIR="$(STAGING_DIR)"
 
 TARGET_CONFIGURE_ENV=\
@@ -219,7 +218,6 @@ TARGET_CONFIGURE_ENV=\
 	FCFLAGS="$(TARGET_FCFLAGS)" \
 
 TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
-		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl"
 
 HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
@@ -257,9 +255,11 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
 		ORIGINAL_LD_FOR_TARGET="$(TARGET_LD)" \
 		ORIGINAL_NM_FOR_TARGET="$(TARGET_NM)" \
 		ORIGINAL_OBJDUMP_FOR_TARGET="$(TARGET_OBJDUMP)" \
+		PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
 		PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \
-		PERLLIB="$(HOST_DIR)/usr/lib/perl"
+		PERLLIB="$(HOST_DIR)/usr/lib/perl" \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)"
 
 HOST_MAKE_ENV=PATH=$(HOST_PATH) \
 		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
-- 
1.7.0.4

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

* [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages
  2010-04-30  0:24 ` [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages llandwerlin at gmail.com
  2010-05-01 11:08   ` Thomas Petazzoni
@ 2010-05-02  7:31   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:31 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic)
  2010-04-30  0:24 ` [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic) llandwerlin at gmail.com
@ 2010-05-02  7:32   ` Peter Korsgaard
  0 siblings, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:32 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files
  2010-04-30  0:24 ` [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files llandwerlin at gmail.com
@ 2010-05-02  7:33   ` Peter Korsgaard
  0 siblings, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:33 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize
  2010-04-30  0:24 ` [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize llandwerlin at gmail.com
  2010-05-01 11:08   ` Thomas Petazzoni
@ 2010-05-02  7:34   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:34 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable
  2010-04-30  0:24 ` [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable llandwerlin at gmail.com
  2010-05-01 11:08   ` Thomas Petazzoni
@ 2010-05-02  7:38   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:38 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> autoheader is used by autoreconf, therefor we need to give the right
 llandwerlin> path to this tools for host/target autoreconfiguration.

 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting
  2010-04-30  0:24 ` [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting llandwerlin at gmail.com
  2010-05-01 11:09   ` Thomas Petazzoni
@ 2010-05-02  7:41   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:41 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF variable setting
  2010-04-30  0:24 ` [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF " llandwerlin at gmail.com
  2010-05-01 11:09   ` Thomas Petazzoni
@ 2010-05-02  7:42   ` Peter Korsgaard
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2010-05-02  7:42 UTC (permalink / raw)
  To: buildroot

>>>>> "llandwerlin" == llandwerlin  <llandwerlin@gmail.com> writes:

 llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
 llandwerlin> Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2010-05-02  7:42 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
2010-04-30  0:24 ` [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic) llandwerlin at gmail.com
2010-05-02  7:32   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 2/8] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target llandwerlin at gmail.com
2010-05-01 12:10   ` [Buildroot] [PATCH] " llandwerlin at gmail.com
2010-04-30  0:24 ` [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files llandwerlin at gmail.com
2010-05-02  7:33   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages llandwerlin at gmail.com
2010-05-01 11:08   ` Thomas Petazzoni
2010-05-02  7:31   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize llandwerlin at gmail.com
2010-05-01 11:08   ` Thomas Petazzoni
2010-05-02  7:34   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable llandwerlin at gmail.com
2010-05-01 11:08   ` Thomas Petazzoni
2010-05-02  7:38   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting llandwerlin at gmail.com
2010-05-01 11:09   ` Thomas Petazzoni
2010-05-02  7:41   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF " llandwerlin at gmail.com
2010-05-01 11:09   ` Thomas Petazzoni
2010-05-02  7:42   ` Peter Korsgaard

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