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"
For the record, enabling USE=perl wouldn't help in this case because dev-perl/X11-Protocol still isn't pulled in.
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?
(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.
any updates on this?
Pull request: https://github.com/gentoo/gentoo/pull/5627
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(-)}