Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1049548imm; Wed, 22 Aug 2018 18:08:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz8n5X5liVScaBbT+oFRLQhHCcLEmxS9pI5M2fIB7bktT3dlx/wUKKGVhYuHwO2aswz1MsP X-Received: by 2002:a62:1756:: with SMTP id 83-v6mr61019930pfx.217.1534986536863; Wed, 22 Aug 2018 18:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534986536; cv=none; d=google.com; s=arc-20160816; b=o9DKybthdMFTpkEId78VEuBctcq/t3qcBiM5pOqA+Skz7X1Eiu43DEyif5+Q7Jf/eq K+ErFOKKGo21lPKCzl4Q1+0tlxne82poYdvwoywHhnYYcwLSkYxbAKE3AoLWESUxDgo2 li4IvXxy7wF4RIkk3gk7lD3/gfReYd7rP1uHARE5kzmuX/tu4aEmi99RoFtcWwz+g68W cn/eZeaM1s6nMsJViIOByNJDwIOAZLIPv+EhsomouwCvIEnS88KuJM84kRARkgwygQD2 rpgkbxcYty2qH1X0nYkBtdD5nClk7QAPOMdgDbLvQEUgThrHOTz/TG8YmidoQ/T52Nnl sShw== 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=8gNn1X4sw8n1r8TVz1AHrAqpTTgb+HAQStUde/1/8S8=; b=mxDIUAaUEP4BCKRrbUcAotHQki95X8HB/YmAsLO8D7ql1uAZNS7dOaEDBWKx50MPnh Ie6EZdtn4ou6YTJII0qmQuG8dCnUPeHnB5zpgz7ahFlEVl3+j7X1mEFmUpPB5EzKKcrh vBG6vJxmA+9FlXcCEJuGfGg1M760W8K6n1DhISM+/xGiQadFs1PZfJAXempChDV/NrJG bRVZDVtSr3HAlgYc5+NlyQ1dRf+wKkAgyASF65YWLTwSzUXaHu/hpRRB8AfpZ7klhku0 oKS5TZjiYEQtvkxikEwDz68MaFc4vc/MW+gaNNlyplDob6AHmje6Flotv1x5phg3b2nv KRsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Q0FjRDaG; 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 j6-v6si2981432pgb.496.2018.08.22.18.08.41; Wed, 22 Aug 2018 18:08:56 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Q0FjRDaG; 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 S1726282AbeHWEep (ORCPT + 99 others); Thu, 23 Aug 2018 00:34:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46440 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbeHWEep (ORCPT ); Thu, 23 Aug 2018 00:34:45 -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=8gNn1X4sw8n1r8TVz1AHrAqpTTgb+HAQStUde/1/8S8=; b=Q0FjRDaGfLpbq65YipgvmmHqP op9H6UBPybLLpCBwt4Mon37ipSqT3s+dWe8W310nZlhPaSgxCTDGCd4X5+JW1eGTWqnD5jrLj1u2Z 8JuOA99bC1BRcUPB1fe1PY+4YlbQdqhWhe2788ouvCyUPbJ8j6mGboDvfVfG9Y4tYstiKA3i2BDaf EAL69yXlI8IxtDVPjWDU8CWeDxKQSMzuq210GAc5WvDtEWwzhuGua4oGt9SQs+L5uCavbkXozD5S6 sKK2ABqxJIJCvEpYBD7IiOte923RyHcxFfElLA9pewjU9oUPyLSda4Wcg0SGZepTaDb9Tft0J45vK 5DoAePqWw==; 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 1fse63-0004Oe-0o; Thu, 23 Aug 2018 01:07:35 +0000 Subject: Re: please revert commit ce8556cca6 "kbuild: verify that $DEPMOD is installed" introduced in v4.18.4. To: Dmitry Torokhov Cc: "Dr. H. Nikolaus Schaller" , lucas.demarchi@profusion.mobi, lucas.de.marchi@gmail.com, michal.lkml@markovi.net, jeyu@kernel.org, cwhuang@linux.org.tw, "3.8+" , lkml , Discussions about the Letux Kernel , Masahiro Yamada , Linux Kbuild mailing list References: <490A46D5-834E-46A9-9106-A31F94344F99@goldelico.com> From: Randy Dunlap Message-ID: <7e154505-5f73-1054-e67e-cdfb249fec43@infradead.org> Date: Wed, 22 Aug 2018 18:07:34 -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: 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 05:39 PM, Dmitry Torokhov wrote: > On Wed, Aug 22, 2018 at 4:35 PM Randy Dunlap wrote: >> >> 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? > > Why would one want a warning on a host that never runs "make modules_install"? > Can this check be only done when we actually try to install modules? So Nikolaus: how do you provoke this problem that you are reporting? It's not just a theoretical problem, is it? The way that I read the top-level Makefile, this check for $DEPMOD only happens when you run "make modules_install". -- ~Randy