Package: systray-mdstat
Version: 1.0.0-1
Severity: grave
Tags: patch

Trying to start systray-mdstat fails with:

 % systray-mdstat
 Icon harddriveok.png not found at /usr/bin/systray-mdstat line 156.

strace shows three failed attempts to open the file:

 % strace -e trace=file systray-mdstat 2>&1 |grep harddrive
 stat("share/harddriveok.png", 0x5627a78cc298) = -1 ENOENT (No such file or 
directory)
 stat("/usr/local/share/systray-mdstat/harddriveok.png", 0x5627a78cc298) = -1 
ENOENT (No such file or directory)
 stat("/usr/share/systray-mdstat/harddriveok.png", 0x5627a78cc298) = -1 ENOENT 
(No such file or directory)
 Icon harddriveok.png not found at /usr/bin/systray-mdstat line 156.

while the file is at 
/usr/share/perl5/auto/share/dist/systray-mdstat/harddriveok.png

The following patch fixes that:

-----------------------------------------------
diff --git a/bin/systray-mdstat b/bin/systray-mdstat
index e45e403..39a7428 100755
--- a/bin/systray-mdstat
+++ b/bin/systray-mdstat
@@ -90,8 +90,8 @@ my @icon_dirs = qw(
 # Unfortunately File::ShareDir functions die instead of returning
 # undef if they can't find an according directory.
 try {
-    push(@icon_dirs, dist_dir('App-Systray-Mdstat'));
-}
+    push(@icon_dirs, dist_dir('systray-mdstat'));
+};
 
 
 check_mdstat();
-----------------------------------------------

It does two things:
 - adds the missing semicolon after the try {} block;
 - changes the dist name from 'App-Systray-Mdstat' to 'systray-mdstat' to match 
   the location of the images as shipped in the Debian package.

Cheers,
    dam


-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systray-mdstat depends on:
ii  libfile-sharedir-perl  1.102-1
ii  libgtk3-perl           0.030-1
ii  libtry-tiny-perl       0.28-1
pn  perl:any               <none>

systray-mdstat recommends no packages.

Versions of packages systray-mdstat suggests:
ii  libgtk2-traymanager-perl  0.05-3+b3
ii  perlpanel                 1:0.9.1+cvs20051225-2.1
pn  smart-notifier            <none>
ii  trayer                    1.1.5-1
ii  xfce4-panel               4.12.1-2

-- no debconf information

Reply via email to