public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Takao Fujiwara <tfujiwar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus-anthy] f44: Use PYTHON for era.py
Date: Mon, 01 Jun 2026 09:45:52 GMT [thread overview]
Message-ID: <178030715229.1.2558604809449549153.rpms-ibus-anthy-63dc712fe7fd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ibus-anthy
Branch : f44
Commit : 63dc712fe7fd48a296d94352b2ac734110df00e6
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date : 2026-06-01T18:44:49+09:00
Stats : +59/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ibus-anthy/c/63dc712fe7fd48a296d94352b2ac734110df00e6?branch=f44
Log:
Use PYTHON for era.py
---
diff --git a/ibus-anthy-HEAD.patch b/ibus-anthy-HEAD.patch
index e69de29..b9f4820 100644
--- a/ibus-anthy-HEAD.patch
+++ b/ibus-anthy-HEAD.patch
@@ -0,0 +1,58 @@
+From 4d19bf9918be970b76fefc1fb24dfd8cb433e189 Mon Sep 17 00:00:00 2001
+From: fujiwarat <takao.fujiwara1@gmail.com>
+Date: Thu, 7 May 2026 21:31:20 +0900
+Subject: [PATCH] data/Makefile: Use PYTHON for era.py
+
+Some distros do not have python3 but python3.11 for example.
+
+Closes: #48
+---
+ data/Makefile.am | 24 +++++++++++++++---------
+ 1 file changed, 15 insertions(+), 9 deletions(-)
+
+diff --git a/data/Makefile.am b/data/Makefile.am
+index c13d273..ecfe804 100644
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -85,23 +85,29 @@ endif
+ era.t: era.stamp
+
+ era.stamp:
++ make_era_t=0; \
+ if test -f $(srcdir)/era.t ; then \
+- if ! $(srcdir)/era.py --check $(srcdir)/era.t ; then \
++ if ! $(PYTHON) $(srcdir)/era.py --check $(srcdir)/era.t ; then \
+ rm $(srcdir)/era.t; \
+- $(srcdir)/era.py $(srcdir)/era.t.in \
+- --output $(builddir)/era.t; \
+- echo "Generate era.t"; \
++ make_era_t=1; \
+ fi; \
++ else \
++ make_era_t=1; \
++ fi; \
++ if test $$make_era_t -eq 1 ; then \
++ if ! $(PYTHON) $(srcdir)/era.py $(srcdir)/era.t.in \
++ --output $(builddir)/era.t ; then \
++ exit 1; \
++ fi; \
++ echo "Generate era.t"; \
+ fi; \
+ touch era.stampT; \
+ mv era.stampT era.stamp;
+
+ check:
+- if test -f $(srcdir)/era.t ; then \
+- $(srcdir)/era.py --check $(srcdir)/era.t; \
+- else \
+- $(srcdir)/era.py --check $(builddir)/era.t; \
+- fi
++ file=$(builddir)/era.t; \
++ test -f "$$file" || file=$(srcdir)/era.t; \
++ $(PYTHON) $(srcdir)/era.py --check "$$file";
+
+ install-data-hook:
+ if test -z "$(DESTDIR)"; then \
+--
+2.54.0
+
diff --git a/ibus-anthy.spec b/ibus-anthy.spec
index 3293746..4babb84 100644
--- a/ibus-anthy.spec
+++ b/ibus-anthy.spec
@@ -27,6 +27,7 @@ Source1: https://github.com/ibus/%{name}/releases/download/%{version}/%{n
# Upstreamed patches.
# Patch0: %%{name}-HEAD.patch
+Patch0: %{name}-HEAD.patch
Patch1: %{name}-1938129-default-hiragana.patch
BuildRequires: anthy-unicode-devel
reply other threads:[~2026-06-01 9:45 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=178030715229.1.2558604809449549153.rpms-ibus-anthy-63dc712fe7fd@fedoraproject.org \
--to=tfujiwar@redhat.com \
--cc=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