Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3505897rdg; Tue, 17 Oct 2023 18:12:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbpOc8sI1sXUR4IyH9ptHahNw2LFZXhXMMjl1AtuX8JWYTtvuGVPR6G/8DwCCGlBjGthQO X-Received: by 2002:a17:902:f542:b0:1bf:193a:70b6 with SMTP id h2-20020a170902f54200b001bf193a70b6mr6177130plf.5.1697591577300; Tue, 17 Oct 2023 18:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697591577; cv=none; d=google.com; s=arc-20160816; b=K1qEX+nHrf43N5QxU3B1q4tmOB0cwEAVetkFQ7dw3xOAA/qDaUjS87IBXhGkoCO9Es Hhh/ajA+yMFuUG1S9q++MD4ZqOqKVK2nzmLSA/8eVq6x4RiqwJofw8gUp6aZyNX7c+ey kM1SAky2/Yv6/zypnLxrRByIKz2BCg+HB09/EvvcWTPDJ9/ft9pbjKKUOzkHoASfz2od YSqfJHP+pKnsF1hs4lgH3+hKgRZ2rQd2/zWuJ8kFKOjvA0D9Rqmeb28bKhRZZ6pGmoRL 6T+L4YPPxW60pYDskNNHRtjOzDCoo9EKlg7/XghPgfJiX2mKiG988MypSGNfstJ3zBGR gGLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=GPdPpE9brn/Kq2eBoZ23SJJ5sSQ2iaW+R5Ze6SvaRMI=; fh=CCSMbkPctCN/W/qwvj6Bf5i8h/AEsJcjwhgOH/qOD3w=; b=rc6j1joKwS8+k/bUAbF6LS+QyCea6/ftMQqQ2m9QuJMmVEChCeMACFGChKahfIVKZw ijh/bu4k3/uqdOqPsvQUSqpgwacwUhMmRl1lqe9nwLea1Vl6eALSlOEciErAp3evpQkZ k0Gl1YUxX8D4ipLd/GZdus+q93ynoJC9JU/giVqimovKVxPz74wAIqP3RPbApCItISRv b4o+/GAUi4QMJ57VvryD4SsAg1UV213WyIVaeBOS2plfnZGFvoEZNn0D/fzfntjrI425 SIyH8vueZCeciD8kbWtu1lFjh68jZIwFhHCZZL+ebE9BLd8ckp4HxRl0yvgDQynsyHv6 yyYQ== 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:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id w12-20020a170902c78c00b001c73626a1ffsi1426329pla.412.2023.10.17.18.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 18:12:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 045AD80FCC9D; Tue, 17 Oct 2023 18:12:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344238AbjJRBMq (ORCPT + 99 others); Tue, 17 Oct 2023 21:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233726AbjJRBMp (ORCPT ); Tue, 17 Oct 2023 21:12:45 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61150B6; Tue, 17 Oct 2023 18:12:43 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 9A553587264CA; Wed, 18 Oct 2023 03:12:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 97A2B60C40E07; Wed, 18 Oct 2023 03:12:41 +0200 (CEST) Date: Wed, 18 Oct 2023 03:12:41 +0200 (CEST) From: Jan Engelhardt To: =?UTF-8?Q?Michal_Such=C3=A1nek?= cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier , linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Jiri Slaby , Nathan Chancellor , Nick Desaulniers Subject: Re: [PATCH rebased] kbuild: rpm-pkg: Fix build with non-default MODLIB In-Reply-To: <20231017151050.GJ6241@kitsune.suse.cz> Message-ID: References: <20231009085208.GT6241@kitsune.suse.cz> <20231009140733.GV6241@kitsune.suse.cz> <20231010101552.GW6241@kitsune.suse.cz> <20231017104453.GG6241@kitsune.suse.cz> <20231017122747.GH6241@kitsune.suse.cz> <20231017151050.GJ6241@kitsune.suse.cz> User-Agent: Alpine 2.26 (LSU 649 2022-06-02) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 18:12:55 -0700 (PDT) On Tuesday 2023-10-17 17:10, Michal Suchánek wrote: > >> In my system (Ubuntu), I see the directory paths >> >> /usr/aarch64-linux-gnu/lib/ >> /usr/i686-linux-gnu/lib/ >> /usr/x86_64-linux-gnu/lib/ >> >> If there were such a crazy distro that supports multiple kernel arches >> within a single image, modules might be installed: >> /usr/x86_64-linux-gnu/lib/module// > >For me it's /usr/lib/i386-linux-gnu/. > >Did they change the scheme at some point? It's a complicated mumble-jumble. Prior art exists as in: /opt/vendorThing/bin/... /usr/X11R6/lib/libXi.so.6 [host binary] /usr/x86_64-w64-mingw32/bin/as [host binary] /usr/x86_64-w64-mingw32/sys-root/mingw/bin/as.exe [foreign binary] /usr/platform/SUNW,Ultra-2/lib/libprtdiag_psr.so.1 [looks foreign] The use of suffix-based naming must have been established sometime near the end of the 90s or the start of 2000s as the first biarch Linux distros emerged. Probably in gcc or glibc sources one will find the root of where the use of suffix identifiers like /usr/lib64 started. Leaves the question open "why".