From 57cf148d2bf85622fa8375e2bed7734e19af7390 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Tue, 9 Jul 2024 13:42:12 +0200 Subject: [PATCH] snapcraft: 8.2.0 -> 8.2.12 --- pkgs/by-name/sn/snapcraft/os-platform.patch | 12 ++---------- pkgs/by-name/sn/snapcraft/package.nix | 8 ++++++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/sn/snapcraft/os-platform.patch b/pkgs/by-name/sn/snapcraft/os-platform.patch index 0b441ec8d4bc..d3c914e73c7b 100644 --- a/pkgs/by-name/sn/snapcraft/os-platform.patch +++ b/pkgs/by-name/sn/snapcraft/os-platform.patch @@ -1,16 +1,8 @@ diff --git a/snapcraft/utils.py b/snapcraft/utils.py -index 511effe2..4af5a029 100644 +index 999a64ec..4f38b4cd 100644 --- a/snapcraft/utils.py +++ b/snapcraft/utils.py -@@ -15,6 +15,7 @@ - # along with this program. If not, see . - - """Utilities for snapcraft.""" -+ - import multiprocessing - import os - import pathlib -@@ -91,7 +92,7 @@ def get_os_platform( +@@ -94,7 +94,7 @@ def get_os_platform( release = platform.release() machine = platform.machine() diff --git a/pkgs/by-name/sn/snapcraft/package.nix b/pkgs/by-name/sn/snapcraft/package.nix index 5fd0b80ce6ec..9baf72492601 100644 --- a/pkgs/by-name/sn/snapcraft/package.nix +++ b/pkgs/by-name/sn/snapcraft/package.nix @@ -11,7 +11,7 @@ }: python3Packages.buildPythonApplication rec { pname = "snapcraft"; - version = "8.2.5"; + version = "8.2.12"; pyproject = true; @@ -24,7 +24,7 @@ python3Packages.buildPythonApplication rec { owner = "canonical"; repo = "snapcraft"; rev = "refs/tags/${version}"; - hash = "sha256-+1Gzseuq402m5FvlRAGXl7Lsy2VnRmd1cXNXhkMDDDE="; + hash = "sha256-1PwIbMweeYGi+jLfhFB3LYThqaN2VW7zdyzjD1m57ow="; }; patches = [ @@ -67,6 +67,9 @@ python3Packages.buildPythonApplication rec { substituteInPlace snapcraft/elf/elf_utils.py \ --replace-fail 'arch_linker_path = Path(arch_config.dynamic_linker)' \ 'return str(Path("${glibc}/lib/ld-linux-x86-64.so.2"))' + + substituteInPlace snapcraft_legacy/internal/xattrs.py \ + --replace-fail 'distutils.util' 'setuptools.dist' ''; buildInputs = [ makeWrapper ]; @@ -126,6 +129,7 @@ python3Packages.buildPythonApplication rec { pytest-subprocess pytestCheckHook responses + setuptools ] ++ [ git squashfsTools