Fix built for Python 3.11
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
ad84f03dfe
commit
d713dd608c
2 changed files with 37 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
Name: virt-bootstrap
|
||||
Version: 1.1.1
|
||||
Release: 14%{?dist}
|
||||
Release: 15%{?dist}
|
||||
Summary: System container rootfs creation tool
|
||||
|
||||
License: GPLv3+
|
||||
|
|
@ -9,6 +9,9 @@ Source0: http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{versi
|
|||
|
||||
# Upstream patches
|
||||
|
||||
# Fix for Python 3.11
|
||||
Patch100: virt_bootstrap-Fix-build-with-Python-3.11.patch
|
||||
|
||||
BuildRequires: /usr/bin/pod2man
|
||||
BuildRequires: /usr/bin/git
|
||||
BuildRequires: python3-devel
|
||||
|
|
@ -61,6 +64,9 @@ done
|
|||
%{_mandir}/man1/virt-bootstrap*
|
||||
|
||||
%changelog
|
||||
* Mon Jun 27 2022 Radostin Stoyanov <rstoyanov@fedoraproject.org> - 1.1.1-15
|
||||
- Fix built for Python 3.11
|
||||
|
||||
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.1.1-14
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
|
|
|
|||
30
virt_bootstrap-Fix-build-with-Python-3.11.patch
Normal file
30
virt_bootstrap-Fix-build-with-Python-3.11.patch
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
From 418f8ff6c843ce8f5fd3de5251c913f97b1e7b80 Mon Sep 17 00:00:00 2001
|
||||
From: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
||||
Date: Mon, 27 Jun 2022 19:32:52 +0100
|
||||
Subject: [PATCH] virt_bootstrap: Fix build with Python 3.11
|
||||
|
||||
Changed in version 3.11: codeset parameter is removed.
|
||||
https://docs.python.org/3.11/library/gettext.html
|
||||
|
||||
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
||||
---
|
||||
src/virtBootstrap/virt_bootstrap.py | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py
|
||||
index b486ac3..1a86cc4 100755
|
||||
--- a/src/virtBootstrap/virt_bootstrap.py
|
||||
+++ b/src/virtBootstrap/virt_bootstrap.py
|
||||
@@ -45,8 +45,7 @@ gettext.bindtextdomain("virt-bootstrap", "/usr/share/locale")
|
||||
gettext.textdomain("virt-bootstrap")
|
||||
try:
|
||||
gettext.install("virt-bootstrap",
|
||||
- localedir="/usr/share/locale",
|
||||
- codeset='utf-8')
|
||||
+ localedir="/usr/share/locale")
|
||||
except IOError:
|
||||
try:
|
||||
import __builtin__
|
||||
--
|
||||
2.36.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue