forked from pool/python-rtslib-fb
- Update to version v2.2.2:
* Explicitly set build target wheel packages * Fix the program name in pyproject.toml * Fix and update pre-commit ruf check * Add PyPA publish and pre-commit check workflows * Add rtslib_fb import compability * Silently ignore OSError on close * fixup! Fix various issues found by ruff linter rules * Add ruff rules, pre-commit config * Convert codebase to pathlib * Fix various issues found by ruff linter rules * Refactor code to Python>=3.9 to pass pyupgrade * Fix issues found by ruff pep8-naming rules * Fix issues found by ruff pycodestyle rules * Use f-strings * Fixing issues found by ruff Pyflakes rules * Move to PEP-621; Drop -fb from module name * rtslib: explicitely import "kmod.error" and "kmod.Kmod" * rtslib/LUN: add some ALUA property Also, updated the SPEC file, and removed patch no longer needed, since the problem is no longer present: * rtslib-Fix-handling-of-sysfs-RW-attrs-that-are-actually-RO.patch Added three commits, one from upstream, the others submitted there: * Install-targetctl-as-an-entrypoint.patch (added from upstream) * Remove-use-of-usr-bin-python.patch (submitted upstream) * Fix-issue-with-Path-open-needs-parenthesis.patch (submitted upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rtslib-fb?expand=0&rev=81
This commit is contained in:
26
Remove-use-of-usr-bin-python.patch
Normal file
26
Remove-use-of-usr-bin-python.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From 631685f400d3bd170a449503ce062a82c58d823a Mon Sep 17 00:00:00 2001
|
||||
From: Lee Duncan <lduncan@suse.com>
|
||||
Date: Mon, 24 Mar 2025 10:00:21 -0700
|
||||
Subject: [PATCH] Remove use of /usr/bin/python
|
||||
|
||||
The targetctl.py script was using /usr/bin/python, even
|
||||
though this package has been ported to python3.
|
||||
|
||||
This makes installing it on modern systems fail.
|
||||
---
|
||||
rtslib/targetctl.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/rtslib/targetctl.py b/rtslib/targetctl.py
|
||||
index e304be0d2f38..124d03f3c1fb 100755
|
||||
--- a/rtslib/targetctl.py
|
||||
+++ b/rtslib/targetctl.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/python
|
||||
+#!/usr/bin/python3
|
||||
'''
|
||||
targetctl
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
Reference in New Issue
Block a user