Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5980285rwp; Mon, 17 Jul 2023 12:41:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXY0JO2RFEciss3L2MWWtV5hAWB+YUXNzv4WTi9GOvW4uEEsMgzA5FANgYitW8PjyCypy7 X-Received: by 2002:a05:6808:1290:b0:3a3:f3b5:a74 with SMTP id a16-20020a056808129000b003a3f3b50a74mr14689281oiw.58.1689622879319; Mon, 17 Jul 2023 12:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689622879; cv=none; d=google.com; s=arc-20160816; b=TbjTqMITa0CvNaqdzVQ7SQLbgITi2zzE6ShQF196Dm3Omla8iP64ainF1pWYBCX1Hi qsH8oLZe2pfva6dY3OS3Vu3axvvlTzv31kpxCm+XJNv8FAffhU1eZSEnVdtNdRwYIIOv khj6KYlEFcjLymjv/Yu/a6hePKbEV5jRQT+wQ+xAfAmkN9klwHlkuqXyZyBIhVrPZYr6 LsZQXUDiQO5PWTvi2AKaPP39Q4raDhAQObL7FPRuAlEB5QendAdrn6HUVStnxFs1h5j6 rV4yesMZ8ZnzPtClXa3r6BDfUd910ZbsptolnP265FBWoiTi7V76jBLksFh3SjjBeh3N +7Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=lZalyZa0VYLJhRqFPwlnBpWotdlkZraEAMEkxem5SFs=; fh=SQ4UHaTqW/lqR9OJcdZkwBVRtjrY5AxJde/r1amJF3E=; b=pEEl40k/uzzBJ4UffoxyFPuJPRYtnRRgSsIniMuORG2hWlfyEdAK6Xwlaot6jizvvr mCx1lMP9G3RBgTPpp0Smoke9PtINCAhEcU8PXyFYl+Fefi8HiaAktlmw1D5AuAvYOIEc lVLV2oA5+LIC7AdpBrATBYjlU7khcOH7FkJx8OIoY4vdVvZybvcdyx9AwXLtnJR9kdxm UlWnjDY6gQ96R0yz8dFvJLiF/VIC3ove7kYun+0w7Umy0kxsjlU2a/EubHRuTtXVJN8D Vg5v8m4qsgXE8/bxO3YFgWDJcuZPCxmHawF6g5YaWYw2XTbCQ1O34ESoi4beb7MLN6on fFHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a63eb05000000b0053f163363c0si285005pgh.95.2023.07.17.12.41.06; Mon, 17 Jul 2023 12:41:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231434AbjGQT2e (ORCPT + 99 others); Mon, 17 Jul 2023 15:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231406AbjGQT2e (ORCPT ); Mon, 17 Jul 2023 15:28:34 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93DA5E1; Mon, 17 Jul 2023 12:28:32 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 729DD58780BF4; Mon, 17 Jul 2023 21:28:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 708FB60D4A023; Mon, 17 Jul 2023 21:28:30 +0200 (CEST) Date: Mon, 17 Jul 2023 21:28:30 +0200 (CEST) From: Jan Engelhardt To: Michal Suchanek cc: linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Jiri Slaby , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH kmod v4 4/4] libkmod, depmod, modprobe: Make directory for kernel modules configurable In-Reply-To: Message-ID: <76o21q7n-8qo8-37p6-oqno-q08nqpos471@vanv.qr> References: <20230711153126.28876-1-msuchanek@suse.de> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 2023-07-17 12:39, Michal Suchanek wrote: >modprobe.d is now searched under ${prefix}/lib, add ${module_directory} to >specify the directory where to search for kernel modules. > >With this distributions that do not want to ship files in /lib can also >move kernel modules to /usr while others can keep them in /lib. This patch breaks kernel builds/installation. * assume $distro has given me a kmod that has your submission included, and such kmod was ./configure'd --with-module-directory=/usr/lib/modules With such a kmod, the module installation of current and past kernels is not possible, in other words, ** bisecting kernels ** is broken: $ make modules_install INSTALL_MOD_PATH=$PWD/rt V=1 [...] # INSTALL /tmp/linux/rt/lib/modules/6.4.3/kernel/virt/lib/irqbypass.ko mkdir -p /tmp/linux/rt/lib/modules/6.4.3/kernel/virt/lib/; cp virt/lib/irqbypass.ko /tmp/linux/rt/lib/modules/6.4.3/kernel/virt/lib/irqbypass.ko [...] # DEPMOD /tmp/linux/rt/lib/modules/6.4.3 sh ./scripts/depmod.sh depmod 6.4.3 depmod: ERROR: could not open directory /tmp/linux/rt/usr/lib/modules/99.98.6.4.3: No such file or directory depmod: FATAL: could not search modules: No such file or directory make: *** [Makefile:1956: modules_install] Error 1