]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: build an upstream version of systemd-nspawn 18516/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Feb 2021 16:06:25 +0000 (17:06 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 26 Feb 2021 16:06:25 +0000 (17:06 +0100)
Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is
required, since current Arch's glibc implements faccessat() via
faccessat2().

.github/workflows/mkosi.yml

index c0dd8c6e55eed652fc5614fe27c0a03c3f51e1ea..2c9630dec894a6e7fe0942d4fc5784b98223fcc7 100644 (file)
@@ -32,6 +32,19 @@ jobs:
     - name: Symlink
       run: ln -s .mkosi/mkosi.${{ matrix.distro }} mkosi.default
 
+    # Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is
+    # required, since current Arch's glibc implements faccessat() via faccessat2().
+    - name: Update systemd-nspawn
+      if: ${{ matrix.distro == 'arch' }}
+      run: |
+        echo "deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
+        sudo apt update
+        sudo apt build-dep systemd
+        meson build
+        ninja -C build
+        sudo ln -svf $PWD/build/systemd-nspawn `which systemd-nspawn`
+        systemd-nspawn --version
+
     - name: Build ${{ matrix.distro }}
       run: sudo python3 -m mkosi --password= --qemu-headless build