-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade: python-rtslib version to 2.1.76
- Loading branch information
1 parent
81fb40a
commit 4cce899
Showing
5 changed files
with
123 additions
and
30 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
SPECS-EXTENDED/python-rtslib/0002-rtslib-explicitely-import-kmod.error-and-kmod.Kmod.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From c1378f28f7abce6f8993a43c34d5e287b092bb1e Mon Sep 17 00:00:00 2001 | ||
From: Maurizio Lombardi <[email protected]> | ||
Date: Wed, 2 Aug 2023 12:00:41 +0200 | ||
Subject: [PATCH] rtslib: explicitely import "kmod.error" and "kmod.Kmod" | ||
|
||
While updating python-kmod to be able to be compiled with Cython 3.0, | ||
I encountered a failure due to rtslib not finding the "error" and "Kmod" | ||
modules. | ||
|
||
$ targetcli | ||
module 'kmod' has no attribute 'error' | ||
|
||
If I explicitely import those two modules the failure goes away. | ||
|
||
Signed-off-by: Maurizio Lombardi <[email protected]> | ||
--- | ||
rtslib/utils.py | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/rtslib/utils.py b/rtslib/utils.py | ||
index 61e486a80836..630ebb721465 100644 | ||
--- a/rtslib/utils.py | ||
+++ b/rtslib/utils.py | ||
@@ -423,6 +423,8 @@ def modprobe(module): | ||
|
||
try: | ||
import kmod | ||
+ import kmod.error | ||
+ import kmod.Kmod | ||
except ImportError: | ||
process = subprocess.Popen(("modprobe", module), | ||
stdout=subprocess.PIPE, | ||
-- | ||
2.39.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"Signatures": { | ||
"rtslib-fb-2.1.fb69.tar.gz": "9c87978af5ab109a6068d78f18d08bc63d63bd86c03f9bd46539c5bf2f02236b", | ||
"target.service": "98d293a0e6061310551f735f768f0bb8bbca273762e2051782be723544b5da6b" | ||
"python-rtslib-fb-2.1.76.tar.gz": "ac15c113d09209c7b0d14d94a12ed88205a7c2feadd1096f573049fd737f7e74" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,16 @@ | |
%bcond_with apidocs | ||
|
||
Name: python-rtslib | ||
License: ASL 2.0 | ||
Summary: API for Linux kernel LIO SCSI target | ||
Version: 2.1.fb69 | ||
Release: 9%{?dist} | ||
License: Apache-2.0 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
Summary: API for Linux kernel LIO SCSI target | ||
Version: 2.1.76 | ||
Release: 10%{?dist} | ||
URL: https://github.com/open-iscsi/%{oname} | ||
Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz | ||
Source1: target.service | ||
Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz#/python-%{oname}-%{version}.tar.gz | ||
Patch0: 0001-disable-xen_pvscsi.patch | ||
Patch1: 0002-rtslib-explicitely-import-kmod.error-and-kmod.Kmod.patch | ||
BuildArch: noarch | ||
%if %{with apidocs} | ||
BuildRequires: epydoc | ||
|
@@ -72,7 +72,8 @@ on system restart. | |
|
||
%prep | ||
%setup -q -n %{oname}-%{version} | ||
%patch 0 -p1 | ||
%patch -P0 -p1 | ||
%patch -P1 -p1 | ||
|
||
|
||
%build | ||
|
@@ -93,7 +94,7 @@ mkdir -p %{buildroot}%{_unitdir} | |
mkdir -p %{buildroot}%{_sysconfdir}/target/backup | ||
mkdir -p %{buildroot}%{_localstatedir}/target/pr | ||
mkdir -p %{buildroot}%{_localstatedir}/target/alua | ||
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/target.service | ||
install -m 644 systemd/target.service %{buildroot}%{_unitdir}/target.service | ||
install -m 644 doc/targetctl.8 %{buildroot}%{_mandir}/man8/ | ||
install -m 644 doc/saveconfig.json.5 %{buildroot}%{_mandir}/man5/ | ||
|
||
|
@@ -129,8 +130,81 @@ install -m 644 doc/saveconfig.json.5 %{buildroot}%{_mandir}/man5/ | |
%endif | ||
|
||
%changelog | ||
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 2.1.fb69-9 | ||
- Initial CBL-Mariner import from Fedora 32 (license: MIT). | ||
* Mon Dec 23 2024 Akhila Guruju <[email protected]> - 2.1.76-10 | ||
- Initial Azure Linux import from Fedora 41 (license: MIT). | ||
- License verified. | ||
|
||
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 2.1.76-9 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild | ||
|
||
* Fri Jun 07 2024 Python Maint <[email protected]> - 2.1.76-8 | ||
- Rebuilt for Python 3.13 | ||
|
||
* Mon Feb 12 2024 Maurizio Lombardi <[email protected]> - 2.1.76-7 | ||
- Migrated to SPDX license | ||
|
||
* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 2.1.76-6 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
||
* Mon Jan 22 2024 Fedora Release Engineering <[email protected]> - 2.1.76-5 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
||
* Wed Aug 02 2023 Maurizio Lombardi <[email protected]> - 2.1.76-4 | ||
- Fix kmod import | ||
|
||
* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 2.1.76-3 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild | ||
|
||
* Fri Jul 07 2023 Python Maint <[email protected]> - 2.1.76-2 | ||
- Rebuilt for Python 3.12 | ||
|
||
|
||
* Tue Jun 06 2023 Maurizio Lombardi <[email protected]> - 2.1.76-1 | ||
- Rebase to version 2.1.76 | ||
|
||
* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 2.1.75-4 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild | ||
|
||
* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 2.1.75-3 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild | ||
|
||
* Mon Jun 13 2022 Python Maint <[email protected]> - 2.1.75-2 | ||
- Rebuilt for Python 3.11 | ||
|
||
* Mon May 16 2022 Maurizio Lombardi <[email protected]> - 2.1.75-1 | ||
- Update to new upstream version | ||
|
||
* Wed Mar 30 2022 Maurizio Lombardi <[email protected]> - 2.1.74-7 | ||
- Add support for cpus_allowed_list attribute | ||
|
||
* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 2.1.74-6 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild | ||
|
||
* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 2.1.74-5 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild | ||
|
||
* Fri Jun 04 2021 Python Maint <[email protected]> - 2.1.74-4 | ||
- Rebuilt for Python 3.10 | ||
|
||
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <[email protected]> - 2.1.74-3 | ||
- Rebuilt for updated systemd-rpm-macros | ||
See https://pagure.io/fesco/issue/2583. | ||
|
||
* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 2.1.74-2 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild | ||
|
||
* Mon Aug 31 2020 Maurizio Lombardi <[email protected]> - 2.1.74-1 | ||
- New upstream version | ||
|
||
* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 2.1.73-2 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild | ||
|
||
* Thu Jun 25 2020 Matt Coleman <[email protected]> - 2.1.73-1 | ||
- New upstream version | ||
- Use upstream's systemd service | ||
|
||
* Tue May 26 2020 Miro Hrončok <[email protected]> - 2.1.fb69-9 | ||
- Rebuilt for Python 3.9 | ||
|
||
* Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 2.1.fb69-8 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters