From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22082 invoked from network); 23 Sep 2020 16:57:46 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 23 Sep 2020 16:57:46 -0000 Received: (qmail 28532 invoked by uid 550); 23 Sep 2020 16:57:43 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 28514 invoked from network); 23 Sep 2020 16:57:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=k+HBm01zC1wfy01ThX14tKoXGzv1rQwss30LUgAlJgY=; b=u0TYLjAIbVYGVkOzPEPHWhQx6Je0ZQXNR4K0GAwOUAgcP9A0Cty4DKnTgI2eUR77cK PuW6GKvmrsYeNo7FUi89baP2Mv56T3167BMoVFfkjRl0pS05nrjjDGXIhiGk8H6udi6T rmuYwU03sgJOW3V4RLppuA+jmbvbuXpN9hiuYHrHIaCerHjG+P6Fnj2TqXEiWaNd15PH herxMfOfaB7qGdqZPmzcZu+TJh5WjY1tuAJPUJYlWM7+/vuQ9u/OfOVq4v+Nb3CdOUr0 KLOIl/6AtIFWTq+fMVhsaNceqFOoVXY2m3TLCtShUK5O5Bq5R2kIamQJQSsfkeHWZTAL tSug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=k+HBm01zC1wfy01ThX14tKoXGzv1rQwss30LUgAlJgY=; b=OKB+xbXpSijHI/maCknDBAtNeI/ucnY0Gy8If75LH1xM7oQ95Ekj8tKbK+HLpBsuFt Mo9cP4owHQhzNikOM8luzC0mzjsUAYvGnBxcQ/xcpPnLUOmj5g1TPS4L4j9sHth36i36 qgnVIrwhK5edKLPj9T+kYq/u94tPan5CLc7poar5ehtaClHDilWJOC8lL3vu7ay0Qi/c xBfAu2i+0JP1xa4iMlXWCbGBro4HyjzsQH0g8E6Z+oyyfxcpint2DM2kXF/2kkHJ0guD Qx+YGKUaZiAodtgHzZuV8kMAK5oBpU9KdYdboxl54DiMqN0UikRti0DwhNEaK5VqW3cy Jj2w== X-Gm-Message-State: AOAM530uCDyfN9Usu3ZH062tvnGqTV3jWwtpE04l4AVgFkkbS1syUOk3 Vi5OZSowfHZqqyBcQsgKIhXBCXCQO2Ujx4wRnvd2VZ3HvyWM7g== X-Google-Smtp-Source: ABdhPJzTrzThCjFDn7euLAq3TfPaUCqZb1rxqmz5GjTzS2gLYEJXP/y/nINfMd5jaZeA0hxbyYEiOfC+zy1mqiF42N4= X-Received: by 2002:a6b:908:: with SMTP id t8mr371333ioi.124.1600880250888; Wed, 23 Sep 2020 09:57:30 -0700 (PDT) MIME-Version: 1.0 References: <4768019.hHWyC0TzgU@omega> <20200920135629.GI2947641@port70.net> <20200920171446.GB3265@brightrain.aerifal.cx> <2533200.g9kxISXj3W@omega> <20200922184610.GI3265@brightrain.aerifal.cx> <20200923160824.GJ3265@brightrain.aerifal.cx> <7bd0a1a7-ffad-fd02-21a1-e4c6f0400146@dereferenced.org> In-Reply-To: <7bd0a1a7-ffad-fd02-21a1-e4c6f0400146@dereferenced.org> From: Jeffrey Walton Date: Wed, 23 Sep 2020 12:57:18 -0400 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Re: OS detection wrong on Alpine Linux 3.10 On Wed, Sep 23, 2020 at 12:26 PM Ariadne Conill wrote: > > Hello, > > On 2020-09-23 10:16, Jeffrey Walton wrote: > > On Wed, Sep 23, 2020 at 12:08 PM Rich Felker wrote: > >> > >> On Wed, Sep 23, 2020 at 09:13:16AM -0400, James Y Knight wrote: > >>>> > >>>>> All I need to know is what version of Musl I am dealing with and I can > >>>>> configure myself. > >>>> > >>>> Are you willing to maintain an #ifdef forest for all the versions of > >>>> all the libcs and all the kernels your programs may be used with, so > >>>> you can list exhaustively the available features in every configuration? > >>> > >>> At the risk of jumping in on a question asked of someone else: yes, > >>> absolutely! (Not _all_ available features of course, just the ones > >>> required.) > >>> > >>> There are generally not that many nonstandard features you'd want to use in > >>> a typical program, and using an ifdef forest to implement an abstraction > >>> layer around those couple items is just fine. > >> > >> I can't know whether you're "willing", but you're definitely not > >> willing and able. "All the..." includes people's personal projects > >> (from scratch or patches to existing ones) that you will never see, > >> future systems that come into existence long past your involvement in > >> the project or even your lifetime, etc. > > > > Unless something has changed recently, Botan, Crypto++ and OpenSSL are > > still being carried by most Linux distributions. OpenSSL is also > > regularly distributed as part of other OSes, like AIX, Android, BSDs, > > iOS, OS X and Solaris. > > You are dead wrong on this topic. OpenSSL actually goes the other way > and performs absolutely wacky tests like "are we running on big-endian > amd64." Any cryptography library is going to have to perform feature > tests (either at build time or run time) to determine whether features > like hardware acceleration are possible. Sorry, my bad for the confusion. Botan, Crypto++ and OpenSSL do not perform Autoconf-like compile-time feature tests. Botan has a configure-like program, but it is used to select components. Preprocessor macros are used instead of feature tests. Crypto++ uses preprocessor macros. Preprocessor macros are used instead of feature tests. (This is slowly changing in Crypto++). OpenSSL uses a preconfigured profile. './Configure LIST' will list the profiles. It uses info from the profile and preprocessor macros are used instead of feature tests. Jeff