public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
To: Sam James <sam@gentoo.org>, Siddhesh Poyarekar <siddhesh@sourceware.org>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] sparc: Remove optimize md5, sha256, and sha512
Date: Mon, 17 Jul 2023 14:55:10 -0300	[thread overview]
Message-ID: <4a78fa61-366b-2acd-18c3-e11f44cc9ade@linaro.org> (raw)
In-Reply-To: <877cqybg1v.fsf@gentoo.org>



On 17/07/23 14:31, Sam James wrote:
> 
> Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> writes:
> 
>> On 17/07/23 12:01, Sam James wrote:
>>>
>>> Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org> writes:
>>>
>>>> The libcrypt was maked to phase out on 2.28, and better projects
>>>> already exist that provide both compatibility and better API
>>>> (libxcrypt).  The sparc optimizations add the burden to extra
>>>> build-many-glibcs.py configurations.
>>>>
>>>
>>> I guess. I'd personally prefer just removing it all when libcrypt
>>> is removed, not hacking away at it beforehand.
>>
>> I don't think we will ever be able to remove libgcrypt due compat reason.
>> Maybe we can make crypt return ENOSYS as default, but even though I think
>> if libcrypt is still enabled we will need to keep old code as compat
>> layer. 
>>
> 
> In the other thread, we're talking about when it's time to kill it
> entirely (I suppose just the option to build, not the real
> implementation).

I am not sure what kind of compatibility we will need to preserve for
libcrypto.  For sunrpc 5500cdba401), we have removed most of the symbols
but still kept some old ones for compatibility even though the
libtirpc does implement such symbols (like key_setsecret for instance).

It seems that libcrypto is way simpler, and libxcrypt does implement
all require symbol version which the expected. So it should be doable.

> 
> My assumption was we'd remove optimisations like this at that point.

The idea of the patch is to streamline the required build coverage to
avoid having a --enable-crypt just for sparc.  Sure we can pack if/when
we remove libcrypto, but I think this is orthogonal.

  reply	other threads:[~2023-07-17 17:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17 14:48 Adhemerval Zanella
2023-07-17 15:01 ` Sam James
2023-07-17 15:59   ` Adhemerval Zanella Netto
2023-07-17 17:31     ` Sam James
2023-07-17 17:55       ` Adhemerval Zanella Netto [this message]
2023-07-17 17:58         ` Sam James

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=4a78fa61-366b-2acd-18c3-e11f44cc9ade@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    --cc=sam@gentoo.org \
    --cc=siddhesh@sourceware.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).