ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: linux binaries split?
Date: Sun, 25 Mar 2018 10:53:04 +1300	[thread overview]
Message-ID: <4251ab75-be01-2f8f-7000-2be1d9e28b49@gmail.com> (raw)
In-Reply-To: <CAG5iGsCi5+eJ10sLiZfgRBfwGcO33eoJbcUH-3DUJYMC54QWNA@mail.gmail.com>

I am not the author of this check, I simply took it from config.guess
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob;f=config.guess;h=256083a70d35921d544b15f4f51749af89d18b89;hb=HEAD
(Ctrl+F musl)
However, I was the one who requested the musl detection in config.guess
and the maintainer implemented the check like this for reasons of
portability.

Perhaps the problem is the else case in this statement.  Maybe it should be:

LIBC="glibc"
if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
then
    LIBC="musl"
fi



On 03/25/2018 06:47 AM, luigi scarso wrote:
> On Sat, Mar 24, 2018 at 6:43 PM, Mojca Miklavec
> <mojca.miklavec.lists@gmail.com> wrote:
>> On 24 March 2018 at 18:36, luigi scarso <luigi.scarso@gmail.com> wrote:
>>> On Sat, Mar 24, 2018 at 5:51 PM, Mojca Miklavec wrote:
>>>> I reverted the change for now until someone can come up with a working command.
>>> can you send me offlist  the relevant *lua *sh script ?
>>> I cannot reproduce the error now  with linux/zsh.
>>
>> echo "Henri's test:"
>> if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
>> then
>>     echo "This is musl"
>> else
>>     echo "This is libc"
>> fi
>>
>> # not sure about the exact form
>> echo "Arthur's test:"
>> if command -v ldd --version 2>&1 | fgrep -q '^musl'
>> then
>>     echo "This is musl"
>> else
>>     echo "This is libc"
>> fi
>>
>> Mojca
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>>
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
> 
> 
> % cat ./test-musl.zsh
> if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q "^musl"
> then
>  echo "1 libc=musl"
> else
>  echo "1 libc=glibc"
> fi
> 
> if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q '^musl'
> then
>  echo "2 libc=musl"
> else
>  echo "2 libc=glibc"
> fi
> 
> if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
> then
>  echo "3 libc=musl"
> else
>  echo "3 libc=glibc"
> fi
> 
> 
> % zsh ./test-musl.zsh
> 1 libc=glibc
> 2 libc=glibc
> 3 libc=glibc
> 
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-03-24 21:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-24 10:59 Thomas A. Schmitz
2018-03-24 11:14 ` luigi scarso
2018-03-24 12:30   ` Thomas A. Schmitz
2018-03-24 12:40     ` Hans Hagen
2018-03-24 12:40     ` Mojca Miklavec
2018-03-24 12:43       ` Hans Hagen
2018-03-24 11:15 ` Hans Hagen
2018-03-24 11:26 ` Hans Hagen
2018-03-24 12:32 ` Mojca Miklavec
2018-03-24 12:42   ` Hans Hagen
2018-03-24 12:57   ` Thomas A. Schmitz
2018-03-24 13:06     ` Arthur Reutenauer
2018-03-24 13:16       ` Thomas A. Schmitz
2018-03-24 16:44         ` Arthur Reutenauer
2018-03-24 16:51           ` Mojca Miklavec
2018-03-24 17:05             ` Thomas A. Schmitz
2018-03-24 18:10               ` Arthur Reutenauer
2018-03-24 23:55                 ` Arthur Reutenauer
2018-03-25 16:24               ` Arthur Reutenauer
2018-03-24 17:36             ` luigi scarso
2018-03-24 17:43               ` Mojca Miklavec
2018-03-24 17:47                 ` luigi scarso
2018-03-24 21:53                   ` Henri Menke [this message]
2018-03-24 23:30                     ` Arthur Reutenauer

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=4251ab75-be01-2f8f-7000-2be1d9e28b49@gmail.com \
    --to=henrimenke@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).