[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OS detection wrong on Alpine Linux 3.10

From: Bruno Haible
Subject: OS detection wrong on Alpine Linux 3.10
Date: Sat, 19 Sep 2020 15:30:54 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; )

The value of $host_os, determined by the current config.guess, is:
  - On Alpine Linux 3.9: linux-musl
  - On Alpine Linux 3.10: linux-gnu
  - On Alpine Linux 3.12: linux-musl

The reason is that config.guess tests 'ldd --version'. However, in
Alpine Linux 3.10, /usr/bin/ldd has been replaced with a shell script
that does not understand the --version option:

$ cat /usr/bin/ldd
exec /lib/ --list -- "$@"
$ /usr/bin/ldd --version 2>&1
/lib/ cannot load --version: No such file or directory

Find attached a proposed fix. More details in


Attachment: 0001-config.guess-Fix-determination-of-musl-libc-on-Alpin.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]