From patchwork Thu Mar 15 18:06:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander 'lynxis' Couzens X-Patchwork-Id: 886382 X-Patchwork-Delegate: lynxis@fe80.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=fe80.eu Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FxkmFPyA"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402Glk2FVCz9sVb for ; Fri, 16 Mar 2018 05:07:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CXDpOQNlZUQkxNQNEN2a2ZV+Che0o0fBv0XGDlZhWLw=; b=FxkmFPyAE7Apqh H6/0a1Nzq/lWce6ymQfRJ67eL0R+UKm5qQ67AGKuKiOoQP04koz0sngNebA3HaAMod5k1RIqajt2y Z4XAMfclVAtZIsldsn9jY1u6MnSE79vINJfE2fv6gxBNyZ9EPuyzLHsIPKXVdvPQqtVzVlvDdbqQC wr7yMredBd7Dhyd6CHqVm5YsZHE/CS8y7X62Dx5XGdM+EhoJ12TayKTRLUnj4oCV5ShBxC3QejLIP IuZwP0GVTeR7YwlTD5rhpaLWDdyidKL9wkwJ0ylCwNiYnC6QEt1WuoyBfZoj/Md/wxx3j1IDoZNhC JgYGGg8YkW95hMIdrDHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewXHi-0005MR-A5; Thu, 15 Mar 2018 18:07:26 +0000 Received: from mail.base45.de ([2001:67c:2050:320::77]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewXHc-0005KQ-Rf for lede-dev@lists.infradead.org; Thu, 15 Mar 2018 18:07:24 +0000 Received: from [195.77.194.218] (helo=localhost.localdomain) by mail.base45.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ewXHO-0006nc-8K; Thu, 15 Mar 2018 18:07:06 +0000 From: Alexander Couzens To: lede-dev@lists.infradead.org Date: Thu, 15 Mar 2018 19:06:59 +0100 Message-Id: <20180315180659.1952-1-lynxis@fe80.eu> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180315_110721_162599_790AFCE3 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record Subject: [LEDE-DEV] [PATCH] base-files: change /var link from /tmp to tmp X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Couzens MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Some packages are already using $(1)/var on package install. On multiuser systems this breaks the build when multiple users build OpenWrt. Signed-off-by: Alexander Couzens --- package/base-files/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index f4505d6843c4..37f0e1e2fd48 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -171,7 +171,7 @@ define Package/base-files/install mkdir -p $(1)/root $(LN) /proc/mounts $(1)/etc/mtab rm -f $(1)/var - $(LN) /tmp $(1)/var + $(LN) tmp $(1)/var mkdir -p $(1)/etc $(LN) /tmp/resolv.conf /tmp/TZ /tmp/localtime $(1)/etc/