Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611696 - x11-misc/xdg-utils requires dev-perl/Net-DBus and dev-perl/X11-Protocol for xdg-screensaver
Summary: x11-misc/xdg-utils requires dev-perl/Net-DBus and dev-perl/X11-Protocol for x...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-04 11:18 UTC by Sorrow
Modified: 2018-10-09 11:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_611696.txt,16.78 KB, text/plain)
2017-03-04 11:18 UTC, Sorrow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sorrow 2017-03-04 11:18:22 UTC
Created attachment 465928 [details]
emerge --info

without it xdg-screensaver suspend <ID> fails with error like:


Can't locate X11/Protocol.pm in @INC (you may need to install the X11::Protocol module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.24.1/x86_64-linux /usr/local/lib64/perl5/5.24.1 /usr/lib64/perl5/vendor_perl/5.24.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.24.1 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.24.0/x86_64-linux /usr/lib64/perl5/vendor_perl/5.24.0 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.24.1/x86_64-linux /usr/lib64/perl5/5.24.1 .) at -e line 6.
BEGIN failed--compilation aborted at -e line 6.

$emerge -pqv x11-misc/xdg-utils'
>[ebuild   R   ] x11-misc/xdg-utils-1.1.1-r1  USE="-doc -perl"
Comment 1 Marek Szuba (RETIRED) archtester gentoo-dev 2017-03-06 12:02:12 UTC
For the record, enabling USE=perl wouldn't help in this case because dev-perl/X11-Protocol still isn't pulled in.
Comment 2 Marek Szuba (RETIRED) archtester gentoo-dev 2017-07-21 09:11:08 UTC
Any news on getting this fixed, guys?

Anyway, having had a closer look at the problem, the two extra Perl modules are only required when xdg-screensaver detects GNOME (or to be precise, when there is something listening on org.gnome.ScreenSaver D-Bus address). Considering said modules are not keyworded for four of the arches currently supported by xdg-utils (amd64-fbsd, x86-fbsd, mips, ppc64), it would probably make sense to only depend on them when GNOME integration is desired. USE=gnome + a patch removing the "check org.gnome.ScreenSaver" bit when the flag is disabled?
Comment 3 Michael Palimaka (kensington) gentoo-dev 2017-07-22 03:44:16 UTC
(In reply to Marek Szuba from comment #2)
> Any news on getting this fixed, guys?
> 
> Anyway, having had a closer look at the problem, the two extra Perl modules
> are only required when xdg-screensaver detects GNOME (or to be precise, when
> there is something listening on org.gnome.ScreenSaver D-Bus address).
> Considering said modules are not keyworded for four of the arches currently
> supported by xdg-utils (amd64-fbsd, x86-fbsd, mips, ppc64), it would
> probably make sense to only depend on them when GNOME integration is
> desired. USE=gnome + a patch removing the "check org.gnome.ScreenSaver" bit
> when the flag is disabled?

Fine with me.
Comment 4 Sorrow 2017-09-05 21:16:38 UTC
any updates on this?
Comment 5 Mike Gilbert gentoo-dev 2017-09-05 21:39:50 UTC
Pull request: https://github.com/gentoo/gentoo/pull/5627
Comment 6 Larry the Git Cow gentoo-dev 2017-10-07 17:32:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9718d86b91aa160e66bf32bcd7f63b76cd8be55b

commit 9718d86b91aa160e66bf32bcd7f63b76cd8be55b
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-09-05 21:37:00 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-10-07 17:31:44 +0000

    x11-misc/xdg-utils: add missing dbus-related deps.
    
    xdg-screensaver calls dbus-send and executes some perl.
    
    Drop the 'perl' USE flag since it now becomes mostly useless.
    
    Package-Manager: Portage-2.3.6_p39, Repoman-2.3.3_p17
    Bug: https://bugs.gentoo.org/611696
    Closes: https://github.com/gentoo/gentoo/pull/5627

 .../{xdg-utils-1.1.2.ebuild => xdg-utils-1.1.2-r1.ebuild} | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)}