public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Szabolcs Nagy <szabolcs.nagy@arm.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>,
	libc-alpha@sourceware.org, Zack Weinberg <zack@owlfolio.org>
Cc: daniel.fellows@arm.com
Subject: Re: [PATCH v2 2/2] crypt: Remove libcrypt support
Date: Tue, 16 Jan 2024 12:00:42 +0000	[thread overview]
Message-ID: <ZaZv6tsKhNAsUu3S@arm.com> (raw)
In-Reply-To: <20231002121149.2325402-3-adhemerval.zanella@linaro.org>

The 10/02/2023 09:11, Adhemerval Zanella wrote:
> All the crypt related functions, cryptographic algorithms, and
> make requirements are removed,  with only the exception of md5
> implementation which is moved to locale folder since it is
> required by localedef for integrity protection (libc's
> locale-reading code does not check these, but localedef does
> generate them).
> 
> Besides thec code itself, both internal documentation and the
> manual is also adjusted.  This allows to remove both --enable-crypt
> and --enable-nss-crypt configure options.
> 
> Checked with a build for all affected ABIs.
> 
> Co-authored-by: Zack Weinberg <zack@owlfolio.org>
...
> diff --git a/stdio-common/Versions b/stdio-common/Versions
> index 4bcfc3fb41..8e1cbf8559 100644
> --- a/stdio-common/Versions
> +++ b/stdio-common/Versions
> @@ -74,7 +74,5 @@ libc {
>    GLIBC_PRIVATE {
>      # global variables
>      _itoa_lower_digits;
> -    # Used in libcrypt.
> -    __snprintf;
>    }

fyi, this means that if you copy new glibc over an old system
the old libcrypt.so.1 will stop working because of missing
__snprintf@GLIBC_PRIVATE symbol.

e.g. this breaks some of our native glibc test setups, unless
we carefully rebuild a libcrypt to be compatible with both the
new glibc and the native system (old systems don't have compat
libxcrypt packaged).

what is the recommended solution for this problem?

can we keep the __snprintf symbol around (the alias is still
there we just no longer export it from libc.so)?


  parent reply	other threads:[~2024-01-16 12:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02 12:11 [PATCH v2 0/2] " Adhemerval Zanella
2023-10-02 12:11 ` [PATCH v2 1/2] sparc: Remove optimize md5, sha256, and sha512 Adhemerval Zanella
2023-10-30 12:52   ` Carlos O'Donell
2023-10-30 13:04     ` Carlos O'Donell
2023-10-02 12:11 ` [PATCH v2 2/2] crypt: Remove libcrypt support Adhemerval Zanella
2023-10-02 14:21   ` Zack Weinberg
2023-10-30 12:52   ` Carlos O'Donell
2023-10-31 13:43     ` Joseph Myers
2023-10-31 14:00       ` Adhemerval Zanella Netto
2024-01-16 12:00   ` Szabolcs Nagy [this message]
2024-01-16 12:21     ` Andreas Schwab
2023-10-30 12:52 ` [PATCH v2 0/2] " 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=ZaZv6tsKhNAsUu3S@arm.com \
    --to=szabolcs.nagy@arm.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=daniel.fellows@arm.com \
    --cc=libc-alpha@sourceware.org \
    --cc=zack@owlfolio.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).