Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12684229pxu; Sat, 2 Jan 2021 07:33:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYkN8lwwPCpPpjnnQiUJttfWl+6NqDTGIOopinwsMPE3cHX+7RIqxMTmbuM30NhzpRH2VC X-Received: by 2002:a17:907:9614:: with SMTP id gb20mr48131697ejc.406.1609601618984; Sat, 02 Jan 2021 07:33:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609601618; cv=none; d=google.com; s=arc-20160816; b=zWakg6bXQPqsojlqd9/vxxMPKy0XScMDQd+1y9oyYYAvPDGeNAXEuJUtKjxO6FunHA 1wd+eXgodHG8eeKo5BZO6MfWizf4arMPCC2iQgyJBSAjpXw60IB9RcrxXDqNlDMj3PcS JePtHJhYa5wJr+ABcOr8r6WHAaQyM1ffmCAiMp2rrA6WOtEnhlTqRu4izEHH+MUpMQ4i QM5JL63kLXjBiHxn3HDPcBiPYSKz3JHEysa3JcWzzQN2pIZ7HbAw5yeeBh13v1wHDBL1 Otq5SMkFrYndba1mAJhkeuB59kgixVJbsYGunwqbjbBN7AYUakpnqlSqXSLrl1V/ZHGx kq1g== 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:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=j2fbtGKyQTuw45mkSRvlfyrsJCwexbqktTOakjtc3Ng=; b=zHMipPLYFMAjx9L3UHoon2dgB5zXjnJ3ygMA/gBPQHbITewlMaXs65Z2ysNFMZwIzx d+dBlHs5+sRR6FA/1r67kMOvB2FY/kpiHtJGGPuUEzRQJfpNROmWMZ+vyd9as0tat8qB ighxi3ZCsb3H81O2ju4hbUSe4QGZlfG9TjVPdN3kanDyL3DuGjy04zzIgIDXwL1G667c hW08dq594Mt4MKYCKJcLgIbisJ0/1W1Oc57dXmyGB2tneWmo+jOja5lQOei9t2kZ8Fa/ sQB7YmqpUvD4MUORvPMJr68Z+QA3qCsTXcdhuqyrC3+4/L+a8S+7pyscMNCPLoo23MI9 PZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JOYsSubA; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si25744093ejr.2.2021.01.02.07.33.12; Sat, 02 Jan 2021 07:33:38 -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=@nifty.com header.s=dec2015msa header.b=JOYsSubA; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726620AbhABPcD (ORCPT + 99 others); Sat, 2 Jan 2021 10:32:03 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:41635 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726575AbhABPcC (ORCPT ); Sat, 2 Jan 2021 10:32:02 -0500 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 102FV3Yb014655; Sun, 3 Jan 2021 00:31:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 102FV3Yb014655 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1609601464; bh=j2fbtGKyQTuw45mkSRvlfyrsJCwexbqktTOakjtc3Ng=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JOYsSubAmOtJ90m+ZEIpNeJ3H4BqsjGEWi1ZhUyLNNT0twCeb774XY8JVunSJgEan XMN8aRzvzesXC2MsGNcI9EUo/NJsWOmbSWO3RW1e7L9SSZmCU4mUp6dimsCU6v7VKA k+AJgCnpw/nwoEhRtZKwzO+DOfkNCTBHgcVUZVo0AGZQ1NjI5sr/VdvLG/Bxf7Ygbn /D9XAlWDX6utK1fQvwGip0ExYqi8rh9c26OUsNHYy9o33OWObmOmnqwLfxxE4h27ja vge+qwMW+fjhUNMy+70rjy6/aQHcc7KVHsrEMRquk1jAubAKoilzYPK5Q2PGiDvYx+ K3XL7O3XGYq8w== X-Nifty-SrcIP: [209.85.214.175] Received: by mail-pl1-f175.google.com with SMTP id j1so12184553pld.3; Sat, 02 Jan 2021 07:31:04 -0800 (PST) X-Gm-Message-State: AOAM532YokAjuok4LSK7KKKTGo+EkmmQAJPI1oisvB22o9w6djuzoVtp Iosh+w4PxdhXA5a/RcY2nZDSXds+pFul2J62+2w= X-Received: by 2002:a17:902:9b91:b029:db:f003:c5eb with SMTP id y17-20020a1709029b91b02900dbf003c5ebmr65041766plp.1.1609601462940; Sat, 02 Jan 2021 07:31:02 -0800 (PST) MIME-Version: 1.0 References: <20210101161435.GA344@duo.ucw.cz> In-Reply-To: From: Masahiro Yamada Date: Sun, 3 Jan 2021 00:30:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.11-rc1 To: Sedat Dilek 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 4:51 PM 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. I retract this hunk about deb-pkg. (My test environment in the docker was wrong.) I tested deb-pkg builds in the full debian installation in KVM, and confirmed deb-pkg failed to build. So, 'make deb-pkg' would have broken without cedd1862be7e6 -- Best Regards Masahiro Yamada