Unsupported OS in bootstrap: Alpine Linux
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
I'm trying to build Redox from Alpine Linux, and the bootstrap script is incorrectly detecting it as FreeBSD.
Environment info
- Operating system: Alpine Linux
-
uname -a
: Linux UberPC-V3 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 Linux
Steps to reproduce
- Run the bootstrap script on Alpine Linux with some dependencies missing.
Behavior
- Expected behavior: Dependencies are installed automatically.
- Actual behavior:
|------------------------------------------|
|----- Welcome to the redox bootstrap -----|
|------------------------------------------|
+ echo 'FreeBSD detected!'
FreeBSD detected!
+ echo 'Installing missing packages...'
Installing missing packages...
+ install_freebsd_pkg git
+ install_bsd_pkg 'sudo pkg' git
+ PKG_MANAGER='sudo pkg'
+ PKG_NAME=git
+ BIN_NAME=
+ '[' -z ]
+ BIN_NAME=git
+ which git
+ true
+ BIN_LOCATION=
+ '[' -z ]
+ echo 'sudo pkg install git'
sudo pkg install git
+ sudo pkg install git
> pkg@4.4.4
> Error! Not more than one entry file/directory is expected
-
Proposed solution:
Add support for Alpine Linux in the bootstrap script. Its package manager is
apk
and its package repository can be browsed at https://pkgs.alpinelinux.org/packages; an example of its usage would beapk add git
.