From patchwork Fri Mar 22 15:44:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 160931 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp962202jan; Fri, 22 Mar 2019 08:48:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzV80IzFNDzeasdy1eXw8opPeLmKc92IeCNVFDqHzIxwx+w9yOgqDRwkQP4cWESrBTze2+M X-Received: by 2002:a62:174c:: with SMTP id 73mr9891377pfx.33.1553269683532; Fri, 22 Mar 2019 08:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553269683; cv=none; d=google.com; s=arc-20160816; b=dwvs9MJsPVD+kvBqGxPHbAdygWGfDuuEdi9C2smpShEUF9eSZrUs/mA2oavJOqOARa +SfdHBjZeqwu/i+1+UFClPhV7LgEVmwKj90bKk+7Nu7Rfh72J6Ica2oayP7L0S7G9GbV 38HkxBr17r+mxT3y15VgukZ5tPvLWNwF/+ZhfwYdyCCCvy46xixXzbSwEpkVRIgbtbPb dsq7f6sDyVW/BPBK0voqEva+YUEeN8tRm9CjyFtk6Fyi9jStTgemnsTN7P2AHykFtCTI blSQQ9STkyTqqAGS6+MAn7mJIKQDZV5o40tcmR7EgPl/tYDAk5SHvijOadQBS1dhIJG5 egcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tYXm6LX6zlH71PAMzcAiE9zfLwlHWbLblOJKcPJ6qUo=; b=YFY9h1HqVP8XrQJBiBChJLhmIQTcy0SrrAcFxp02EmB0utzg0+mpPlslAfzInnyyoq sHATN4BmtwDaBp8x/0+j0vSzYnHlVdDk+fNp1OmYXlNLGxPOdFKtt+0Me0/xZrWJKjD1 U0MGA2+scV/WDTYgmGC+vbiGvcldXDyhleOifF/Pb6ZVnuDCsT//X9l/2qCEAj0PNKBN oGmxA/VvZy97zQxegy0GahGY8uJRCuIafXuOQTlIp5Cv4lS9tJCOQfR7c8SGpB6kQVzH yIX/OM6vc8Wh1SC0+0ZM/rj+9ugWT9Uy1ZvQhk4hMMMwsWW5J20KrRFVDAnKJ8pJEAR2 KAuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si7216580plq.145.2019.03.22.08.48.02; Fri, 22 Mar 2019 08:48:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728437AbfCVPsB (ORCPT + 31 others); Fri, 22 Mar 2019 11:48:01 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:35457 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbfCVPsA (ORCPT ); Fri, 22 Mar 2019 11:48:00 -0400 Received: from wuerfel.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MEV7U-1hEZGU3J8M-00FzwG; Fri, 22 Mar 2019 16:47:28 +0100 From: Arnd Bergmann To: stable@vger.kernel.org, Masahiro Yamada , Brian Norris , Guenter Roeck , Genki Sky Cc: Wolfram Sang , Michal Marek , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [BACKPORT 4.4.y 14/25] kbuild: setlocalversion: print error to STDERR Date: Fri, 22 Mar 2019 16:44:05 +0100 Message-Id: <20190322154425.3852517-15-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190322154425.3852517-1-arnd@arndb.de> References: <20190322154425.3852517-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:8f/kvwj3Nxe00/rXmyCTb8V8PTLXRNRu2GUKDuTqRIqv4f1GfwR STVR7OwyYEBXKqtR5c0e5pVQhX4RLdkBaJouCnkFandHBpug8rhuvQH1Rmms7QbiWHAKX0o 8box7D/Jl1D9QVrAYQf54jKJXvZD2v5PYjzxjTkS5b7NS3+r6LNFrRcA96ja1jegD+QKOri 5lBoPoz930duwUOYETXhg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:8tvzb9R3BCI=:/kOyQLYDkp5XX6T5OIkDiN Nvay+FMZ0WMK1GHoYZajpvrKZGY0hSy+MC0bHsSdJHgErEAe+bT8AoMoiL68HxRsWV8Z5EHru VB4B/yW0VxPtdHKhAXPCGg1rH9ta7faZqDV0mqN08t6d1buzXz6/QYFnHrPkItGTVBhN6rqKL EGTloAgJeZLAHqAdLAcoWIgEiXB3Uxb7yok3UtfyfODPGb8BAMvmTuubaZjUPZ9/r46lhEuZ3 pyGcWO2fUk2MBH1dbmHKNAxecFTLTVJBYPZXbdhnYLuEIdkqenwnr1JtVC6tCDmJJBYU3qFM2 EyrUb+56tLaPCUm1LgcsFemAhnVDeedlZ/786rS6oWnBn6riV2zInjrAvokmRWPTt1NjsFRy/ iw2TNLy+H/CHc3NWdCbfchno4W8kYtk7/z6QK50C0t6bEiu353PO5FyMMQd9XgjgQgnyEJfkK XSDMR/kvhfo5U0kvDYHVRtuG9PbAKzCOXo99Qfv9qbX9AkmQ3wWZeCm6Pba3kO3MUM+WLeROf o2vTXtr9jMMfsuq73mR8rT2zJTLsHcFtbYvUjVBE+/sI4dpH/FlRH3VtTX4hDQbNnyt+SRseV a0BPo2h4B8sPZayPWU0wLRoq/f+MB9LL1XXbWfqZQAIV3UZmi3G9Zxe8N7xSiFUoW5VUBV6Ix bsNTOrv4CS41ErlMqMGHmdpbvWPX0gc6/t6+fvqQhqR9DZ4Zs4xhVsNR1DcwUebUCY/+7x3Ma OFXOabFu9mA2CgkiJhRyphOy2KgKJDsa+AdDMQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wolfram Sang I tried to use 'make O=...' from an unclean source tree. This triggered the error path of setlocalversion. But by printing to STDOUT, it created a broken localversion which then caused another (unrelated) error: "4.7.0-rc2Error: kernelrelease not valid - run make prepare to update it" exceeds 64 characters After printing to STDERR, the true build error gets displayed later: /home/wsa/Kernel/linux is not clean, please run 'make mrproper' in the '/home/wsa/Kernel/linux' directory. Signed-off-by: Wolfram Sang Signed-off-by: Michal Marek (cherry picked from commit 78283edf2c01c38eb840a3de5ffd18fe2992ab64) Signed-off-by: Arnd Bergmann --- scripts/setlocalversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 63d91e22ed7c..966dd3924ea9 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -143,7 +143,7 @@ fi if test -e include/config/auto.conf; then . include/config/auto.conf else - echo "Error: kernelrelease not valid - run 'make prepare' to update it" + echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2 exit 1 fi