public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/virtme-ng] f44: Fix build on EPEL9 and enable optimized init on EPEL10
Date: Sat, 07 Nov 2026 16:09:34 GMT [thread overview]
Message-ID: <179406777424.1.1381715124245953411.rpms-virtme-ng-a7d34984d3aa@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/virtme-ng
Branch : f44
Commit : a7d34984d3aa167932160e8277ca6491368cc14c
Author : Ondrej Mosnáček <omosnacek@gmail.com>
Date : 2026-04-05T17:51:23+02:00
Stats : +18/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/virtme-ng/c/a7d34984d3aa167932160e8277ca6491368cc14c?branch=f44
Log:
Fix build on EPEL9 and enable optimized init on EPEL10
Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
---
diff --git a/virtme-ng.spec b/virtme-ng.spec
index 6216784..b32d451 100644
--- a/virtme-ng.spec
+++ b/virtme-ng.spec
@@ -1,8 +1,7 @@
%if 0%{?epel}
-# EPEL status as of 2025-01-23:
+# EPEL status as of 2026-04-05:
# EPEL 9: fails on a weird error in %%pyproject_install
-# EPEL 10: missing rust-uzers
-%bcond optimized_init 0
+%bcond optimized_init %[%epel >= 10]
# No python-mcp yet in EPEL
%bcond mcp 0
%else
@@ -73,6 +72,22 @@ virtme-ng is based on virtme, written by Andy Lutomirski <luto@kernel.org>.
%prep
%forgeautosetup -p1
+%if 0%{?epel} && 0%{?epel} < 10
+# EPEL 9: work around no PEP 604
+for file in \
+ virtme/util.py \
+ virtme/architectures.py \
+ virtme/mkinitramfs.py \
+ virtme/qemu_helpers.py \
+ virtme/commands/run.py
+do
+ sed -i \
+ -e '1i from typing import Optional' \
+ -e 's/\(:\|->\) \([a-zA-Z][^:->]*\) | None/\1 Optional[\2]/g' \
+ $file
+done
+%endif
+
%if %{with optimized_init}
# Don't strip the debuginfo - let the rpm macros do it.
sed -i 's/\["strip", /["true", /' setup.py
reply other threads:[~2026-11-07 16:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179406777424.1.1381715124245953411.rpms-virtme-ng-a7d34984d3aa@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox