Alpine's libinput, libseat, seatd, xf86-input-libinput and usbutils join the image, and seatd runs from schinit. libinput lists the keyboard and pointer as an ordinary user, Xorg now drives both through libinput, and a program linked to libseat running as schos opens seat0 through seatd, is handed /dev/input/event0 and reads its name through the descriptor. Two kernel bugs stood in the way, and both would have stopped a Wayland compositor too. The socket connect() queues for a listener was allocated with its domain at zero, so sendmsg refused SCM_RIGHTS on the accepted end: a server could receive descriptors and never send one. And sendmsg treated a control buffer longer than its messages as an error, where Linux takes a following header too short to be one as the end; seatd passes a zeroed CMSG_SPACE array with one descriptor at the front. Found with /proc/strace and a temporary kinfo in sendmsg's EINVAL sites. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EVRhxi9zpdW2uDUN4FVcao
81 lines
2.8 KiB
Text
81 lines
2.8 KiB
Text
# Alpine packages built into the apk-managed root, one per line.
|
|
#
|
|
# Edit this, then run `make alpine-lock` to resolve it, with every dependency,
|
|
# into world.lock -- exact versions and checksums. A normal build installs
|
|
# exactly what world.lock says from dist/alpine/, downloading only files it
|
|
# does not have yet, and never asks Alpine what is newer. That happens only
|
|
# when you run `make alpine-lock` again.
|
|
#
|
|
# Anything else is one `apk add` away on the running system; this list is
|
|
# what a fresh image starts with.
|
|
|
|
# The login shell. Replaces SchOS's own zsh port.
|
|
zsh
|
|
# Terminal descriptions for zsh, htop, and everything else that draws.
|
|
ncurses-terminfo-base
|
|
# The PCI and USB ID databases: lspci, fastfetch and Xorg read them.
|
|
hwdata-pci
|
|
hwdata-usb
|
|
# X on the framebuffer, with startx. /root/.xserverrc and .xinitrc (from
|
|
# mkaroot.sh) start it with -dumbSched and run Window Maker in it.
|
|
xorg-server
|
|
xf86-video-fbdev
|
|
xf86-input-evdev
|
|
xinit
|
|
# The desktop: Window Maker, a terminal for it, and a font for both.
|
|
windowmaker
|
|
xterm
|
|
font-dejavu
|
|
# Stress: terminal programs that draw, multiplex and poll. htop and btop read
|
|
# /proc hard; tmux wants ptys, sockets and signals; mc does everything at once.
|
|
htop
|
|
btop
|
|
tmux
|
|
mc
|
|
ncdu
|
|
fastfetch
|
|
# Games. In the terminal: nethack, the BSD set, and two toys. On X:
|
|
# lbreakouthd (SDL 2) and the classic X clients. Not lbreakout2: its stk.c
|
|
# hands vsnprintf a size of 511 + the prefix length, and Alpine's fortified
|
|
# headers trap on that before it loads its first image -- on Alpine too.
|
|
nethack
|
|
bsd-games
|
|
cmatrix
|
|
sl
|
|
lbreakouthd
|
|
xeyes
|
|
xclock
|
|
xcalc
|
|
# A browser: NetSurf, on GTK 3 -- glib's threads, cairo, pango, TLS. The step
|
|
# before WebKit (epiphany), which is `apk add` away.
|
|
netsurf
|
|
# curl's command line; libcurl is already here for NetSurf.
|
|
curl
|
|
# Sound for everything that speaks ALSA, SDL included: alsa-lib with the OSS
|
|
# plugin, pointed at /dev/dsp by schos-base's /etc/asound.conf. SchOS has OSS,
|
|
# not ALSA's kernel side, and SDL 3 has no OSS backend of its own.
|
|
alsa-lib
|
|
alsa-plugins
|
|
# udev: the daemon that names devices and tells Xorg (and libinput, and every
|
|
# Wayland compositor) what is plugged in. eudev is udev without systemd.
|
|
# `udevadm`, the rules, and libudev come with it.
|
|
eudev
|
|
eudev-libs
|
|
udev-init-scripts
|
|
|
|
# Privilege for ordinary users: setuid doas (opendoas), configured in /etc/doas.d.
|
|
doas
|
|
|
|
# Input and seats for Wayland: libinput turns the evdev nodes udev tagged into
|
|
# pointer, keyboard and touch events; libseat hands a compositor its devices
|
|
# without making it root, through seatd's socket (or directly when it is root).
|
|
# xf86-input-libinput is the same library for Xorg.
|
|
libinput
|
|
libinput-libs
|
|
libinput-udev
|
|
libseat
|
|
seatd
|
|
seatd-launch
|
|
xf86-input-libinput
|
|
# lsusb that reads /sys/bus/usb/devices, which busybox's does not.
|
|
usbutils
|