Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
redox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ross Schulman
redox
Commits
e062980e
Commit
e062980e
authored
1 year ago
by
Ribbon
Browse files
Options
Downloads
Patches
Plain Diff
Add Lua/g++ packages and format the commands vertically
parent
7c9a6721
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap.sh
+125
-5
125 additions, 5 deletions
bootstrap.sh
with
125 additions
and
5 deletions
bootstrap.sh
+
125
−
5
View file @
e062980e
...
...
@@ -143,6 +143,7 @@ osx_macports()
install_macports_pkg
"automake"
install_macports_pkg
"scons"
install_macports_pkg
"gmake"
install_macports_pkg
"lua"
}
###############################################################################
...
...
@@ -205,6 +206,7 @@ osx_homebrew()
install_brew_pkg
"gpatch"
install_brew_pkg
"automake"
install_brew_pkg
"scons"
install_brew_pkg
"lua"
install_brew_pkg
"redox-os/gcc_cross_compilers/x86_64-elf-gcc"
"x86_64-elf-gcc"
}
...
...
@@ -270,6 +272,7 @@ freebsd()
install_freebsd_pkg
"patch"
install_freebsd_pkg
"automake"
install_freebsd_pkg
"scons"
install_freebsd_pkg
"lua54"
set
+xe
}
...
...
@@ -281,7 +284,46 @@ freebsd()
archLinux
()
{
echo
"Detected Arch Linux"
packages
=
"cmake fuse git gperf perl-html-parser nasm wget texinfo bison flex po4a autoconf curl file patch automake scons waf expat gmp libtool libpng libjpeg-turbo sdl12-compat m4 pkgconf po4a syslinux meson python python-mako make xdg-utils zip unzip llvm clang perl doxygen"
packages
=
"cmake
\
fuse
\
git
\
gperf
\
perl-html-parser
\
nasm
\
wget
\
texinfo
\
bison
\
flex
\
po4a
\
autoconf
\
curl
\
file
\
patch
\
automake
\
scons
\
waf
\
expat
\
gmp
\
libtool
\
libpng
\
libjpeg-turbo
\
sdl12-compat
\
m4
\
pkgconf
\
po4a
\
syslinux
\
meson
\
python
\
python-mako
\
make
\
xdg-utils
\
zip
\
unzip
\
llvm
\
clang
\
perl
\
doxygen
\
lua"
if
[
"
$1
"
==
"qemu"
]
;
then
packages
=
"
$packages
qemu"
elif
[
"
$1
"
==
"virtualbox"
]
;
then
...
...
@@ -351,7 +393,9 @@ ubuntu()
llvm
\
clang
\
perl
\
doxygen"
doxygen
\
g++
\
lua5.4"
# Not availible for at least ARM hosts
case
"
$host_arch
"
in
x86
*
|
i?86
)
pkgs
=
"
$pkgs
libc6-dev-i386 syslinux-utils"
;;
...
...
@@ -403,7 +447,57 @@ fedora()
fi
fi
# Use rpm -q <package> to check if it's already installed
PKGS
=
$(
for
pkg
in
file autoconf vim bison flex genisoimage gperf glibc-devel.i686 expat expat-devel fuse-devel fuse3-devel gmp-devel libpng-devel perl perl-HTML-Parser libtool libjpeg-turbo-devel SDL2_ttf-devel sdl12-compat-devel m4 nasm po4a syslinux texinfo ninja-build meson waf python3-mako make gcc gcc-c++ openssl patch automake perl-Pod-Html perl-FindBin gperf curl gettext-devel perl-Pod-Xhtml pkgconf-pkg-config cmake llvm zip unzip lua luajit make clang doxygen
;
do
rpm
-q
$pkg
>
/dev/null
||
echo
$pkg
;
done
)
PKGS
=
$(
for
pkg
in
file
\
autoconf
\
vim
\
bison
\
flex
\
genisoimage
\
gperf
\
glibc-devel.i686
\
expat
\
expat-devel
\
fuse-devel
\
fuse3-devel
\
gmp-devel
\
libpng-devel
\
perl
\
perl-HTML-Parser
\
libtool
\
libjpeg-turbo-devel
\
SDL2_ttf-devel
\
sdl12-compat-devel
\
m4
\
nasm
\
po4a
\
syslinux
\
texinfo
\
ninja-build
\
meson
\
waf
\
python3-mako
\
make
\
gcc
\
gcc-c++
\
openssl
\
patch
\
automake
\
perl-Pod-Html
\
perl-FindBin
\
gperf
\
curl
\
gettext-devel
\
perl-Pod-Xhtml
\
pkgconf-pkg-config
\
cmake
\
llvm
\
zip
\
unzip
\
lua
\
luajit
\
make
\
clang
\
doxygen
;
do
rpm
-q
$pkg
>
/dev/null
||
echo
$pkg
;
done
)
# If the list of packages is not empty, install missing
COUNT
=
$(
echo
$PKGS
|
wc
-w
)
if
[
$COUNT
-ne
0
]
;
then
...
...
@@ -481,7 +575,8 @@ suse()
unzip
\
llvm
\
clang
\
doxygen
doxygen
\
lua54
}
##############################################################################
...
...
@@ -549,7 +644,32 @@ solus()
echo
"Installing necessary build tools..."
#if guards are not necessary with eopkg since it does nothing if latest version is already installed
sudo
eopkg it fuse-devel git gcc g++ libgcc-32bit libstdc++-32bit nasm make cmake binutils-gold glibc-devel pkg-config fuse2-devel linux-headers rsync automake autoconf m4 libtool-devel po4a patch bison flex gperf libpng-devel perl-html-parser
sudo
eopkg it fuse-devel
\
git
\
gcc
\
g++
\
libgcc-32bit
\
libstdc++-32bit
\
nasm
\
make
\
cmake
\
binutils-gold
\
glibc-devel
\
pkg-config
\
fuse2-devel
\
linux-headers
\
rsync
\
automake
\
autoconf
\
m4
\
libtool-devel
\
po4a
\
patch
\
bison
\
flex
\
gperf
\
libpng-devel
\
perl-html-parser
}
######################################################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment