From 2644596728d57dbe6ffb5be0e440815df05ca263 Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Tue, 17 Jan 2023 17:04:07 +0900 Subject: [PATCH] Resolves: #2160957 Fix st_mode in struct stat of registry file with rpm -Va --- ibus.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ibus.spec b/ibus.spec index 830443e..ba16a10 100644 --- a/ibus.spec +++ b/ibus.spec @@ -50,7 +50,7 @@ Name: ibus Version: 1.5.27 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Intelligent Input Bus for Linux OS License: LGPL-2.0-or-later URL: https://github.com/ibus/%name/wiki @@ -373,6 +373,10 @@ done install -pm 644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_xinputconf} install -m 755 -d $RPM_BUILD_ROOT%pkgcache/bus +# `rpm -Vaq ibus` compare st_mode of struct stat with lstat(2) and +# st_mode of the RPM cache and if the file does not exist, st_mode of +# RPM cache is o0100000 while the actual st_mode is o0100644. +touch $RPM_BUILD_ROOT%pkgcache/bus/registry # install .desktop files %if %with_python2 @@ -554,6 +558,9 @@ dconf update || : %{_datadir}/installed-tests/ibus %changelog +* Tue Jan 17 2023 Takao Fujiwara - 1.5.27-12 +- Resolves: #2160957 Fix st_mode in struct stat of registry file with rpm -Va + * Thu Jan 12 2023 Takao Fujiwara - 1.5.27-11 - Refactor surrounding text warning