From 51f6e989de5c602dd4f27fe50ec9fc79f211aa69 Mon Sep 17 00:00:00 2001 From: InfRandomness Date: Mon, 21 Jun 2021 22:23:39 +0200 Subject: [PATCH 1/2] Add support for building on void-linux --- bootstrap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index c326728ca..ebde2a721 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -611,6 +611,8 @@ else # FreeBSD elif hash 2>/dev/null pkg; then freebsd "$emulator" + elif hash 2>/dev/null xbps-install; then + voidlinux "$emulator" # Unsupported platform else printf "\e[31;1mFatal error: \e[0;31mUnsupported platform, please open an issue\[0m" From 5dee7df4953abbad183edd1305e8c2ecccdc4cba Mon Sep 17 00:00:00 2001 From: InfRandomness Date: Mon, 21 Jun 2021 22:23:39 +0200 Subject: [PATCH 2/2] Add support for building on void-linux --- bootstrap.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index c326728ca..a957e2340 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -392,6 +392,36 @@ solus() sudo eopkg it fuse-devel git gcc g++ libgcc-32bit libstdc++-32bit nasm make cmake } +############################################################################## +# This function takes care of installing all dependencies for building redox on +# VoidLinux +# @params: $1 the emulator to install, virtualbox or qemu +############################################################################## +voidlinux() +{ + + echo "Detected VoidLinux" + + if [ "$1" == "qemu" ]; then + if [ -z "$(which qemu-system-x86_64)" ]; then + sudo xbps-install -S qemu + else + echo "QEMU already installed!" + fi + else + if [ -z "$(which virtualbox)" ]; then + echo "Please install Virtualbox and re-run this script," + echo "or run with -e qemu" + exit + else + echo "Virtualbox already installed!" + fi + fi + + echo "Installing necessary build tools..." + sudo xbps-install -S gcc make nasm wget pkg-config fuse-devel rsync automake gettext-devel libtool po4a patch bison flex gperf libpng-devel perl-HTML-Parser +} + ###################################################################### # This function outlines the different options available for bootstrap ###################################################################### @@ -611,6 +641,8 @@ else # FreeBSD elif hash 2>/dev/null pkg; then freebsd "$emulator" + elif hash 2>/dev/null xbps-install; then + voidlinux "$emulator" # Unsupported platform else printf "\e[31;1mFatal error: \e[0;31mUnsupported platform, please open an issue\[0m"