Skip to contentSkip to conversation

tar: avoid ccache chicken and egg problem when bootstrapping tar

PATCH New Wade Berrier 2 participants 2 messages Jul 3, 2013 – Aug 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tar: avoid ccache chicken and egg problem when bootstrapping tar

---
 package/tar/tar.mk |    5 +++++
 1 file changed, 5 insertions(+)
package/tar/tar.mk +5 -0
index 3ffeaf0..56443a8 100644
@@ -20,6 +20,11 @@ $(eval $(autotools-package))
 # host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem
 # of needing tar to build tar.
 HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
+
+# ccache isn't available yet when building for the host
+HOST_TAR_CONF_ENV = \
+	CC="$(HOSTCC_NOCCACHE)"
+
 define HOST_TAR_EXTRACT_CMDS
 	mkdir -p $(@D)
 	cd $(@D) && \
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 tar: avoid ccache chicken and egg problem when bootstrapping tar

Dear Wade Berrier,

Quoted 11 lines · Wade Berrier
---
 package/tar/tar.mk |    5 +++++
 1 file changed, 5 insertions(+)
package/tar/tar.mk +0 -0
index 3ffeaf0..56443a8 100644
@@ -20,6 +20,11 @@ $(eval $(autotools-package))
 # host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem

package/tar/tar.mk $(eval $(autotools-package)) · line 30

Quoted 10 lines
package/tar/tar.mk +5 -0
 # of needing tar to build tar.
 HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
+
+# ccache isn't available yet when building for the host
+HOST_TAR_CONF_ENV = \
+	CC="$(HOSTCC_NOCCACHE)"
+
 define HOST_TAR_EXTRACT_CMDS
 	mkdir -p $(@D)
 	cd $(@D) && \

With the patch series from Thomas De Schampheleire that I have just committed, I think this patch is no longer necessary: all dependencies that are pulled by the support/dependencies/dependencies.mk code are no longer built through ccache, they are all built with HOSTCC_NOCCACHE.

Note that the patches from Thomas have been committed in the 'next' branch, they will be part in the 2013.11 release of Buildroot. They will land in the 'master' branch of Buildroot when 2013.08 is released.

Best regards,

Thomas

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