Bug 1221771

Summary: error message: "gtk-update-icon-cache: The generated cache was invalid" caused by package zypp-gui
Product: [openSUSE] openSUSE Distribution Reporter: Giacomo Comes <comes>
Component: OtherAssignee: xiaoguang wang <xiaoguang.wang>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Giacomo Comes 2024-03-20 16:19:59 UTC
When installing different packages I see the following error message:

gtk-update-icon-cache: The generated cache was invalid.
warning: %triggerin(gtk3-tools-3.24.34-150400.3.6.1.x86_64) scriptlet failed, exit status 1

This happens after installing the package zypp-gui
because such package installs some icons in
/usr/share/icons/hicolor/16x16/places
that have spaces in their name.

The issue was fixed upstream in zypp-gui since version 0.2.0
therefore tumbleweed is not affected by this bug.
But Leap 15.5 and 15.6 are.

There are two possible ways to fix the issue in Leap:
1) upgrade zypp-gui to version 0.2.0 or later
2) modify the spec file in this way:

 %prep
 %autosetup
+for i in data/icons/country/*\ * ; do mv "$i" ${i// /.} ; done
 
 %build
Comment 1 OBSbugzilla Bot 2024-06-28 07:35:04 UTC
This is an autogenerated message for OBS integration:
This bug (1221771) was mentioned in
https://build.opensuse.org/request/show/1183796 15.6 / zypp-gui
https://build.opensuse.org/request/show/1183799 15.5 / zypp-gui