public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ibus] autotool: Update CI with GSK_RENDERER=cairo and required no-overview
@ 2026-05-31  2:08 Takao Fujiwara
  0 siblings, 0 replies; only message in thread
From: Takao Fujiwara @ 2026-05-31  2:08 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ibus
            Branch : autotool
            Commit : 5906280eb29eef1450c07ab68a8779d5e14f56eb
            Author : Takao Fujiwara <tfujiwar@redhat.com>
            Date   : 2024-11-14T12:51:06+09:00
            Stats  : +22/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ibus/c/5906280eb29eef1450c07ab68a8779d5e14f56eb?branch=autotool

            Log:
            Update CI with GSK_RENDERER=cairo and required no-overview

- Export GSK_RENDERER=cairo in CentOS CI only for GDK Vulkan as a workaround
- Add Require: gnome-shell-extension-no-overview to RHEL

---
diff --git a/ibus.spec b/ibus.spec
index b183f6c..82089d1 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -67,7 +67,7 @@ Summary:        Intelligent Input Bus for Linux OS
 License:        LGPL-2.1-or-later
 URL:            https://github.com/ibus/%name/wiki
 Source0:        https://github.com/ibus/%name/releases/download/%{source_version}/%{name}-%{source_version}.tar.gz
-Source1:        https://github.com/ibus/%name/releases/download/%{source_version}/%{name}.tar.gz.sum
+Source1:        https://github.com/ibus/%name/releases/download/%{source_version}/%{name}-%{source_version}.tar.gz.sum#/%{name}.tar.gz.sum
 Source2:        %{name}-xinput
 Source3:        %{name}.conf.5
 # Patch0:         %%{name}-HEAD.patch
@@ -301,7 +301,7 @@ The ibus-devel-docs package contains developer documentation for IBus
 %package desktop-testing
 Summary:        Wrapper of InstalledTests Runner for IBus
 Requires:       %{name} = %{version}-%{release}
-%if 0%{?fedora:1}%{?rhel:0}
+%if (0%{?fedora} || 0%{?rhel} > 9)
 # Use no-overview mode in CI to get input focus
 BuildRequires:  gnome-shell-extension-no-overview
 Requires:       gnome-shell-extension-no-overview
@@ -436,6 +436,26 @@ HAS_PREFIX=$(grep prefix $RPM_BUILD_ROOT%{_bindir}/ibus-setup | wc -l)
 [ x"$HAS_PREFIX" == x1 ] && \
   sed -i -e '/prefix/d' $RPM_BUILD_ROOT%{_bindir}/ibus-setup
 
+# Export GSK_RENDERER=cairo in CentOS only as a workaround.
+# Not sure but seems mesa-vulkan-drivers is not configured correctly in
+# CentOS and GTK is failed in CentOS CI:
+# ibus-compose:10228: Gdk-WARNING **:
+# Vulkan: ../src/imagination/vulkan/pvr_device.c:854:
+# Failed to enumerate drm devices
+# (errno 2: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος)
+# (VK_ERROR_INITIALIZATION_FAILED)
+# https://www.linux.org.ru/forum/desktop/17554505
+%if 0%{?rhel} > 9
+if [ -f /etc/centos-release ] ; then
+  sed -i.bak -e '/^TESTING_RUNNER=/a\
+export GSK_RENDERER=cairo' \
+    $RPM_BUILD_ROOT%{_libexecdir}/ibus-desktop-testing-autostart
+  diff $RPM_BUILD_ROOT%{_libexecdir}/ibus-desktop-testing-autostart* || :
+  ls -l $RPM_BUILD_ROOT%{_libexecdir}/ibus-desktop-testing-autostart*
+  rm $RPM_BUILD_ROOT%{_libexecdir}/ibus-desktop-testing-autostart.bak
+fi
+%endif
+
 desktop-file-install --delete-original          \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   $RPM_BUILD_ROOT%{_datadir}/applications/*

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-31  2:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31  2:08 [rpms/ibus] autotool: Update CI with GSK_RENDERER=cairo and required no-overview Takao Fujiwara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox