Skip to contentSkip to conversation

small fixes

GIT PULL New llandwerlin at gmail.com 4 participants 10 messages Sep 18, 2010 – Sep 20, 2010

lore
Share & tools
lore
#0 lore raw

Just a few fixes for 2010.11.
Pullable at : git://git.potipota.net/buildroot small-fixes

Regards,

--
Lionel Landwerlin

#1 lore raw

PATCH 1/3 package: drop special case for target-install with BR2_ENABLE_DEBUG

From: Lionel Landwerlin <[email protected]>

install-exec isn't used anymore

---
 package/autoconf/autoconf.mk     |    4 ----
 package/automake/automake.mk     |    4 ----
 package/dbus/dbus.mk             |    9 ++-------
 package/haserl/haserl.mk         |    5 ++---
 package/libtool/libtool.mk       |    4 ----
 package/m4/m4.mk                 |    4 ----
 package/pkg-config/pkg-config.mk |    4 ----
 package/rsync/rsync.mk           |    9 ++-------
 package/sawman/sawman.mk         |    5 -----
 9 files changed, 6 insertions(+), 42 deletions(-)
package/autoconf/autoconf.mk +0 -4
index 8794466..a21192f 100644
@@ -7,10 +7,6 @@ AUTOCONF_VERSION = 2.65
 AUTOCONF_SOURCE = autoconf-$(AUTOCONF_VERSION).tar.bz2
 AUTOCONF_SITE = $(BR2_GNU_MIRROR)/autoconf
 
-ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
-AUTOCONF_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-endif
-
 AUTOCONF_CONF_ENV = EMACS="no" ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
 		    ac_cv_prog_gnu_m4_gnu=no
 
package/automake/automake.mk +0 -4
index 46bb773..a33c9f4 100644
@@ -7,10 +7,6 @@ AUTOMAKE_VERSION = 1.10
 AUTOMAKE_SOURCE = automake-$(AUTOMAKE_VERSION).tar.bz2
 AUTOMAKE_SITE = $(BR2_GNU_MIRROR)/automake
 
-ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
-AUTOMAKE_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-endif
-
 AUTOMAKE_DEPENDENCIES = host-autoconf autoconf microperl
 
 HOST_AUTOMAKE_DEPENDENCIES = host-autoconf
package/dbus/dbus.mk +2 -7
index 141cf69..e568080 100644
@@ -9,13 +9,6 @@ DBUS_SITE = http://dbus.freedesktop.org/releases/dbus/
 DBUS_LIBTOOL_PATCH = NO
 DBUS_INSTALL_STAGING = YES
 DBUS_INSTALL_TARGET = YES
-ifeq ($(BR2_ENABLE_DEBUG),y)
-# install-exec doesn't install the config file
-DBUS_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-else
-# install-strip uses host strip
-DBUS_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install-strip STRIPPROG="$(STRIPCMD)"
-endif
 
 DBUS_DEPENDENCIES = host-pkg-config
 
@@ -49,6 +42,8 @@ else
 DBUS_CONF_OPT += --without-x
 endif
 
+DBUS_MAKE_ENV = STRIPPROG="$(STRIPCMD)"
+
 # fix rebuild (dbus makefile errors out if /var/lib/dbus is a symlink)
 define DBUS_REMOVE_VAR_LIB_DBUS
 	rm -rf $(TARGET_DIR)/var/lib/dbus
package/haserl/haserl.mk +2 -3
index 53b5548..1fe4292 100644
@@ -8,9 +8,6 @@ HASERL_VERSION:=$(call qstrip,$(BR2_PACKAGE_HASERL_VERSION))
 HASERL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/haserl/
 HASERL_AUTORECONF:=NO
 HASERL_INSTALL_TARGET:=YES
-ifeq ($(BR2_ENABLE_DEBUG),)
-HASERL_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) STRIPPROG='$(STRIPCMD)' install-strip
-endif
 
 # force haserl 0.8.0 to use install-sh so stripping works
 HASERL_CONF_ENV = ac_cv_path_install=./install-sh
@@ -22,6 +19,8 @@ ifeq ($(BR2_PACKAGE_HASERL_WITH_LUA),y)
 	HASERL_DEPENDENCIES += lua
 endif
 
+HASERL_MAKE_ENV = STRIPPROG='$(STRIPCMD)'
+
 define HASERL_REMOVE_EXAMPLES
 	rm -rf $(TARGET_DIR)/usr/share/haserl
 endef
package/libtool/libtool.mk +0 -4
index 4278029..a996876 100644
@@ -7,10 +7,6 @@ LIBTOOL_VERSION = 1.5.24
 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.gz
 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
 
-ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
-LIBTOOL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-endif
-
 define HOST_LIBTOOL_CUSTOM_INSTALL
 	install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/libtool.m4 \
 		$(STAGING_DIR)/usr/share/aclocal/libtool.m4
package/m4/m4.mk +0 -4
index a0b56c4..7f2e333 100644
@@ -7,10 +7,6 @@ M4_VERSION = 1.4.9
 M4_SOURCE = m4-$(M4_VERSION).tar.bz2
 M4_SITE = $(BR2_GNU_MIRROR)/m4
 
-ifeq ($(BR2_ENABLE_DEBUG),y) # no install-exec
-M4_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-endif
-
 M4_CONF_ENV = gl_cv_func_gettimeofday_clobber=no
 
 ifneq ($(BR2_USE_WCHAR),y)
package/pkg-config/pkg-config.mk +0 -4
index 7caf37b..330b166 100644
@@ -7,10 +7,6 @@ PKG_CONFIG_VERSION = 0.23
 PKG_CONFIG_SOURCE = pkg-config-$(PKG_CONFIG_VERSION).tar.gz
 PKG_CONFIG_SITE = http://pkgconfig.freedesktop.org/releases/
 
-ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
-PKG_CONFIG_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-endif
-
 PKG_CONFIG_DEPENDENCIES = libglib2
 
 PKG_CONFIG_CONF_OPT = --with-installed-glib
package/rsync/rsync.mk +2 -7
index e1bb28e..2e70f7f 100644
@@ -10,13 +10,8 @@ RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/src
 RSYNC_INSTALL_STAGING:=NO
 RSYNC_INSTALL_TARGET:=YES
 RSYNC_CONF_OPT=$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
-ifeq ($(BR2_ENABLE_DEBUG),y)
-RSYNC_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) INSTALLCMD='./install-sh -c' \
-			  install
-else
-RSYNC_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) INSTALLCMD='./install-sh -c' \
-			  STRIPPROG="$(TARGET_STRIP)" install-strip
-endif
 RSYNC_CONF_OPT:=--with-included-popt
 
+RSYNC_MAKE_ENV = STRIPPROG="$(STRIPCMD)"
+
 $(eval $(call AUTOTARGETS,package,rsync))
package/sawman/sawman.mk +0 -5
index 1b53ea9..c9ec06d 100644
@@ -9,11 +9,6 @@ SAWMAN_SITE:=http://www.directfb.org/downloads/Extras
 SAWMAN_INSTALL_STAGING = YES
 SAWMAN_INSTALL_TARGET = YES
 # SAWMAN_CONF_ENV = LDFLAGS="-L$(STAGING_DIR)/usr/lib -Wl,--rpath-link -Wl,$(STAGING_DIR)/usr/lib"
-ifeq ($(BR2_ENABLE_DEBUG),y)
-SAWMAN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-else
-SAWMAN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install-strip
-endif
 SAWMAN_DEPENDENCIES = directfb
 
 $(eval $(call AUTOTARGETS,package,sawman))
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/3 package: drop special case for target-install with BR2_ENABLE_DEBUG

Hello,

Quoted 1 line · On Sat, 18 Sep 2010 14:16:45 +0200 llandwerlin at gmail.com wrote:

install-exec isn't used anymore

This is going to conflict with another patch I'm doing, which removes the use of install-strip when BR2_ENABLE_DEBUG is set.

I'll try to merge them.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#3 lore raw

PATCH 2/3 zlib: Fix build

In reply to llandwerlin at gmail.com

From: Lionel Landwerlin <[email protected]>

Using "make -j $(N)" with N > 1 break zlib build.

---
 package/zlib/zlib.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
package/zlib/zlib.mk +2 -2
index ad5eda7..751cfc1 100644
@@ -42,11 +42,11 @@ define HOST_ZLIB_CONFIGURE_CMDS
 endef
 
 define ZLIB_BUILD_CMDS
-	$(MAKE) -C $(@D) all libz.a
+	$(MAKE1) -C $(@D) all libz.a
 endef
 
 define HOST_ZLIB_BUILD_CMDS
-	$(MAKE) -C $(@D) all libz.a
+	$(MAKE1) -C $(@D) all libz.a
 endef
 
 define ZLIB_INSTALL_STAGING_CMDS
Signature · 1 line
1.7.1
#4 lore raw

PATCH 2/3 zlib: Fix build

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"llandwerlin" == llandwerlin <[email protected]> writes:

llandwerlin> From: Lionel Landwerlin <[email protected]> llandwerlin> Using "make -j $(N)" with N > 1 break zlib build.

In what way exactly? Zlib is a pretty common package and I've never seen if breaking because of parallel builds.

In fact, testing on a big (24 core) machine I don't see it either:

tar jxf ~/zlib-1.2.5.tar.bz2
mv zlib-1.2.5{,-parallel}
tar jxf ~/zlib-1.2.5.tar.bz2
cd zlib-1.2.5-parallel ; ./configure --prefix=/usr --shared; \
make -j 100 all libz.a; cd ..
cd zlib-1.2.5 ; ./configure --prefix=/usr --shared; \
make all libz.a; cd ..

Gives the same result:

ls -la zlib-1.2.5*/libz.{a,so.1.2.5}
-rw-r--r-- 1 peko peko 133746 2010-09-18 22:00 zlib-1.2.5/libz.a -rwxr-xr-x 1 peko peko 109995 2010-09-18 22:00 zlib-1.2.5/libz.so.1.2.5 -rw-r--r-- 1 peko peko 133746 2010-09-18 22:00 zlib-1.2.5-parallel/libz.a -rwxr-xr-x 1 peko peko 109995 2010-09-18 22:00 zlib-1.2.5-parallel/libz.so.1.2.5

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 2/3 zlib: Fix build

Peter,
I can confirm that it was reliably breaking for me with parallel
builds. The error message would say that it couldn't find libz.a, I think during linking. I would restart the build process, and it would finish just fine after that. I wish I had known about the MAKE1 option. I guess I should have rtfm a little better.

Martin

Quoted 27 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"llandwerlin" == llandwerlin <[email protected]> writes:

llandwerlin> From: Lionel Landwerlin <[email protected]> llandwerlin> Using "make -j $(N)" with N > 1 break zlib build.

In what way exactly? Zlib is a pretty common package and I've never seen if breaking because of parallel builds.

In fact, testing on a big (24 core) machine I don't see it either:

tar jxf ~/zlib-1.2.5.tar.bz2
mv zlib-1.2.5{,-parallel}
tar jxf ~/zlib-1.2.5.tar.bz2
cd zlib-1.2.5-parallel ; ./configure --prefix=/usr --shared; \
make -j 100 all libz.a; cd ..
cd zlib-1.2.5 ; ./configure --prefix=/usr --shared; \
make all libz.a; cd ..

Gives the same result:

ls -la zlib-1.2.5*/libz.{a,so.1.2.5}

(quoted diff) +0 -4
-rw-r--r-- 1 peko peko 133746 2010-09-18 22:00 zlib-1.2.5/libz.a
-rwxr-xr-x 1 peko peko 109995 2010-09-18 22:00 zlib-1.2.5/libz.so.1.2.5
-rw-r--r-- 1 peko peko 133746 2010-09-18 22:00 zlib-1.2.5-parallel/libz.a
-rwxr-xr-x 1 peko peko 109995 2010-09-18 22:00

zlib-1.2.5-parallel/libz.so.1.2.5

Quoted 7 lines

--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100918/9f19a173/attachment.html>

#6 lore raw

PATCH 2/3 zlib: Fix build

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Banky <[email protected]> writes:

Martin> Peter,

Martin> ???? I can confirm that it was reliably breaking for me with Martin> parallel builds. The error message would say that it couldn't Martin> find libz.a, I think during linking. I would restart the build Martin> process, and it would finish just fine after that. I wish I had Martin> known about the MAKE1 option. I guess I should have rtfm a Martin> little better.

Hmm, interesting. I still haven't seen it here, but OK.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 2/3 zlib: Fix build

In reply to Martin Banky

Hi Martin,

Thanks for reporting that problem, I'm having exactly the same error. Make tries to build libz.a but he didn't finish to compile all the depending objects.
After relaunching buildroot, he is able to complete the build.

--
Lionel Landwerlin

Le samedi 18 septembre 2010 ? 13:48 -0700, Martin Banky a ?crit :

Quoted 58 lines

Peter,
I can confirm that it was reliably breaking for me with parallel
builds. The error message would say that it couldn't find libz.a, I think during linking. I would restart the build process, and it would finish just fine after that. I wish I had known about the MAKE1 option. I guess I should have rtfm a little better.

Martin

On Sat, Sep 18, 2010 at 1:13 PM, Peter Korsgaard <[email protected]> wrote:

        >>>>> "llandwerlin" == llandwerlin  <[email protected]>
        writes:
        
         llandwerlin> From: Lionel Landwerlin <[email protected]>
         llandwerlin> Using "make -j $(N)" with N > 1 break zlib
        build.
        
        In what way exactly? Zlib is a pretty common package and I've
        never
        seen if breaking because of parallel builds.
        
        In fact, testing on a big (24 core) machine I don't see it
        either:
        
        tar jxf ~/zlib-1.2.5.tar.bz2
        mv zlib-1.2.5{,-parallel}
        tar jxf ~/zlib-1.2.5.tar.bz2
        cd zlib-1.2.5-parallel ; ./configure --prefix=/usr --shared; \
          make -j 100 all libz.a; cd ..
        cd zlib-1.2.5 ; ./configure --prefix=/usr --shared; \
          make all libz.a; cd ..
        
        Gives the same result:
        
        ls -la zlib-1.2.5*/libz.{a,so.1.2.5}
        -rw-r--r-- 1 peko peko 133746 2010-09-18 22:00
        zlib-1.2.5/libz.a
        -rwxr-xr-x 1 peko peko 109995 2010-09-18 22:00
        zlib-1.2.5/libz.so.1.2.5
        -rw-r--r-- 1 peko peko 133746 2010-09-18 22:00
        zlib-1.2.5-parallel/libz.a
        -rwxr-xr-x 1 peko peko 109995 2010-09-18 22:00
        zlib-1.2.5-parallel/libz.so.1.2.5
        
        --
        Bye, Peter Korsgaard
        
        _______________________________________________
        buildroot mailing list
        buildroot at busybox.net
        http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#9 lore raw

PATCH 3/3 autotools: fix MESSAGE calls

In reply to llandwerlin at gmail.com

From: Lionel Landwerlin <[email protected]>

---
 package/Makefile.autotools.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
package/Makefile.autotools.in +2 -2
index 1ccf44c..bc813e3 100644
@@ -142,7 +142,7 @@ $(2)_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
 # Hook to patch libtool to make it work properly for cross-compilation
 #
 define LIBTOOL_PATCH_HOOK
-	@$(call MESSAGE,"Patching libtool")
+	@$$(call MESSAGE,"Patching libtool")
 	$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES" -a \
 	"$$($$(PKG)_AUTORECONF)" != "YES"; then \
 	for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
@@ -160,7 +160,7 @@ endif
 # Hook to autoreconf the package if needed
 #
 define AUTORECONF_HOOK
-	@$(call MESSAGE,"Autoreconfiguring")
+	@$$(call MESSAGE,"Autoreconfiguring")
 	$(Q)cd $$($$(PKG)_SRCDIR) && $(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
 	$(Q)if test "$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
 		for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
Signature · 1 line
1.7.1