Skip to content

Update to Debian 11 #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ To build the system from source, use the following approach. (Requires Vagrant a

```shell
$ git clone ... && cd chaos
$ vagrant up
$ vagrant up ... (or with libvirt: $ vagrant up --provider libvirt)
$ vagrant ssh
$ rake
$ rake install
```

If all goes well, this should give you an `.iso` file as output. For more details, consult [our web site](https://chaos4ever.github.io).

If you use qemu/rsync with Vagrant, do this in the directory you ran ``vagrant up`` from:
```
$ vagrant ssh-config > ssh_config
$ rsync -avH -e "ssh -F ./ssh_config" default:/vagrant/ ./
```
Source: [https://serverfault.com/questions/699160/copy-files-from-guest-to-host-the-first-time-with-rsync-using-vagrant#699498](https://serverfault.com/questions/699160/copy-files-from-guest-to-host-the-first-time-with-rsync-using-vagrant#699498)

## License

### General
Expand Down
24 changes: 11 additions & 13 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# frozen_string_literal: true

Vagrant.configure(2) do |config|
config.vm.box = 'remram/debian-9-i386'
Vagrant.configure("2") do |config|
config.vm.box = "roboxes-x32/debian11"

# Sometimes, the default seems to be too little for this one.
config.vm.boot_timeout = 600

# When using libvirt it's usefull to explicitly tell Vagrant what method
# of folder syncing to use.
config.vm.synced_folder "./", "/vagrant", type: "rsync"
config.vm.provision 'shell', inline: <<-SHELL
set -e

# Override sources.list for faster downloads (for people outside of the US).
echo deb http://httpredir.debian.org/debian/ stretch main > /etc/apt/sources.list
echo deb-src http://httpredir.debian.org/debian/ stretch main >> /etc/apt/sources.list
echo deb http://security.debian.org/debian-security stretch/updates main >> /etc/apt/sources.list
echo deb-src http://security.debian.org/debian-security stretch/updates main >> /etc/apt/sources.list
echo deb http://httpredir.debian.org/debian/ bullseye main > /etc/apt/sources.list
echo deb-src http://httpredir.debian.org/debian/ bullseye main >> /etc/apt/sources.list
echo deb http://security.debian.org/debian-security bullseye-security main >> /etc/apt/sources.list
echo deb-src http://security.debian.org/debian-security bullseye-security main >> /etc/apt/sources.list

sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
Expand All @@ -29,14 +31,10 @@ Vagrant.configure(2) do |config|
nasm \
psmisc \
qemu \
gcc-arm-none-eabi \
xorriso \
rake

# The gcc-arm-none-eabi package is not yet available in stretch:
# https://packages.debian.org/jessie/devel/gcc-arm-none-eabi
echo deb http://httpredir.debian.org/debian/ unstable main >> /etc/apt/sources.list
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y gcc-arm-none-eabi

# Disabled for now since we don't have any Rust dependencies, and it slows things down when setting the VM up.
## We need the beta channel for the #![feature] functionality.
#curl -sSf https://static.rust-lang.org/rustup.sh > /tmp/rustup.sh && \
Expand Down
1 change: 0 additions & 1 deletion programs/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Rake.application.options.rakelib = [pwd + '/../rakelib'] if Rake.application.opt

SUBFOLDERS = %w[
cluido
modplay
].freeze

# Not yet converted to rake:
Expand Down
1 change: 1 addition & 0 deletions servers/servers.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ COMMON_CFLAGS = %W[
-Wredundant-decls
-Winline
-Werror
-Wno-error=address-of-packed-member
-Wcast-align
-Wno-cast-function-type
-Wno-pointer-sign
Expand Down
2 changes: 1 addition & 1 deletion storm/rakelib/storm.rake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ OPTIMIZATION_FLAG = ENV['RELEASE'] ? '-O3' : '-O0'

COMMON_CFLAGS =
"-Wall -Wextra -Wshadow -Wpointer-arith -Waggregate-return -Wredundant-decls \
-Winline -Werror -Wcast-align -Wsign-compare -Wmissing-declarations \
-Winline -Werror -Wno-error=address-of-packed-member -Wcast-align -Wsign-compare -Wmissing-declarations \
-Wmissing-noreturn -pipe #{OPTIMIZATION_FLAG} -fno-builtin -fno-asynchronous-unwind-tables -funsigned-char \
-g -fomit-frame-pointer -ffreestanding #{ENV['EXTRA_CFLAGS']} #{DEFINES} ".freeze

Expand Down