jdx / mise-usage

usage-cli plugin for mise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usage installed with mise-usage does not work on system based on old glibc

gasuketsu opened this issue · comments

Describe the bug

usage installed with mise-usage plugin does not work on system that is based on old glibc (<2.34).
For example, version of glibc in openSUSE Leap 15.5 is 2.31 and usage-x86_64-unknown-linux-gnu installed with mise-usage does not work as below.

~
❯ cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.5"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.5"
PRETTY_NAME="openSUSE Leap 15.5"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.5"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

~
❯ which usage
/home/tharada/.local/share/mise/installs/usage/latest/bin/usage

~
❯ usage --version
usage: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by usage)
usage: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by usage)
usage: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by usage)

~
❯ /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.31 (git 0a8262a1b2).
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Configured for x86_64-suse-linux.
Compiled by GNU CC version 7.5.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<http://bugs.opensuse.org>.

Steps to reproduce

On any Linux host based on glibc < 2.34

mise install usage@latest
mise use -g usage@latest
usage --version

Expected behavior

'usage' should work on any disto that's version is supported in distributor.

Screenshots

n/a

Additional context

'usage' also has musl based binary, so I think mise-usage should download and install musl based binary always when target system is linux.