Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1309177imm; Thu, 23 Aug 2018 00:26:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyzloLA3Gc1j3cV5fpUeQsGizcrymiUGgIeLPP0dbqAfbFYbQLdwJ+YVXAQHrhtldOcr0Rk X-Received: by 2002:a17:902:3a2:: with SMTP id d31-v6mr57596241pld.287.1535009181695; Thu, 23 Aug 2018 00:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535009181; cv=none; d=google.com; s=arc-20160816; b=FaS9Ik3oCTGJUDFN9T9ci/Ie5cA6g9IXJDc7VrjY6xoWT28XVkEE6bswn0OCKhlGka urR6tesvIh7m5THkfSp/vniJmWfzVIGeJeghPdGXYyPsgE7qu72846Ldq6B6OUlgDDI9 /PtqDn5qOY/laW/rhYafvOXHKxy9waeyaYDysPxl/v4bSWhtXrO7FCPQGVOlcJk78VnQ u41/NGoF5oL5SjyEuaDxlgl7yODfLmopXcg1syDfVhkCJHckNUM80Ik3vxFctOKy8+Tg NH4+6XWmPtLRZDO6ILSJPqpjY7juwKjWbApz5yKNSAQUNkzGS5eXBAa6WzB2XdCj57/G rUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=pIps5s6nDuDzBT3eBTmB8SGvveXutPglJpGrGePPLug=; b=Es4xQv8oGR9EFwv0FV1nIGWzU2WX/Nm6WjWgrcbZwhMQYjTPhF5Pm1dygAV9ifOyOE EyGUatDycHTZU7vSRhVB9i5+HviNMWFYrwJ8RfhN1D1EvEFvCe7QLNoP55D7gCbxzRzx nN6MuJDn61PJ8C7CnV//XUfmBvQzYw8MvTNzc4Wrcz0EIKMR0fC+Nj5rLNt8+bWnKvUB TFuYKIqHVO5bzcEvc9Qn2nOuSsznr3KHANA6W46PhW14mBWeXj0R2VH49WYMVG3vl3np bfbYgcnPXy33Mry5Mb0lproHQk4F3U5zu4CcQ9lVtR7+IDF/xSalPPM1ytBK5o7/uboQ HAYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uIipQPmt; 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 k10-v6si4086509pfe.41.2018.08.23.00.25.42; Thu, 23 Aug 2018 00:26:21 -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=pass header.i=@nifty.com header.s=dec2015msa header.b=uIipQPmt; 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 S1726556AbeHWKto (ORCPT + 99 others); Thu, 23 Aug 2018 06:49:44 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:20849 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbeHWKto (ORCPT ); Thu, 23 Aug 2018 06:49:44 -0400 Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w7N7LM74022658; Thu, 23 Aug 2018 16:21:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w7N7LM74022658 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1535008882; bh=pIps5s6nDuDzBT3eBTmB8SGvveXutPglJpGrGePPLug=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=uIipQPmtTfGDKWmnq2ju1TKtMnL3fBVZ6pfRjxzvXW+QJf9m91iuZAtstSJjmF1iB jKCUXVnF3sYX1Fzy09DNBKEzyiFlHUBCuAEkG/MSIxU+YlcDABO5P+N98JhpHXxGul PpxnpbD4igmI8FOXMsSMdmblWXRlWi5lgvAYTiV//tynNvoEt2AvsFO00BsG5U9HeX Kbj2tOaRWPoji/gMDisCh7GmGMWMaDqyfnlsK2DOSV1jwWO//cluJ7I+ZpK6Xa4EKW AVctJYUkVrXk9bbGBWVCxUFO0yiv5x1Zh5Huumg8ThiQsdf5YSGhpd60LPCK5Zqi3r BXjuuS5HP7XNQ== X-Nifty-SrcIP: [209.85.213.45] Received: by mail-vk0-f45.google.com with SMTP id t4-v6so2122918vke.9; Thu, 23 Aug 2018 00:21:22 -0700 (PDT) X-Gm-Message-State: AOUpUlEEbNSNANawugXtuKbcX9wkJxsDk6wcqYSMleR4rUJU8luJ17Cl rj9mttH3CfQ7ba2lY690Dy4WYiBR4/fpFz7vWjg= X-Received: by 2002:a1f:2cce:: with SMTP id s197-v6mr35679442vks.106.1535008881486; Thu, 23 Aug 2018 00:21:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:2642:0:0:0:0:0 with HTTP; Thu, 23 Aug 2018 00:20:40 -0700 (PDT) In-Reply-To: <7e154505-5f73-1054-e67e-cdfb249fec43@infradead.org> References: <490A46D5-834E-46A9-9106-A31F94344F99@goldelico.com> <7e154505-5f73-1054-e67e-cdfb249fec43@infradead.org> From: Masahiro Yamada Date: Thu, 23 Aug 2018 16:20:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: please revert commit ce8556cca6 "kbuild: verify that $DEPMOD is installed" introduced in v4.18.4. To: Randy Dunlap Cc: Dmitry Torokhov , "Dr. H. Nikolaus Schaller" , Lucas De Marchi , Lucas De Marchi , Michal Marek , Jessica Yu , Chih-Wei Huang , "3.8+" , lkml , Discussions about the Letux Kernel , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-08-23 10:07 GMT+09:00 Randy Dunlap : > 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 Unless I am misunderstanding, he wants to use "make modules_install" just for copying modules. Then, he will run depmod on the target system later. -- Best Regards Masahiro Yamada