Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp983529imm; Wed, 22 Aug 2018 16:35:31 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyt+0ebSXscJVEMQiUoLkhvwRIZtgL2KRLIx9cHWugFLcgwowTiVEMb2jutnGQf9gZDJhTy X-Received: by 2002:a17:902:5501:: with SMTP id f1-v6mr55633317pli.219.1534980931244; Wed, 22 Aug 2018 16:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534980931; cv=none; d=google.com; s=arc-20160816; b=boa85CwDjZ+2zid2sJQrsJUEvDMzSo66uSVZDUyO1FjW6tKnZ+PGV33YJ/MGG/iexY YF9q36DJaboVIbDl2tA1VFNgEMgUxzeJixwHQ9F3rmIfMyoMq7j6USfl3EmKOmLQOBOm K58XcPEvogF81TvVwym9OvkRPqjdAXKgLjhisd3VBb5AW5Fe0CC+dEOu/fV6bot+6e90 s2zqmo0fhMKp2xpw+culgUi10oVy8IR466LR9Z3GLxXtZQlFKOUj75YJ/a5diXLPzKBX V7N67hoKxbuChDDF6ACF/65dnok6on1RP5lvtvc5+3LfGgqMgUfwC9Bf1VlLE92J0RY0 05rA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=5Sh16na29vLd/VhmUAmpg3wFmGhq17nQoA/Iqf7vMaU=; b=Zt1oyA3dSh+FKBTyyI0vQPukDefQI7WucvGjjZ0iBSQ5Xq80ag8kJFwNjnNO9j1XWX kWRE5S0wGOjiYxLzwrdVfpf02jDqdQLYsgro2BsJ/TsOPknkKUxAn4RrQf1Y2n/+ztcY +iveIw7hiTRDFb8Bds5aA855wSOFHb5CFCC9Dq4gCqHEgzy+PddLOUiJ0Aebk09yvPH0 Kes0b41O7wc2xlkBY4erRLmvgOYmbdw0wixj+RkANEjx+yMN8i4hJdnuOizEEPfShaTB GU6QcQ5T9z4vydzKLXtQqdejNNifndese7GLn5ajYggUl6077/KQf6Sf2ZFZVj0D9exa y84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=eLhkV6tA; 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 i8-v6si3016665pfo.128.2018.08.22.16.35.15; Wed, 22 Aug 2018 16:35:31 -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; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=eLhkV6tA; 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 S1727379AbeHWDA3 (ORCPT + 99 others); Wed, 22 Aug 2018 23:00:29 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39960 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbeHWDA3 (ORCPT ); Wed, 22 Aug 2018 23:00:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=54RKpTM/o2H3Dw0PmdZEWwFlQyynkdHa9plc9Y07t9s=; b=eLhkV6tAbSMg1qCeYNvBIU+0O tMmtXGFgMNKWWO86TLMzb3/bUSx2P7WDqWbYqrHHt3GVA7Svpm3itr23KvidnOL0N3SvGLV1X8xFK R3uk8YfaePhgQQAvN+fq/Fku4DjFvtLX3R6C4hRslRpsqpyttYEvb7J01ZkBVPiKnRBEybm+qT0Bd KSXQXp6HOMWufkpZGlpJgLfmapU41hIi12dvktRNXrX8ShrZIUKurrF1gM9c1j038aHP1Z0+Un49I V8oyA0jNOh4vixZBRgQJ+pRR5854Mk6/rhoNi7fi6GIJmv3ci0QuEZQNoY/RAy/R5yLOIYkvOIDvb PSyZAdQCA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fscd2-0000eG-O6; Wed, 22 Aug 2018 23:33:33 +0000 Subject: Re: please revert commit ce8556cca6 "kbuild: verify that $DEPMOD is installed" introduced in v4.18.4. To: "H. Nikolaus Schaller" Cc: Lucas De Marchi , Lucas De Marchi , Michal Marek , Jessica Yu , Chih-Wei Huang , stable , Linux Kernel Mailing List , Discussions about the Letux Kernel , Masahiro Yamada , linux-kbuild References: <490A46D5-834E-46A9-9106-A31F94344F99@goldelico.com> From: Randy Dunlap Message-ID: Date: Wed, 22 Aug 2018 16:33:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <490A46D5-834E-46A9-9106-A31F94344F99@goldelico.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/22/2018 11:53 AM, H. Nikolaus Schaller wrote: > This patch requires that /sbin/depmod is installed and installable on > the build host. > > But not all build hosts for cross compiling Linux are Linux systems > and are able to provide a working port of depmod, especially at the > file patch /sbin/depmod. > > I use, for example, a Darwin system to cross compile Linux and I run > depmod -a on the embedded system once, after installing a new Linux > kernel there. > > I have no problem with seeing a warning, but aborting the build process > is IMHO a bad idea since the previous behaviour didn't harm many people > as far as I see. Probably 99% of people compiling Linux kernels do that > on Linux and 99% of those have depmod installed for optimal operation of > their build host. So IMHO printing the warning is good enough. Thanks for the report and sorry about the problem. I'm OK with changing the error to a warning. Does the patch below work for you? thanks. --- From: Randy Dunlap When $DEPMOD is not found, only print a warning instead of exiting with an error message and error status. E.g.: Warning: 'make modules_install' requires /sbin/depmod. Please install it. This is probably in the kmod package. ../scripts/depmod.sh: line 44: /sbin/depmod: No such file or directory make[1]: *** [/home/rdunlap/lnx/lnx-418/Makefile:1244: _modinst_post] Error 127 make: *** [Makefile:146: sub-make] Error 2 Signed-off-by: Randy Dunlap Reported-by: H. Nikolaus Schaller --- scripts/depmod.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- lnx-418.orig/scripts/depmod.sh +++ lnx-418/scripts/depmod.sh @@ -15,9 +15,8 @@ if ! test -r System.map ; then fi if [ -z $(command -v $DEPMOD) ]; then - echo "'make modules_install' requires $DEPMOD. Please install it." >&2 + echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2 echo "This is probably in the kmod package." >&2 - exit 1 fi # older versions of depmod require the version string to start with three