mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
spdk: 23.09 -> 24.01
This commit is contained in:
parent
6da1795208
commit
a27e94f671
@ -1,29 +0,0 @@
|
||||
From 3f718fc1873c9c138684ea019e9bd42c9b24506c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
|
||||
Date: Tue, 28 Nov 2023 11:28:11 +0100
|
||||
Subject: [PATCH] fix setuptools installation
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
|
||||
---
|
||||
python/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/python/Makefile b/python/Makefile
|
||||
index f835daa..b41995a 100644
|
||||
--- a/python/Makefile
|
||||
+++ b/python/Makefile
|
||||
@@ -12,7 +12,7 @@ setup_cmd += --root $(DESTDIR)
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_PYDIR),)
|
||||
-setup_cmd += --install-purelib $(CONFIG_PYDIR)
|
||||
+setup_cmd += --root / --prefix $(CONFIG_PYDIR)
|
||||
purelibdir := $(CONFIG_PYDIR)
|
||||
else
|
||||
purelibdir := $(shell python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
|
||||
--
|
||||
2.42.0
|
||||
|
@ -4,6 +4,7 @@
|
||||
, python3
|
||||
, cunit
|
||||
, dpdk
|
||||
, fuse3
|
||||
, libaio
|
||||
, libbsd
|
||||
, libuuid
|
||||
@ -21,19 +22,22 @@
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "spdk";
|
||||
|
||||
version = "23.09";
|
||||
version = "24.01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spdk";
|
||||
repo = "spdk";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-P10NDa+MIEY8B3bu34Dq2keyuv2a24XV5Wf+Ah701b8=";
|
||||
sha256 = "sha256-5znYELR6WvVXbfFKAcRtJnSwAE5WHmA8v1rvZUtszS4=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3
|
||||
python3.pkgs.pip
|
||||
python3.pkgs.setuptools
|
||||
python3.pkgs.wheel
|
||||
python3.pkgs.wrapPython
|
||||
pkg-config
|
||||
ensureNewerSourcesForZipFilesHook
|
||||
];
|
||||
@ -41,6 +45,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
cunit
|
||||
dpdk
|
||||
fuse3
|
||||
jansson
|
||||
libaio
|
||||
libbsd
|
||||
@ -54,10 +59,8 @@ stdenv.mkDerivation rec {
|
||||
zlib
|
||||
];
|
||||
|
||||
patches = [
|
||||
# https://review.spdk.io/gerrit/c/spdk/spdk/+/20394
|
||||
./setuptools.patch
|
||||
./0001-fix-setuptools-installation.patch
|
||||
propagatedBuildInputs = [
|
||||
python3.pkgs.configshell
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
@ -68,13 +71,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = [
|
||||
"--with-dpdk=${dpdk}"
|
||||
"--pydir=${placeholder "out"}"
|
||||
];
|
||||
|
||||
postCheck = ''
|
||||
python3 -m spdk
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile.
|
||||
# otherwise does not find strncpy when compiling
|
||||
env.NIX_LDFLAGS = "-lbsd";
|
||||
|
@ -1,25 +0,0 @@
|
||||
From 3a72290ba7e2d71ca887225fc0eb8792ca863be2 Mon Sep 17 00:00:00 2001
|
||||
From: Jörg Thalheim <joerg@thalheim.io>
|
||||
Date: Tue, 24 Oct 2023 14:30:53 +0200
|
||||
Subject: [PATCH] python: drop deprecated distutils
|
||||
|
||||
This is scheduled for removal in python 3.12: https://docs.python.org/3/whatsnew/3.12.html
|
||||
|
||||
Change-Id: I728dc0cf4ed20f22016d3d58cca8aee3af2bcd8b
|
||||
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
|
||||
---
|
||||
|
||||
diff --git a/python/setup.py b/python/setup.py
|
||||
index 47e2104..ae4dff7 100755
|
||||
--- a/python/setup.py
|
||||
+++ b/python/setup.py
|
||||
@@ -2,8 +2,7 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright (C) 2023 Intel Corporation. All rights reserved.
|
||||
|
||||
-from distutils.core import setup
|
||||
-from setuptools import find_packages
|
||||
+from setuptools import setup, find_packages
|
||||
from spdk import __version__
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user