linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: mtk.manpages@gmail.com, Florian Weimer <fweimer@redhat.com>
Cc: linux-man <linux-man@vger.kernel.org>
Subject: Re: [PATCH v2] ld.so.8: Update "Hardware capabilities" section for glibc 2.31.
Date: Thu, 11 Jun 2020 16:53:09 -0400	[thread overview]
Message-ID: <84511dbb-2c38-b928-3155-1027a6078a96@redhat.com> (raw)
In-Reply-To: <CAKgNAkjB3-LvJaTQ5cHyc-cduD6Yr0_dBrSmN_bih+YOzuBCww@mail.gmail.com>

On 6/10/20 2:00 AM, Michael Kerrisk (man-pages) wrote:
> Hi Carlos,
> 
> What's the status of this patch?

I'm currently rewriting the language of the section to split apart the
AT_PLATFORM and AT_HWCAP parts.

They each behave differently. AT_PLATFORM is a non-nested singular platform
directory that is searched with no fallback, and that needs to clarified
and called out. While AT_HWCAP is drastically different in behaviour.

When done we'll have two lists, and two explanations for the search paths
and their orders.

I'm doing this as part of the upstream review of this infrasturcture
because we're going to change the behaviour in an upcoming release. With
the changes in place we'll have a good place to say "... and now it's different."

In summary: Still working on it. Expect v3.

> On Tue, 2 Jun 2020 at 08:14, Florian Weimer <fweimer@redhat.com> wrote:
>>
>> * Carlos O'Donell:
>>
>>> +Care should be taken when packaging such application with a package manager,
>>> +particularly the scenario where an optimized library is being removed.  With
>>> +certain package managers, particularly rpm, the newer version of the
>>
>> Twice “particularly”.
>>
>>> +application is installed first, which means that for a period of time during
>>> +the upgrade all applications that use the library may start with a mixed set of
>>> +libraries e.g.  the old library from the feature-based search path, and new
>>
>> Commas arount e.g.?
>>
>>> +libraries from the upgrade. To avoid this scenario the new library version
>>> +should delete all known optimized libraries in the post-install phase.
>>
>> There is a different mechanism: Debian has patched glibc to disable
>> hwcap subdirectors if the file /etc/ld.so.nohwcap exists.
>>
>> You now list the AT_PLATFORM directories (determined by the kernel on
>> most architectures) along the regular hwcaps directories, although they
>> are handled somewhat differently.  For example, on s390x, if you have a
>> “z15” machine (as indicated by AT_PLATFORM), the “z13” subdirectory is
>> not selected.  ldconfig will add it to the cache, but it will not be
>> used at run time.  I'm not sure if your proposed description gives
>> readers the right idea what happens.
>>
>> Thanks,
>> Florian
>>
> 
> 
> --
> Michael Kerrisk
> Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
> Linux/UNIX System Programming Training: http://man7.org/training/
> 


-- 
Cheers,
Carlos.


  reply	other threads:[~2020-06-11 20:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 20:02 [PATCH] ld.so.8: Update "Hardware capabilities" section for glibc 2.31 Carlos O'Donell
2020-05-28  9:35 ` Florian Weimer
2020-05-28 15:05   ` Carlos O'Donell
2020-06-02  3:09   ` [PATCH v2] " Carlos O'Donell
2020-06-02  6:14     ` Florian Weimer
2020-06-10  6:00       ` Michael Kerrisk (man-pages)
2020-06-11 20:53         ` Carlos O'Donell [this message]
2020-06-13 12:00           ` Florian Weimer
2020-12-04  9:12           ` Florian Weimer
2020-12-04 21:19             ` Carlos O'Donell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84511dbb-2c38-b928-3155-1027a6078a96@redhat.com \
    --to=carlos@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).