From: Daan De Meyer Date: Wed, 18 Oct 2023 13:17:56 +0000 (+0200) Subject: action: Build newer xfsprogs X-Git-Tag: v19~68^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=933ec269aad13749ae86f52999a43adfcb470557;p=thirdparty%2Fmkosi.git action: Build newer xfsprogs Support for handling filenames with spaces in mkfs.xfs was only added in a recent version of xfsprogs so build it from source for now. --- diff --git a/action.yaml b/action.yaml index a207b343c..e4e2ebe34 100644 --- a/action.yaml +++ b/action.yaml @@ -87,6 +87,31 @@ runs: $BINARY --version done + # Make sure we have mkfs.xfs that can handle spaces in protofiles. + # TODO: Drop when we move to the next Ubuntu LTS. + - name: Update xfsprogs + shell: bash + working-directory: ${{ github.action_path }} + run: | + sudo apt-get install --assume-yes --no-install-recommends \ + make \ + gcc \ + autoconf \ + automake \ + libtool \ + libdevmapper-dev \ + libblkid-dev \ + libicu-dev \ + libedit-dev \ + libinih-dev \ + liburcu-dev \ + uuid-dev + + git clone --single-branch --branch v6.4.0 https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git + cd xfsprogs-dev + make + sudo make install + - name: Install shell: bash run: sudo ln -svf ${{ github.action_path }}/bin/mkosi /usr/bin/mkosi