Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp799697img; Fri, 22 Mar 2019 08:49:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6Rq+A+nqAnlP+ZVpBV2IAP+xfuNWxJe8wuW/P3qqIhv4+ZWC541Q+bq/2vXIcEiPpxgSZ X-Received: by 2002:a17:902:e612:: with SMTP id cm18mr10001526plb.147.1553269773845; Fri, 22 Mar 2019 08:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553269773; cv=none; d=google.com; s=arc-20160816; b=r9+AOUeLNFbyuGCz6gxo0QhMp0+XGkyIj5lioYkwO3GfQXKe5rwnWWE3f0fQZDI9a0 lhKYGpIIg1K9uQxypoE5Z1CPymW/kazM/TSvBRCgBXo4pgMZAHuJdytufZ+XD9jx8I7K WQs9aKOzlFH7Elvo5f3Vh8wF28Ddn8kUq7cBSDLATaJY9J3TW95jlzXepVsUxgyVpUGF nON1ZPBOSjnuT6qcCpc6L44GFGNp5Ahi2CjEg7lxrEaBP3b0WMkLpWZz+pUuXozo6q28 tRlF7zS5QHmdL83psEOK14Ju8Q6NxObQMLtKaxyCbZWg6TPgnYsrSLCcil6/h/UM6JG6 mh7g== 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 bg5si7187443plb.235.2019.03.22.08.49.16; Fri, 22 Mar 2019 08:49:33 -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 S1728391AbfCVPsB (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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(-) 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 -- 2.20.0