Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2490711rwp; Fri, 14 Jul 2023 07:02:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlG95+5iimD9SrgBjJEJPAlPPBIq+uvW+GTLtL3lAUrpTpdfQT8uXuM9D8LWYEmxXUKMZZ/2 X-Received: by 2002:a17:902:ea94:b0:1b8:5bcc:2ffc with SMTP id x20-20020a170902ea9400b001b85bcc2ffcmr3554874plb.45.1689343365927; Fri, 14 Jul 2023 07:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689343365; cv=none; d=google.com; s=arc-20160816; b=UMpBlwzm84Eo1sLQLYQe/ia577tXeKturdpYuSKAagL6WnKtZIN6aBwsQ6aLdJ8HTC G2hx/wQ2PIL021NNS1OXLifxlE8eb37rVcg685JHZL26rmC2T6+hLIxmPIz+1PCkhIxU 5YRbgY4oSj5AHfOrCGTv5hxJO4xjk2RN03iyT0z6WMskmsRtN/xPyJE0lJldQWCwpMTK lHmyGwHPmp+7ubYu2Qgi7f78MBpLlzCA88q4oO/cfvRCSsjxqBkn0bKqySjlhdoMDDBC 830t3gMH8s9/u2O4Lup4QyaApE8FOLG686NxBjyfbsPmCkg4cwuIymD7Bpig7I4gU6gu ikgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=vsHcxIMf2mArNErpDripO+Zo0yyfVXNRaCZe3moXKDc=; fh=osrFv9NYlMUPZNYHLxGA+QcrTwVGCoeLQZcEEEWoxUM=; b=yZhCm4zWaPmwaWAOP2prY8cFMv7sM2yfqhZDp82cifVd7vpeGFJ8cMuskxU/2o5aKC 68eJx9pTe6JJDVJzAEYCg+FtRFBH+pKziASsC/jmzHhARSAhtYm7p7Ewjkg5J0gWLF9t r8y52G/AIhHM7oHg3iMCW+8umgz9znqb8ip0YgdZF4dRd5WYlrfOSMF6eFhYxj+4O6c2 AXeEkX1toiS4smjETp/xJdZvzLjhoaHAbVw2U1aBa4Znw9Hzh0V8IbqwSZHYg3SK+VaN Q8yRfAlxEAzy90kfRxy21TA4c8V5Dm1rcPXd9DMN/9bOIA1re7a7xhr1Bj7nUlsGag7b 3XBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hNo9xdg+; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020a1709027d8900b001a6ade4c8c2si1229173plm.142.2023.07.14.07.02.33; Fri, 14 Jul 2023 07:02:45 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hNo9xdg+; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235602AbjGNN5M (ORCPT + 99 others); Fri, 14 Jul 2023 09:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235512AbjGNN5L (ORCPT ); Fri, 14 Jul 2023 09:57:11 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B02B26B5; Fri, 14 Jul 2023 06:57:10 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 110AA220E3; Fri, 14 Jul 2023 13:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689343029; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vsHcxIMf2mArNErpDripO+Zo0yyfVXNRaCZe3moXKDc=; b=hNo9xdg+cL8aAxhgs69udnW0dajB4lkoV7HsCSp+xiMH8hxDeLNYEeAywBBNNZXzNHocmN FHWe5mJq/JwXObqD5m33US4dUjHXZerYAfzLW21k+LZ/MUE5wQ/DfY47xHyQZijRiRqVvd hDo88VKPAqjUSNK92gczh+kjsTDE38w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689343029; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vsHcxIMf2mArNErpDripO+Zo0yyfVXNRaCZe3moXKDc=; b=FvayFZ7oGoadJjLOrTNL/eMEyahi0UAu3h+CDRjwNO2mdTEh0yRjLewRvG3B6y5qyOkLmJ QSstG1VjFjbyhoDQ== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id AA1462C142; Fri, 14 Jul 2023 13:57:08 +0000 (UTC) Date: Fri, 14 Jul 2023 15:57:07 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Jan Engelhardt Cc: linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , Michal =?iso-8859-1?Q?Koutn=FD?= , Jiri Slaby , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] depmod: Handle installing modules under a prefix Message-ID: <20230714135707.GI9196@kitsune.suse.cz> References: <30d8c675-e769-e567-a81f-c1b59c66ad67@suse.com> <20230714122111.7528-1-msuchanek@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hello, On Fri, Jul 14, 2023 at 03:38:18PM +0200, Jan Engelhardt wrote: > > On Friday 2023-07-14 14:21, Michal Suchanek wrote: > > >Some distributions aim at not shipping any files in / outside of usr. > > > >The path under which kernel modules are installed is hardcoded to /lib > >which conflicts with this goal. > > > >+MODLIB = $(INSTALL_MOD_PATH)$(KERNEL_MODULE_PREFIX)/lib/modules/$(KERNELRELEASE) > > Ok, so if the problem statement is that hardcoded paths are bad, then why > continue to hardcode the "/lib/modules" fragment? Just make it so that > KERNEL_MODULE_PREFIX can be set to the exact string "/usr/lib/modules" and not > just "/usr". That's certainly an option. The feature is modelled after the installation prefix option that can move the whole filesystem hierarchy of installed files under /usr/local, /opt, or any other directory of choice. However, in that case the subdirectories in the hierarchy can be configured as well while in this case /lib/modules remains hardcoded. Making it possible to set the whole path is generally more flexible although there is no need to set the later part for this particular use case. Thanks Michal