Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbdLLPJd (ORCPT ); Tue, 12 Dec 2017 10:09:33 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:33894 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbdLLPJ2 (ORCPT ); Tue, 12 Dec 2017 10:09:28 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com vBCF9OEP017832 X-Nifty-SrcIP: [209.85.217.180] X-Google-Smtp-Source: ACJfBotw6ZSxgPotc8+LRPZJrXTffqFz0VhJbt9uWCL1KlJ2fhcXDKIUXNnWja1sPV9jUI/sxknLx/cvUYtB1D7kL9A= MIME-Version: 1.0 In-Reply-To: <1512556378-13310-1-git-send-email-yamada.masahiro@socionext.com> References: <1512556378-13310-1-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Wed, 13 Dec 2017 00:08:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: pkg: make out-of-tree rpm/deb-pkg build immediately fail To: Linux Kbuild mailing list Cc: Masahiro Yamada , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1070 Lines: 30 2017-12-06 19:32 GMT+09:00 Masahiro Yamada : > We do not support out-of-tree building of rpm-pkg / deb-pkg. If O= > is given, the build should be terminated, but the "false" command is > not effective because it is not the last command in the cmd_src_tar. > Then, rpm-pkg / deb-pkg tries to continue building, and fails for a > different reason. > > Set -e option so that the "false" terminates the building immediately. > > I also put the error messages to stderr, and made it stand out more. > > For example, "make O=foo rpm-pkg" will fail as follows: > > /bin/bash ../scripts/package/mkspec >./kernel.spec > TAR kernel-4.15.0_rc2+.tar.gz > > ERROR: > Building source tarball is not possible outside the > kernel source tree. Don't set KBUILD_OUTPUT, or use the > binrpm-pkg or bindeb-pkg target instead. > > ../scripts/package/Makefile:53: recipe for target 'rpm-pkg' failed > > Signed-off-by: Masahiro Yamada Applied to linux-kbuild/misc. -- Best Regards Masahiro Yamada