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

.github/workflows/ci.yml

index e7ff2c0cf3c096cdb517414765bfb0fc9bfc3564..efad5d6ae03ff141c2614571c4c8416fe19a7bef 100644 (file)
@@ -65,6 +65,20 @@ jobs:
         NetworkVeth=yes
         EOF
 
+    # 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
+        git clone https://github.com/systemd/systemd --depth=1 && cd systemd
+        meson build
+        ninja -C build
+        sudo ln -svf $PWD/build/systemd-nspawn `which systemd-nspawn`
+        systemd-nspawn --version
+
     - name: Build ${{ matrix.distro }}/${{ matrix.format }}
       run: |
         sudo python3 -m mkosi build