mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Laurent Bercot" <ska-dietlibc@skarnet.org>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: Re: [musl] Re: OS detection wrong on Alpine Linux 3.10
Date: Tue, 22 Sep 2020 21:04:17 +0000	[thread overview]
Message-ID: <emf2e8f5c5-0d70-4cab-9ea6-ff9688f302be@elzian> (raw)
In-Reply-To: <CAH8yC8mgZJf2zVj3irJ_itkbMk0rMbw2QXWWkAG8RxOdCSYQPA@mail.gmail.com>

>>  I'm not trying to tell you you're not a grown-up programmer. I'm
>>  trying to tell you that the answer to the question you're asking ("is
>>  this musl?") is not meaningful for achieving what you presumably want
>>  to achieve -- assisting the program using autoconf tests in
>>  automatically producing a build that works on the intended host.
>
>That assumes a project is Autotools based.

  No, it does not. It assumes that the project's authors are attempting
to produce a working project, including detection of implementation-
defined behaviour wherever the project relies on them. "autoconf tests"
is a shortcut that means "tests performed at build time that do such
detection", because autoconf is the most widely known program that
produces such tests and everyone understands the expression.

  But it doesn't mean that a project has to use autotools. My projects
don't, and never will; however, they do perform feature detection at
build time, because it's necessary for what they do.

  If a project relies on implementation-defined behaviour and does not
perform detection, then it is broken and needs to be fixed. If its
build system does not allow it to perform detection, then it needs to
switch to a better build system. As you say, autotools is a mess, but
it at least gets this part right (more or less - it does cross-building
wrong because by default it assumes target behaviours it cannot detect,
instead of asking the user). I very much hope other build systems are
capable of doing the same. If not, that's, for once, functionality they
should grow, because it's useful.

--
  Laurent


  reply	other threads:[~2020-09-22 21:11 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4768019.hHWyC0TzgU@omega>
2020-09-20 10:12 ` Dmitry V. Levin
2020-09-20 11:19   ` Bruno Haible
2020-09-20 12:18     ` Ariadne Conill
2020-09-20 13:56     ` Szabolcs Nagy
2020-09-20 17:14       ` Rich Felker
2020-09-20 19:21         ` Bruno Haible
2020-09-20 20:58           ` Hadrien Lacour
2020-09-21  6:53           ` A. Wilcox
2020-09-21 11:46             ` Florian Weimer
2020-09-22 18:46           ` Rich Felker
2020-09-22 20:18             ` Bruno Haible
2020-09-22 20:33               ` Jeffrey Walton
2020-09-22 20:39             ` Jeffrey Walton
2020-09-22 21:04               ` Laurent Bercot [this message]
2020-09-22 21:17                 ` Jeffrey Walton
2020-09-23  8:49                   ` Laurent Bercot
2020-09-23 13:13                     ` James Y Knight
2020-09-23 16:08                       ` Rich Felker
2020-09-23 16:16                         ` Jeffrey Walton
2020-09-23 16:26                           ` Ariadne Conill
2020-09-23 16:57                             ` Jeffrey Walton
2020-09-23 16:36                           ` Rich Felker
2020-09-20 12:19   ` Ariadne Conill

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=emf2e8f5c5-0d70-4cab-9ea6-ff9688f302be@elzian \
    --to=ska-dietlibc@skarnet.org \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).