From 7c0b50a9b555c575a5cc0ff2661f620a0f2a157b Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Tue, 17 Dec 2024 14:28:17 +0000 Subject: [PATCH] nftables: Switch to source tarball As git repo is unreliable. Signed-off-by: Thomas Parrott (cherry picked from commit 7eb76aaf8514089c7f3831daf70dfc496e987a2f) --- snapcraft.yaml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 3e4e8fec..a6e03329 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -643,11 +643,9 @@ parts: after: - libmnl - libnftnl - source: https://git.netfilter.org/nftables - # XXX: git.netfilter.org does not support depth/shallow clones - #source-depth: 1 - source-tag: v1.0.9 - source-type: git + # XXX: Netfilter's git repo is unreliable + source: https://www.netfilter.org/projects/nftables/files/nftables-1.0.9.tar.xz + source-checksum: sha256/a3c304cd9ba061239ee0474f9afb938a9bb99d89b960246f66f0c3a0a85e14cd plugin: autotools autotools-configure-parameters: - --prefix= @@ -659,15 +657,6 @@ parts: - libreadline-dev stage-packages: - libjansson4 - override-build: | - set -ex - - # Git cherry-picks - git config user.email "noreply@lists.canonical.com" - git config user.name "LXD snap builder" - - set +ex - craftctl default organize: sbin/: bin/ usr/lib/: lib/