0.98.2 Linux Packages: Bad symlinks/missing files in the XnView lib directory

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
juozas
Posts: 35
Joined: Sun Sep 27, 2009 11:42 am
Location: Lithuania
Contact:

0.98.2 Linux Packages: Bad symlinks/missing files in the XnView lib directory

Post by juozas »

Subject: 0.98.2 Linux Packages: Bad symlinks/missing files in the XnView lib directory

XnView: MP 0.98.2 - 64 bit
OS: Ubuntu Linux 20.04 LTS - 64bit

Inspecting installed files found in /opt/Xnview/lib I've located some broken symlinks pointing to missing files that were not included in the DEB package. The problematic symlinks are libqgsttools_p.so, libqgsttools_p.so.1 and libwebp.so.6 (linked file exists in other directory not referenced anywhere by launcher existing in /usr/bin), some pointing to libraries not even available on my distribution version. Only package containing libwebp.so.6 is available, and not the package providing libqgsttools_p.so.1.0.0 as it was removed from archives on newer distribution version.

Edit: The AppImage and TGZ both are affected too. The directory is located at /tmp/<mount point>/usr/XnView/lib for appimage and lib directory in XnView folder for tgz.

Package: 64bit linux deb, sha256 92f5dfd1f9e5beb2d7a59da030d4205b65f4bd9ebd3d9e2f9c4cd6fbc6d6994c, name XnViewMP-linux-x64.deb
64bit AppImage: sha256 75ec3096a9226c61410eb4237ad36fdb04100a998ec42efa6af23821708689dd, name XnView_MP.glibc2.18-x86_64.AppImage
64 bit TGZ: sha256 827e10dc2fa93709ed1f97f28507c25a7a6e18a934e8261690f585e6980a2eda, name XnViewMP-linux-x64.tgz

Effect: Broken symlinks found while listing files, might cause bugs if symlink pointing to library not available anywhere is accessed.

To reproduce:
1. Install latest 0.98.2 DEB package, download Appimage and run it or get TGZ archive and extract it
2. Go to lib directory of xnview folder (/opt/Xnview/lib for DEB, XnView/lib for TGZ, /tmp/<mount point>/usr/XnView lib for AppImage), inspect files (do ls -l, etc),
3. Find broken symlinks, pointing to missing libraries, with no system packages available for some missing files.
Actual behaviour (bug): Broken symlinks possibly causing bugs if broken symlink is accessed :bug:

Expected behaviour: No broken symlinks, files should be either included or removed at all from package or linked correctly if file is on other directory.
Last edited by juozas on Tue Mar 02, 2021 12:12 pm, edited 1 time in total.
Сделано в СССР
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.98.2 Linux DEB Package: Bad symlinks/missing files in the XnView lib directory

Post by xnview »

right, i'll clean up
Pierre.
User avatar
juozas
Posts: 35
Joined: Sun Sep 27, 2009 11:42 am
Location: Lithuania
Contact:

Re: 0.98.2 Linux Packages: Bad symlinks/missing files in the XnView lib directory

Post by juozas »

After some investingating I found that the TGZ and AppImage are also affected, not only DEB package has this problem. The first post has been updated.
Сделано в СССР
Post Reply