Skip to content

Commit 9bb6089

Browse files
matteiusclaude
andcommitted
Prevent full systemd from being pulled in during cross-arch Docker builds
Debian sid recently changed a transitive dependency to pull in the full systemd package instead of systemd-standalone-sysusers. The full systemd postinst crashes under QEMU ARM emulation (SIGSEGV in systemd 260.x), breaking all arm/v7 and arm64 cross-architecture builds. Pre-install systemd-standalone-sysusers before the main apt-get install so the sysusers virtual dependency is already satisfied and apt doesn't pull in the full systemd package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 71a0c66 commit 9bb6089

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ ENV DEBIAN_FRONTEND=noninteractive
1818

1919
# Install build dependencies including Node.js and FFmpeg dev libraries
2020
# sid ships Go 1.26+/Node 22.x/FFmpeg 8.x; trixie ships Go 1.24+/Node 20.x/FFmpeg 7.x
21-
RUN apt-get update && apt-get install -y \
21+
#
22+
# Pre-install systemd-standalone-sysusers to satisfy the sysusers virtual
23+
# dependency without pulling in the full systemd package. The full systemd
24+
# postinst crashes under QEMU ARM emulation (SIGSEGV in systemd 260.x),
25+
# breaking all cross-architecture builds.
26+
RUN apt-get update && \
27+
apt-get install -y --no-install-recommends systemd-standalone-sysusers && \
28+
apt-get install -y \
2229
git cmake build-essential pkg-config file \
2330
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev \
2431
libcurl4-openssl-dev \

0 commit comments

Comments
 (0)