]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package: avoid copying .m4 files from host to staging
authorLionel Landwerlin <llandwerlin@gmail.com>
Sun, 26 Dec 2010 16:16:35 +0000 (17:16 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Dec 2010 19:33:20 +0000 (20:33 +0100)
Since we are preparing a package generation mechanism, we would like
to avoid packages that move/touch/modify files which are not part
of their own package. That's why we try to not install host files into
the staging directory (in this case .m4 files) and instead we include
$(HOST_DIR)/usr/share/aclocal into autoreconf search directory.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/autoconf/autoconf.mk
package/automake/automake.mk
package/libtool/libtool.mk
package/pkg-config/pkg-config.mk

index a21192f22b04cdfa545437cd85b5780e470d6173..0ff0644f9462a1d225de8c0cfaac65ffe4b61b11 100644 (file)
@@ -23,4 +23,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)" AUTOCONF="$(AUTOCONF)" AUTOHEADER="$(AUTOHEADER)" AUTOMAKE="$(AUTOMAKE)" $(HOST_DIR)/usr/bin/autoreconf -f -i -I "$(ACLOCAL_DIR)"
+AUTORECONF=$(HOST_CONFIGURE_OPTS) ACLOCAL="$(ACLOCAL)" AUTOCONF="$(AUTOCONF)" AUTOHEADER="$(AUTOHEADER)" AUTOMAKE="$(AUTOMAKE)" $(HOST_DIR)/usr/bin/autoreconf -f -i -I "$(ACLOCAL_DIR)" -I "$(ACLOCAL_HOST_DIR)"
index e2ff9b25b18dd95a19073c145cdeeb79e8cdf91c..6ee3121f30598c9985a3cdad170a6b7666726d87 100644 (file)
@@ -23,4 +23,5 @@ $(eval $(call AUTOTARGETS,package,automake,host))
 # variables used by other packages
 AUTOMAKE = $(HOST_DIR)/usr/bin/automake
 ACLOCAL_DIR = $(STAGING_DIR)/usr/share/aclocal
+ACLOCAL_HOST_DIR = $(HOST_DIR)/usr/share/aclocal
 ACLOCAL = $(HOST_DIR)/usr/bin/aclocal -I $(ACLOCAL_DIR)
index 60fee9fd29ed56f8293f3b8725ff6f63076a9cc9..3306244059ff4b7586d7da1669abd94ec21d2f40 100644 (file)
@@ -7,15 +7,6 @@ LIBTOOL_VERSION = 2.2.10
 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.gz
 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
 
-define HOST_LIBTOOL_CUSTOM_INSTALL
-       install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/libtool.m4 \
-               $(STAGING_DIR)/usr/share/aclocal/libtool.m4
-       install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/ltdl.m4 \
-               $(STAGING_DIR)/usr/share/aclocal/ltdl.m4
-endef
-
-HOST_LIBTOOL_POST_INSTALL_HOOKS += HOST_LIBTOOL_CUSTOM_INSTALL
-
 HOST_LIBTOOL_LIBTOOL_PATCH = NO
 
 $(eval $(call AUTOTARGETS,package,libtool))
index 330b166039ee90ad794e378f32478cda80c2b6a5..d0bc424789789ed0456cb8707875709ed1d4c42c 100644 (file)
@@ -15,13 +15,6 @@ HOST_PKG_CONFIG_CONF_OPT = \
                --with-pc-path="$(STAGING_DIR)/usr/lib/pkgconfig" \
                --disable-static
 
-define HOST_PKG_CONFIG_INSTALL_M4
-install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/pkg.m4 \
-               $(STAGING_DIR)/usr/share/aclocal/pkg.m4
-endef
-
-HOST_PKG_CONFIG_POST_INSTALL_HOOKS += HOST_PKG_CONFIG_INSTALL_M4
-
 $(eval $(call AUTOTARGETS,package,pkg-config))
 $(eval $(call AUTOTARGETS,package,pkg-config,host))