Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
following-development — instructions for following developmentDESCRIPTION
This document is a list of changes that affect the ability to build and run the latest Sortix source code, when doing native development(7) or cross-development(7). The list is in reverse chronological order. The system has policies that handle incompatible changes gracefully.cd /src # system source code location man share/man/man7/following-development.7
CHANGES
Add networking stack
The network stack has been implemented in the kernel and exposed through additions to the system call interface.Add daemon support to init(8)
init(8) has gained daemon(7) support with the new init(5) configuration format.Add ports to the Sortix repository
The ports have been moved from the porttix/srctix repositories into the ports/ subdirectory in the main repository. The upstream releases are downloaded from the appropriate mirror when built and patched with the patches in the ports/ subdirectory.cd /src/tix && make clean && make install
Implement file descriptor passing
The SCM_RIGHTS control message have been implemented, allowing file descriptors to be passed over AF_UNIX sockets. This is a minor compatible ABI change.Implement threading primitives that truly sleep
The futex(2) system system call for efficient thread waiting has been added. The exit_thread(2) system call has gained a EXIT_THREAD_FUTEX_WAKE flag for waking a single waiter on a futex. This is a minor compatible ABI change.Fix system upgrade leaking files
sysupgrade(8) and sysmerge(8) will now delete files that no longer exist in the new system and ports. However, files may already have leaked if a 1.0 installation was upgraded to a development build prior to this change. An upgrade hook will delete any well known leaked files.Fix /tix/manifest permissions in installations
The /tix/manifest directory was accidentally installed by sysinstall(8) as mode 6603 instead of 7555. This problem is fixed with an upgrade hook.Add socket(2)
The /dev/net virtual filesystem for socket creation has been removed in favor of adding an actual socket(2) system call. This is a major incompatible ABI change. Only Unix sockets were exposed this way. In the base system, sf(1) is the only program with Unix socket capabilities. Ports using Unix sockets must be updated. Otherwise the system is compatible except accessing Unix sockets fails with ENOENT.Add split packages and cross-bootstrapping support to tix-build(8)
tix-build(8) has gained a number of features that will soon be required in order to build certain ports. In particular, it now supports the pkg.use-bootstrap, pkg.source-package, and pkg.alias-of variables; bugs in the pkg.subdir variable have been fixed; and a --source-directory option has been added. tix-build(8) must be upgraded before building ports using any of those features.cd /src/tix && make clean && make install
Add German keyboard layout
The kblayout-compiler(1) build tool has gained support for modifier combinations used by the German keyboard layout, and the new German keyboard layout relies on this. kblayout-compiler(1) must be upgraded before building the system.cd /src/kblayout-compiler && make clean && make install
Seed kernel entropy with randomness from the previous boot
Entropy from the previous boot is now stored in /boot/random.seed. The bootloader is supposed to load this file as a multiboot module with the command line option --random-seed. The kernel will issue a security warning if it was booted without a random seed, unless the kernel command line contains --no-random-seed. The GRUB port has been updated with an improved /etc/grub.d/10_sortix script that will automatically emit the appropriate GRUB commands.module /boot/random.seed --random-seed
Modernize carray(1) and fix missing allocation checks
The carray(1) build tool has gained the -EGHot options and the build system now relies on this. carray(1) must be upgraded before building the system.cd /src/carray && make clean && make install