[Portland-bugs] [Bug 93596] New: xdg-screensaver should call system perl instead of just perl

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 5 09:37:54 PST 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93596

            Bug ID: 93596
           Summary: xdg-screensaver should call system perl instead of
                    just perl
           Product: Portland
           Version: 1.1.0 rc3
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: theaney at gmail.com

Created attachment 120820
  --> https://bugs.freedesktop.org/attachment.cgi?id=120820&action=edit
patch against current git repo

I installed an alternate version of Perl higher in my path than the system perl
and started getting warnings when I called parole

$ parole foo.mp4
Can't locate Net/DBus.pm in @INC (you may need to install the Net::DBus module)
(@INC contains: /home/tim/perl/lib
/home/tim/.plenv/versions/5.22.1/lib/perl5/site_perl/5.22.1/x86_64-linux
/home/tim/.plenv/versions/5.22.1/lib/perl5/site_perl/5.22.1
/home/tim/.plenv/versions/5.22.1/lib/perl5/5.22.1/x86_64-linux
/home/tim/.plenv/versions/5.22.1/lib/perl5/5.22.1 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

After some fussing, I determined that the warning was coming from
xdg-screensaver, specifically, the screensaver_gnome_screensaver() function. It
calls Perl with just "perl -e" which assumes that whatever perl is highest in
the path has the Net::DBus module. I changed line 918 from "perl -e" to
"/usr/bin/perl -e" and now all is well.

$ xdg-screensaver --version
xdg-screensaver 1.1.0 rc3

$ lsb_release --description
Description:    Ubuntu 15.10

That's on my system, but the issue still seems to be present. I've attached a
patch against the current source.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20160105/3712d61a/attachment.html>


More information about the Portland-bugs mailing list