Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12507358pxu; Sat, 2 Jan 2021 01:17:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvQby2DvjVoh/21foKRR5PN1mAMg8/Z1YFP6+U8GH0gMOk2VoH03mwSzL4id9Zzw28zNLs X-Received: by 2002:a50:955b:: with SMTP id v27mr61878362eda.324.1609579027826; Sat, 02 Jan 2021 01:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609579027; cv=none; d=google.com; s=arc-20160816; b=IVVaQlW5m3X8g58y3xWu8nZXBNmPJPyJ/UaDH09RcV6la0I0cTLZRosZRyVbHFSIOQ IHdXYzOBuNtOZZBuBV1a3q2d/P5CIfxJgh51TLUuHYiMhuF/1Fys7T1w75uZR89zl9IZ pcepv+KQ82Yziy/ynaYuemFGCRE72lOhLOpf0rtznxidsUTWbC0877kW4msfDvazWfkk C4vknCVBcZTDbdl0IA3ledWgaxlBaKHjWyafQtGXIJy1Zb3KaHSeYGRxy9GAsMqDiRjb 8CNVwlnl5RgrGEwdYTXHBrPDcB3L0kCO7CazUOLeSaQg4w7Gp5aDIubFNDG7omHD3A2s it/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=Keu1yyLVZG5seVdc6tJ66n5iwYE0Kazrqr+VW7YgVT0=; b=qQwvztgKze8ULU4Iy7DmUv6iA//ZXJHOFjNj0FByQl6HxXfEWypi0hpcWwQcnmhI4h km6TaljUHf97h0Wxm2jlhQ6o7Jfwt8BE1qIp3ZSV7GANHg8MceH380A2xsN+1WuZL8SU BX3TPXhgbFbg2xeFI41K7HmpxJs9JBhUMEJbI6iuKKf/ylSxB0NMQK4GWULMlg9+i2d0 ipGi69MnYG0xopTMvJJc4n+wL5tCVJPFEqyl/HmW5nV4BtTKNR62UBstbCKIvkebtkHe dncNyRDYGOLI70OZ9E53JBoB5nb8ro7MpAarvi2+xE2Ai0q5ng2N6jVoS/gcmrblNk2o 5goA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NYjL5do/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ah12si26025328ejc.483.2021.01.02.01.16.24; Sat, 02 Jan 2021 01:17:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NYjL5do/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbhABJOR (ORCPT + 99 others); Sat, 2 Jan 2021 04:14:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbhABJOP (ORCPT ); Sat, 2 Jan 2021 04:14:15 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEB66C061573; Sat, 2 Jan 2021 01:13:34 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id n4so20557207iow.12; Sat, 02 Jan 2021 01:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=Keu1yyLVZG5seVdc6tJ66n5iwYE0Kazrqr+VW7YgVT0=; b=NYjL5do/hV5uSjyahTo/m13faRmWdSav6B17OE9VpcTgmbA7WjcC0Nhwwpu924g2l9 /3GWwG09OqHvZ1+wEtBqbuGnGoX6eZxs4rg7gmFNkTgAjo45Wd9GMpqSvGS2vhi1aCdM 7v7bQEYw/yxzW9Lf3fmvqapowqa+99bk8Bw3Sa37O67WabK7FPZ/ok9FSsPjbLiPACOk qtcClQghBd4lf4ccqUn5w1T5Sek73o46iUlN1biK9LqQuD7owuGq8Q9Xt1Zn3zDzzkk4 6XZAbk3XrkguxkDKUh3rh4Ro6nAc9o/6BNE64/p/Dc92FPPjThACcvMfmdCfr4FunEqh vTgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=Keu1yyLVZG5seVdc6tJ66n5iwYE0Kazrqr+VW7YgVT0=; b=BXp31sCLR/uLnktMmtO8RJTC1GRVvWSZb2wUBapRTpuIsKO3I8QLTIgsPl1Rxg0O8A ZxLfA9z+QPsgl4iZ7IX1vOaMPlAwOemiOprSbL0Nuk8Lg/khLMSU2mqaST/GPBKKOvo2 9niFXcazfUOPd9JcGdhu9AzzCxNkVdql8M9vdBJTBmBSdJmT65a6huQKNhJgt4NBIKki einj4nFMRCREyQ8ph+KaJWrGa2ZQFUm2Y/OS2i5rvxfNm5lM3C1fgof9iDd95I480God SRcCIZ5O6q94ScoGFRl7OPhl5oKZR30Vg21aU6YCBWVgyQ63U5SMnEbKG00E9+FbdIg3 21bA== X-Gm-Message-State: AOAM533tnLkwhj5c85kQOvnroHc/NQk3quakeEfDuGCawVdD72jDgukb fs3oryalX/kMCSdtUVK9hbhg7FRlP6CHC0xbGUk= X-Received: by 2002:a02:a304:: with SMTP id q4mr54100952jai.97.1609578813746; Sat, 02 Jan 2021 01:13:33 -0800 (PST) MIME-Version: 1.0 References: <20210101161435.GA344@duo.ucw.cz> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sat, 2 Jan 2021 10:13:22 +0100 Message-ID: Subject: Re: Linux 5.11-rc1 To: Masahiro Yamada Cc: Pavel Machek , Linus Torvalds , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 2, 2021 at 8:52 AM Masahiro Yamada wrote: > > On Sat, Jan 2, 2021 at 3:55 AM Sedat Dilek wrote: > > > > On Fri, Jan 1, 2021 at 5:14 PM Pavel Machek wrote: > > > > > > Hi! > > > > > > > > > > > $ dpkg -L kmod | grep bin | grep depmod > > > > > > /sbin/depmod > > > > > > > > > > > > $ which depmod > > > > > > [ empty ] > > > > > > > > > > > > $ echo $PATH > > > > > > /opt/proxychains-ng/bin:/home/dileks/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games > > > > > > > > Ok, I think this is a broken setup that has a separate /sbin but does > > > > not have it in the PATH. > > > > > > That's how it is supposed to work, AFAICT. It is so on Debian here, > > > for example. > > > > > > /sbin is for management commands, why would I have it in PATH when > > > running as normal user? > > > > > > > I am here on Debian/testing AMD64 and waiting for feedback [2]. > > > > For now I have applied the diff from [1]. > > > > - Sedat - > > > > [1] https://marc.info/?l=linux-kbuild&m=160919738006768&w=2 > > [2] https://marc.info/?l=linux-kernel&m=160919729606750&w=2 > > > PATH for the root on Debian is > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin > > > depmod is used from 'make module_install'. > > For the native module installation to the host machine, > module_install is run after 'su -' > or 'sudo', which successfully finds depmod in /sbin. > > > I also tested 'make deb-pkg' with/without > rootless builds. It also successfully found depmod > in /sbin, presumably dpkg tools automatically tweak > PATH env variable. > > > Maybe, the problem is when we run 'make modules_install' > for cross compilation, which we do not necessarily > require the root permission. > > Users can still adjust PATH in ~/.profile, but > somebody may think breaking the legacy behavior > is annoying. > > So, after some consideration, the workaround by Linus > looks good to me. > Happy new 2020+1, Thanks for your feedback Masahiro. Building a Linux kernel on Debian is mostly done using fakeroot binary (so I do) - so in the user's (PATH) environment. I cannot speak for the case of cross-compilation as I never used it in the last years. We are in the transition "Xmas -> New year -> Weekend" so a lot of user's of Debian system will not test and hit the problem. To be honest I wondered why there were no more reports on this. With upcoming Sunday/Monday we will have Linux v5.11-rc2 released which has an elegant solution by restoring common legacy behaviour by putting "sbin" to the end of "PATH" (search). Regards, - Sedat -