From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 45EBB385481F for ; Wed, 9 Jun 2021 17:28:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 45EBB385481F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: mJ0MaW8J5TNbH+SnLT8ZJjlbEcZXJCZqwu06mH+fmrf6TSFn6OmWCTksTCAHg+92SCXO3MdhyT 5rCqomm4DZCoTgK/cH4KIemA2TSlUoTeK4svtSuGYKeW+/ZDuE59xJqvkGsCv6hR7mfDMsLz4L 62TM71Na/xsTX3wvj1G+af9nPEq8kcgzdDdpaSmWTmPWgstXZmzmrAmDLzfgEtvdsN2NwauUWr k8cAjqSGtzaG+c5L5z73DcVrABch5g5OpMut0hhq4pV7DyysehRXMN+C1+c5SHBqzXGQDymUN7 Q5s= X-IronPort-AV: E=Sophos;i="5.83,261,1616486400"; d="scan'208";a="64620863" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 09 Jun 2021 09:28:57 -0800 IronPort-SDR: qfwp3sS7H0OkFv4igfgNy7e4bkjvoLKyEH2KRvwUFiNi9iw06P8JaA/doxnPlSNrdNYlKR7FlL OlVtcZgFQ4ZOldQJYK2oPDN8aHA1XPSQzfb/zH0SbXxqRI1HBIYCVEzFQyY9TA3DUeyyoBOFLh q/a9+zXJtU1RJMojUwTiuO4q7ixkvZVA9nCHFreg0Qfxo8Qq3cxG6Ub24vv4FDeYPUMsedy08p Ymhjgn70inP8tWaERNHG9a+muoSpx+sBu+iB9XW/8wJM0H5eW21bMaj/ihX9Tg7TrpmMWFqPFC 4Kw= Date: Wed, 9 Jun 2021 17:28:52 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Florian Weimer CC: Subject: Re: [PATCH 4/4] Add --disable-major-minor-libraries configure option In-Reply-To: <878s3j3qxy.fsf@oldenburg.str.redhat.com> Message-ID: References: <476bfc2e0c41a91a37d945ae2af29e931801b0f7.1623237082.git.fweimer@redhat.com> <878s3j3qxy.fsf@oldenburg.str.redhat.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3120.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2021 17:29:00 -0000 On Wed, 9 Jun 2021, Florian Weimer via Libc-alpha wrote: > * Joseph Myers: > > > This needs a NEWS entry. > > What about this? > > * glibc can now be configured with the --disable-major-minor-libraries > option. In this case, the various shared objects that are part of > glibc will be installed under their ABI sonames (such as libc.so.6) > rather than version-specific file names (such as libc-2.34.so). As > before, by default, glibc installs them as version-specific file > names, with the ABI sonames added as symbolic links. The > --disable-major-minor-libraries option enables safer downgrades with > package managers which delete removed files very late, after invoking > ldconfig. That seems reasonable (if we have this option at all). > Indepdently of the implementation of the patch, do you think this is > something that needs to be configurable, or can we remove versioned file > names altogether? I don't know why we have the versioned file names, but my guess would be it was intended to help with downgrades after a non-package-manager installation directly into the root filesystem went wrong (someone could try to use sln to recover by linking back to the older-version files). I don't think we should expect installation directly into the root filesystem by "make install" to work reliably anyway, let alone provide a downgrade mechanism, so I don't see the need to support versioned file names any more. -- Joseph S. Myers joseph@codesourcery.com