Bug 1219420 - Unexpected EOF errors when installing upgrades to Vivaldi browsers - xdg-icon-resource
Summary: Unexpected EOF errors when installing upgrades to Vivaldi browsers - xdg-icon...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Simon Lees
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-31 20:29 UTC by epp
Modified: 2024-02-01 09:54 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description epp 2024-01-31 20:29:51 UTC
Upgraded my Vivaldi browsers on Tumbleweed and the following errors were displayed during the upgrade (using zypper dup):

/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
(77/78) Installing: vivaldi-stable-6.5.3206.59-1.x86_64 ................................................[done]
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
/bin/xdg-icon-resource: line 1041: unexpected EOF while looking for matching ``'
(78/78) Installing: vivaldi-snapshot-6.6.3256.4-1.x86_64 ...............................................[done]

This was discussed with a Vivaldi developer and was told the bug is in /bin/xdg-icon-resource. xdg-utils was upgraded today.

Information for package xdg-utils:
----------------------------------
Repository     : Main Repository (OSS)
Name           : xdg-utils
Version        : 1.2.0+20240130-1.1
Arch           : noarch
Vendor         : openSUSE
Installed Size : 385.0 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Comment 2 Ruarí Ødegaard 2024-02-01 09:31:17 UTC
Here is a simpler test to demostrate the issue

• Fetch a test icon like so

    wget https://commons.wikimedia.org/wiki/File:OpenSUSE_button_bling.png

• Use xdg-icon-resource to install it

    sudo xdg-icon-resource install --size 256 File:OpenSUSE_button_bling.png --novendor xdgtest

Expected result: No error messages and the file should be installed

---

You can check the file is present like so (assuming a more advanced shell like ksh, bash, zsh, etc.)

    find /usr/{local/,}share/icons/hicolor/256x256/apps -name xdgtest.png
    
The file can then be removed with a standard `rm` command or you should also be able to use xdg-icon-resource like so:

    sudo xdg-icon-resource uninstall --size 256 xdgtest
Comment 3 Ruarí Ødegaard 2024-02-01 09:32:57 UTC
Sorry, I missed that Andreas already pointed to a patch
Comment 4 Simon Lees 2024-02-01 09:46:02 UTC
given we are using git based packaging i'll roll a tumbleweed update now, I was waiting to see if there was any other issues before doing the upstream one.
Comment 5 Simon Lees 2024-02-01 09:54:02 UTC
Fix sent as https://build.opensuse.org/request/show/1143271