]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Update ci-arch.yml 412/head
authorJohn Pitney <john@pitney.org>
Sat, 4 Apr 2020 22:34:50 +0000 (17:34 -0500)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 14 May 2020 19:33:48 +0000 (12:33 -0700)
This installs libzstd1-dev as an additional package, then downloads and
builds libarchive, so that the resulting library supports zstd.

.github/workflows/ci-arch.yml

index 4bf0f51c5371de11802ce14f0cb2344bc866b653..be425bc133e651329793a6201891742ee9c9bc08 100644 (file)
@@ -23,7 +23,18 @@ jobs:
     - name: Update package cache
       run: sudo apt-get --assume-yes update
     - name: Install dependencies
-      run: sudo apt-get --assume-yes install systemd-container squashfs-tools e2fsprogs xfsprogs libarchive-dev libgpgme-dev libcurl4-openssl-dev asciidoc
+      run: sudo apt-get --assume-yes install systemd-container squashfs-tools e2fsprogs xfsprogs libzstd1-dev libgpgme-dev libcurl4-openssl-dev asciidoc
+    - name: Download libarchive source
+      run: |
+        wget "https://github.com/libarchive/libarchive/releases/download/v3.4.2/libarchive-3.4.2.tar.gz"
+        tar -xzf libarchive-3.4.2.tar.gz   
+    - name: Build and install libarchive to /usr/local
+      run: |
+        pushd libarchive-3.4.2
+        ./configure
+        make
+        sudo make install
+        popd
     - name: Download pacman source
       run: |
         wget "https://sources.archlinux.org/other/pacman/pacman-5.2.1.tar.gz"
@@ -33,6 +44,9 @@ jobs:
         pushd pacman-5.2.1
         # GPGME_KEYLIST_MODE_LOCATE is syntactic sugar for GPGME_KEYLIST_MODE_LOCAL and GPGME_KEYLIST_MODE_EXTERN
         sed -i 's/mode |= GPGME_KEYLIST_MODE_LOCATE;/mode |= GPGME_KEYLIST_MODE_LOCAL; mode |= GPGME_KEYLIST_MODE_EXTERN;/g' lib/libalpm/signing.c
+        export LIBARCHIVE_CFLAGS=-I/usr/local/include
+        export LIBARCHIVE_LIBS="-L/usr/local/lib -larchive"
+        export LD_LIBRARY_PATH=/usr/local/lib
         ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-doc --with-scriptlet-shell=/usr/bin/bash --with-ldconfig=/usr/bin/ldconfig
         make
         sudo make install
@@ -57,4 +71,5 @@ jobs:
         make -C "arch-install-scripts-23"
         sudo make -C "arch-install-scripts-23" PREFIX=/usr install
     - name: Build Arch Linux/${{ matrix.output_type }}
-      run: sudo env PATH="$PATH" python3 ./mkosi --debug run -d arch -t ${{ matrix.output_type }} -p tzdata -b false --default /dev/null
+      run: sudo env PATH="$PATH" LD_LIBRARY_PATH=/usr/local/lib python3 ./mkosi --debug run -d arch -t ${{ matrix.output_type }} -p tzdata -b false --default /dev/null
+