Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3510056rdg; Tue, 17 Oct 2023 18:25:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFA9KhX/L8DqOs6EEm0K7c++Lhjzi3gnp4r4z13m9zuCWKNqRikIb9HDcM5qTEs0z9v+3Su X-Received: by 2002:a05:6830:2705:b0:6b8:67bf:fdf2 with SMTP id j5-20020a056830270500b006b867bffdf2mr4704667otu.11.1697592332423; Tue, 17 Oct 2023 18:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697592332; cv=none; d=google.com; s=arc-20160816; b=dFy8baQI6seLQyJ0Oeouk/8b5yUwqiKYHK1Fs4tVk7j1+njMqaHT78pLxnoYTjWFaB atTbTIL+QDLNn6P1PVshe7JAI9ayZTdsdf2RWnuY+l16+jFwv2zbbGaZ+HgFJ3zyw+YB TFj1oSIpMbxbr/W0X8nF+vVwmkKrSck8jU+LFa1NqaS6+FwLgpjc7xcxkKOKBaCbeacE 9yWKXm8SqmDcx0gnDwghKIbyttErtT+w1Gpcokr8zhR8CiqmxnanOWmzUcyfDCd2KMx+ BXwvZjc0jbneU4Xjjem8Y8hVBX4Lb0VBUw65Os4EVl24Z2jhmiHvCFuHW1Zl9+BckkLJ irZA== 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=V3ylkNMWXtypGxOJ6L3AQNTB03/OvW2iJNaXv6Z12ss=; fh=jYfe8U3QefV4cCC7e07iS9tPKqUoRChfl1FjvF+UHXU=; b=aDmfKKyyWLDc4QCuaYwrPwz0pOyh3IH0eFVkLOTCT0ASzk8g7u7/SfvIQ7Vnv3F7Mi QtY72cwMXF6K/xwqrm8J0pey/9tDVFD1QURs6rbk5qvjdoc9PYZQbzXJfu6UvOn2YDJ7 8IjCZrYRV1Lr82bPw/U/sB6DmIrd15HmV+nLZgM8EiqyyoDlxfDq0kfvpqfLv3xXoUB5 CuiaRfL0WToE+75Sce2uaDa5KK4fT7TxdrZiExMdA8oR4+jhBYcvNMp4dQ2jzAeC9apW fk/fnX/6b9sSpW9Nxl7sl0XsD5mxL85i6IuzUeM++ioAVxjXeu/rZ76/lBiZ6MKvtIpP mIfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id m21-20020a656a15000000b005b7e3ee1820si1188734pgu.157.2023.10.17.18.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 18:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 145E7803B511; Tue, 17 Oct 2023 18:25:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344332AbjJRBZX (ORCPT + 99 others); Tue, 17 Oct 2023 21:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjJRBZW (ORCPT ); Tue, 17 Oct 2023 21:25:22 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1AB6B0; Tue, 17 Oct 2023 18:25:20 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 53DEC587264CA; Wed, 18 Oct 2023 03:25:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 518F760C40E07; Wed, 18 Oct 2023 03:25:19 +0200 (CEST) Date: Wed, 18 Oct 2023 03:25:19 +0200 (CEST) From: Jan Engelhardt To: Lucas De Marchi cc: Michal Suchanek , 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 v5 5/5] libkmod, depmod, modprobe: Make directory for kernel modules configurable In-Reply-To: Message-ID: References: User-Agent: Alpine 2.26 (LSU 649 2022-06-02) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 18:25:30 -0700 (PDT) On Tuesday 2023-10-17 19:50, Lucas De Marchi wrote: >> +AC_ARG_WITH([module_directory], >> + AS_HELP_STRING([--with-module-directory=DIR], [directory in which to >> look for kernel modules - typically '/lib/modules' or >> '${prefix}/lib/modules']), >> + [], [with_module_directory=/lib/modules]) >> +AC_SUBST([module_directory], [$with_module_directory]) > > we will probably have "fun" results if we accept a relative path here. $ ./configure --prefix=/usr --bindir=../bin configure: error: expected an absolute directory name for --bindir: ../bin While such check does not exist for --with-module-directory, everyone has likely been well-trained not to use relative paths. Even if, say, cmake/meson *could* do it, it just would have never occurred to me to actually *utilize* it, because it is just too ambiguous and potentially dangerous. Just think of all the fun you could have with LD_LIBRARY_PATH=".."