From patchwork Tue Aug 28 01:23:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danomi Manchego X-Patchwork-Id: 962691 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41zrp2490tz9s4c for ; Tue, 28 Aug 2018 11:31:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A2F64862DB; Tue, 28 Aug 2018 01:31:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1PLUD71vZrMj; Tue, 28 Aug 2018 01:31:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id F38B3862C0; Tue, 28 Aug 2018 01:31:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 32B901BFC4A for ; Tue, 28 Aug 2018 01:31:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2FC84862C0 for ; Tue, 28 Aug 2018 01:31:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hqhQAGoat8CZ for ; Tue, 28 Aug 2018 01:31:43 +0000 (UTC) X-Greylist: delayed 00:08:08 by SQLgrey-1.7.6 Received: from resqmta-ch2-02v.sys.comcast.net (resqmta-ch2-02v.sys.comcast.net [69.252.207.34]) by whitealder.osuosl.org (Postfix) with ESMTPS id A8156862B4 for ; Tue, 28 Aug 2018 01:31:43 +0000 (UTC) Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-02v.sys.comcast.net with ESMTP id uSYBfMgdxcIE1uSjGfyMHP; Tue, 28 Aug 2018 01:23:34 +0000 Received: from dmocelo-Aspire-E5-575G.hsd1.nj.comcast.net ([IPv6:2601:87:c480:4d8f::e433]) by resomta-ch2-12v.sys.comcast.net with ESMTPSA id uSjAfrJOQwIsIuSjFf7ZS8; Tue, 28 Aug 2018 01:23:34 +0000 From: Danomi Manchego To: buildroot@buildroot.org Date: Mon, 27 Aug 2018 21:23:26 -0400 Message-Id: <1535419406-2407-1-git-send-email-danomimanchego123@gmail.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfBpih/lUpS2doOvT0r0wUbaUc5PSjvb5LsFqh1ZxdTOO+wwkB9uC3uzmQsWU0tB35DJXUQvjhvuBlvI4aHQ+5WHgpNT4wd4NVpaaFiS92SS2atr4v6A/ U9d4YWMAuQQAZWCLSgrf0ei97ew/SLq7mrMe8SmghtGSvnKmfvJ/fkr3uPLVDYXJtvlgJuuzmFfySSK8N4Mcr3/+W5qvI7NcrvV6xEMHQ3Ij8iGdrjVTBcRR xuY80KRm3pr570QDJ58hMZ/J230tmzM2/MceKX7Z/W9pHnAAHa6AQbtNjpDLsgGv Subject: [Buildroot] [PATCH 1/1] ccache: fix initial setup failure X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The BR2_CCACHE_INITIAL_SETUP can fail if CCACHE_DISABLE is defined in the environment, because ccache refuses to create a ccache.conf file when caching is disabled. To avoid this failure, we unset CCACHE_DISABLE prior to doing any initial cache setup, just on the call setting up the initial config. The rest of the build can proceed with CCACHE_DISABLE set, if the user wishes it so. Signed-off-by: Danomi Manchego --- package/ccache/ccache.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk index 9a11d46..6c83a1c 100644 --- a/package/ccache/ccache.mk +++ b/package/ccache/ccache.mk @@ -55,7 +55,7 @@ BR_CCACHE_INITIAL_SETUP = $(call qstrip,$(BR2_CCACHE_INITIAL_SETUP)) ifneq ($(BR_CCACHE_INITIAL_SETUP),) define HOST_CCACHE_DO_INITIAL_SETUP @$(call MESSAGE,"Applying initial settings") - $(CCACHE) $(BR_CCACHE_INITIAL_SETUP) + unset CCACHE_DISABLE; $(CCACHE) $(BR_CCACHE_INITIAL_SETUP) $(CCACHE) -s endef