Bruce Leidl
f4f1f3b153
* citadel-kernel 5.15.8 -> 5.18 * adwaita-icon-theme 42.0 * ell 0.44 -> 0.50 * libnma 1.8.30 -> 1.8.38 * iwd 1.17 -> 1.27 * modemmanager 1.16.8 -> 1.18.6 * networkmanager 1.32.10 -> 1.36.2 * networkmanager-openvpn 1.8.14 -> 1.8.18 * accountsservice 0.6.55 -> 22.08.8 * colord-gtk 0.1.26 -> 0.3.0 * polkit 0.118 -> 0.119 * gexiv2 0.12.1 -> 0.14.0 * gjs 1.70.0 -> 1.72.0 * gnome-autoar 0.4.1 -> 0.4.3 * gnome-backgrounds 0.41.0 -> 0.42.0 * gnome-bluetooth 0.34.3 -> 42.0 * gnome-control-center 41.1 -> 42.1 * gnome-desktop 41.1 -> 42.1 * gnome-disk-utility 41.0 -> 42.0 * gnome-screenshot 40.0 -> 41.0 * gnome-session 40.1.1 -> 42.0 * gnome-settings-daemon 41.0 -> 42.1 * gnome-shell 41.1 -> 42.1 * gnome-system-monitor 41.0 -> 42.0 * gnome-terminal 3.42.1 -> 3.42.2 * gtk4 4.4.1 -> 4.6.4 * gvfs 1.48.1 -> 1.50.0 * libgweather 40.0 -> libgweather4 4.0.0 * mutter 41.1 -> 42.1 * network-manager-applet 1.18.0 -> 1.26.0 * yelp 3.36 -> 42.1 * yelp-xsl 3.36 -> 42.0 * yelp-tools 3.32.2 -> 42.0 * zenity 3.30.0 -> 3.42.1 |
||
---|---|---|
docs | ||
meta-citadel | ||
meta-gnome | ||
meta-intel@fb23bc3e66 | ||
poky@8c489602f2 | ||
realmfs-builder | ||
scripts | ||
.gitignore | ||
.gitmodules | ||
Makefile | ||
README.md | ||
setup-build-env |
Building Citadel
Set up Docker
Building citadel requires that you have Docker CE installed on the build host. The version of Docker provided by your Linux distribution will probably not work and you should follow the following instructions instead:
After installing Docker you may need to start the docker daemon.
$ systemctl start docker
If you want the docker daemon to start automatically on boot you also need to enable it.
$ systemctl enable docker
You may optionally add your user account to the docker
group so that you can issue docker commands without using
sudo.
Warning: This is more convenient but be careful because containers can be configured to share any file on the host. A user with access to the docker group can easily escalate privileges to root while the docker daemon is running.
$ sudo usermod -aG docker $USER
Building with Docker
A Makefile
is provided which only contains a couple of simple targets that execute docker commands to set up and run the
builder container.
The project uses git submodules to track openembedded layers it depends upon. After cloning this repository you will need to retrieve the dependent submodules with the following command:
$ make update-submodules
To create the builder docker image use the following command. You only need to do this one time, but if you run it again Docker will realize that the Dockerfile has not changed and do nothing.
$ make docker-image
To list available make targets, run make help
or just make
as this is the default target:
$ make help
To run a shell inside the docker build container:
$ make docker-shell
The shell will run in the build directory and be configured to run build commands with bitbake
.
To build a full citadel installer image:
$ make installer
The build will take several hours the first time, but for later builds the build system will use cached artifacts stored
in citadel/build/sstate-cache
for components that have not changed and new builds will usually only take a few minutes.
Installer Image
If the installer build completes successfully, the installer disk image can be found in citadel/build/images/citadel-installer.img
.
Write this file to a USB stick (for example /dev/sdb is the USB drive you want to write to):
# dd if=citadel/build/images/citadel-installer.img of=/dev/sdb bs=4M
The installer image is a live disk from which you can run an installer program to perform a permanent installation. To run the installer, open a citadel terminal, su to root, and run:
# /usr/libexec/citadel-installer
You can also directly specify the disk to use on the command line. Replace /dev/sda in the example with the actual disk you want to install to. You can even use the usb disk you booted the installer from!
# /usr/libexec/citadel-installer /dev/sda
Reproducible builds
Citadel is configured to reproducibly build artifacts. At this stage, we are not yet at 100% reprodubility. We have included a script to track the gaps in reproducibility.
This requires performing two independent builds of Citadel (preferably on the same host, doing this on different hosts is an exercise left up to the user).
The first build is the test build and the second build is the control build.
To compare the two, run the repro_gaps.sh
script in the scripts
directory
of this repo.
By default, it will produce a summary table showing how many packages have been built reproducibly across the test and control builds. For example:
$ ./repro_gaps.sh /home/user/src/citadel /home/user/src/citadel-control
To generate a list of the packages that were not reproducible, the script
can be run with the --output
option:
$ ./repro_gaps.sh /home/user/src/citadel /home/user/src/citadel-control --output gaps.txt