diff --git a/virt-bootstrap.spec b/virt-bootstrap.spec index 2470851..53af94a 100644 --- a/virt-bootstrap.spec +++ b/virt-bootstrap.spec @@ -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 - 1.1.1-15 +- Fix built for Python 3.11 + * Wed Jun 15 2022 Python Maint - 1.1.1-14 - Rebuilt for Python 3.11 diff --git a/virt_bootstrap-Fix-build-with-Python-3.11.patch b/virt_bootstrap-Fix-build-with-Python-3.11.patch new file mode 100644 index 0000000..7386f4d --- /dev/null +++ b/virt_bootstrap-Fix-build-with-Python-3.11.patch @@ -0,0 +1,30 @@ +From 418f8ff6c843ce8f5fd3de5251c913f97b1e7b80 Mon Sep 17 00:00:00 2001 +From: Radostin Stoyanov +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 +--- + 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 +