Re: [gentoo-user] "equery" and "blueman"

2019-12-20 Thread Alarig Le Lay
Hi,

On ven. 20 déc. 18:51:45 2019, Dr Rainer Woitok wrote:
> Greetings,
> 
> there seems to be some "blueman" specific data "equery" doesn't like:
> 
>$ equery --no-color uses --all net-wireless/blueman-2.1.1
>Traceback (most recent call last):
>  File "/usr/lib/python-exec/python3.6/equery", line 38, in 
>equery.main(sys.argv)
>  File "/usr/lib64/python3.6/site-packages/gentoolkit/equery/__init__.py", 
> line 356, in main
>loaded_module.main(module_args)
>  File "/usr/lib64/python3.6/site-packages/gentoolkit/equery/uses.py", 
> line 306, in main
>output = get_output_descriptions(pkg, global_usedesc)
>  File "/usr/lib64/python3.6/site-packages/gentoolkit/equery/uses.py", 
> line 183, in get_output_descriptions
>if pkg.metadata is None:
>  File "/usr/lib64/python3.6/site-packages/gentoolkit/package.py", line 
> 123, in metadata
>self.package_path(), 'metadata.xml'
>  File "/usr/lib64/python3.6/site-packages/gentoolkit/package.py", line 
> 319, in package_path
>return os.sep.join(self.ebuild_path().split(os.sep)[:-1])
>AttributeError: 'NoneType' object has no attribute 'split'
>$
> 
> Using different packages in the "equery" request works.

net-wireless/blueman-2.1.1 doesn’t exists in the the, but
net-wireless/blueman-2.1.1-r1 does.

Otherwise, the commands work for me:
alarig@pikachu ~ % equery uses net-wireless/blueman  
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for net-wireless/blueman-2.1.1-r1:
 U I
 - - appindicator   : Enable usage of dev-libs/libappindicator 
to export menu options
 - - network: Add functionality to setup (host) PAN 
connections using either net-dns/dnsmasq or net-misc/dhcp
 + + nls: Add Native Language Support (using 
gettext - GNU locale utilities)
 - - policykit  : Enable PolicyKit authentication support
 + + pulseaudio : Add support for PulseAudio sound server
 - - python_single_target_python3_5 : Build for Python 3.5 only
 + + python_single_target_python3_6 : Build for Python 3.6 only
 - - python_single_target_python3_7 : Build for Python 3.7 only
 - - python_targets_python3_5   : Build with Python 3.5
 + + python_targets_python3_6   : Build with Python 3.6
 - - python_targets_python3_7   : Build with Python 3.7
alarig@pikachu ~ % equery --no-color uses --all net-wireless/blueman
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for net-wireless/blueman-2.1.1-r1:
 U I
 - - appindicator   : Enable usage of dev-libs/libappindicator 
to export menu options
 - - network: Add functionality to setup (host) PAN 
connections using either net-dns/dnsmasq or net-misc/dhcp
 + + nls: Add Native Language Support (using 
gettext - GNU locale utilities)
 - - policykit  : Enable PolicyKit authentication support
 + + pulseaudio : Add support for PulseAudio sound server
 - - python_single_target_python3_5 : Build for Python 3.5 only
 + + python_single_target_python3_6 : Build for Python 3.6 only
 - - python_single_target_python3_7 : Build for Python 3.7 only
 - - python_targets_python3_5   : Build with Python 3.5
 + + python_targets_python3_6   : Build with Python 3.6
 - - python_targets_python3_7   : Build with Python 3.7
 * Found these USE flags for net-wireless/blueman-:
 U I
 - - appindicator   : Enable usage of dev-libs/libappindicator 
to export menu options
 - - network: Add functionality to setup (host) PAN 
connections using either net-dns/dnsmasq or net-misc/dhcp
 + + nls: Add Native Language Support (using 
gettext - GNU locale utilities)
 - - policykit  : Enable PolicyKit authentication support
 + + pulseaudio : Add support for PulseAudio sound server
 - - python_single_target_python3_5 : Build for Python 3.5 only
 + + python_single_target_python3_6 : Build for Python 3.6 only
 - - python_single_target_python3_7 : Build for Python 3.7 only
 - - python_targets_python3_5   : Build with Python 3.5
 + + python_targets_python3_6   : Build with Python 3.6
 - - python_targets_python3_7   : Build with Python 3.7
alarig@pikachu ~ % equery --no-color uses --all net-wireless/blueman-2.1.1
!!! No packages matching 'net-wireless/blueman-2.1.1'
zsh: exit 1 equery --no-color uses --all net-wireless/blueman-2.1.1
alarig@pikachu ~ % equery --no-color uses --all '=net-wireless/blueman-2.1.1'
!!! No packages matching '=net-wireless/blueman-2.1.1'
zsh: exit 1 equery --no-color uses 

[gentoo-user] "equery" and "blueman"

2019-12-20 Thread Dr Rainer Woitok
Greetings,

there seems to be some "blueman" specific data "equery" doesn't like:

   $ equery --no-color uses --all net-wireless/blueman-2.1.1
   Traceback (most recent call last):
 File "/usr/lib/python-exec/python3.6/equery", line 38, in 
   equery.main(sys.argv)
 File "/usr/lib64/python3.6/site-packages/gentoolkit/equery/__init__.py", 
line 356, in main
   loaded_module.main(module_args)
 File "/usr/lib64/python3.6/site-packages/gentoolkit/equery/uses.py", line 
306, in main
   output = get_output_descriptions(pkg, global_usedesc)
 File "/usr/lib64/python3.6/site-packages/gentoolkit/equery/uses.py", line 
183, in get_output_descriptions
   if pkg.metadata is None:
 File "/usr/lib64/python3.6/site-packages/gentoolkit/package.py", line 123, 
in metadata
   self.package_path(), 'metadata.xml'
 File "/usr/lib64/python3.6/site-packages/gentoolkit/package.py", line 319, 
in package_path
   return os.sep.join(self.ebuild_path().split(os.sep)[:-1])
   AttributeError: 'NoneType' object has no attribute 'split'
   $

Using different packages in the "equery" request works.

Sincerely,
  Rainer



[gentoo-user] Re: Suspend and Hibernation not working on XFace desktop

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Friday, 2019-12-20 13:55:29 +, you wrote:

> ...
> If you can't run suspend/hibernate it may be polkit policies are not allowing 
> you to run these commands via dbus.  However, polkit policies are 
> automatically installed/updated as required by the packages you have on your 
> system.  For example, this is what I have on my desktop (KDE):
> 
> $ pkaction | grep susp
> org.freedesktop.login1.inhibit-handle-suspend-key
> org.freedesktop.login1.suspend
> org.freedesktop.login1.suspend-ignore-inhibit
> org.freedesktop.login1.suspend-multiple-sessions
> 
> $ pkaction | grep hibernate
> org.freedesktop.login1.hibernate
> org.freedesktop.login1.hibernate-ignore-inhibit
> org.freedesktop.login1.hibernate-multiple-sessions
> org.freedesktop.login1.inhibit-handle-hibernate-key

Here it is:

$ pkaction|\grep -E 'hiber|susp'
org.freedesktop.consolekit.system.hibernate
org.freedesktop.consolekit.system.hibernate-multiple-users
org.freedesktop.consolekit.system.suspend
org.freedesktop.consolekit.system.suspend-multiple-users
$

And using "--verbose" I get:

   $ pkaction --action-id org.freedesktop.consolekit.system.hibernate --verbose
   org.freedesktop.consolekit.system.hibernate:
 description:   Hibernate the system
 message:   System policy prevents hibernating the system
 vendor:
 vendor_url:
 icon:  
 implicit any:  no
 implicit inactive: no
 implicit active:   yes

   $ pkaction --action-id org.freedesktop.consolekit.system.suspend --verbose
   org.freedesktop.consolekit.system.suspend:
 description:   Suspend the system
 message:   System policy prevents suspending the system
 vendor:
 vendor_url:
 icon:  
 implicit any:  no
 implicit inactive: no
 implicit active:   yes

   $

In "/etc/polkit-1/rules.d/"  are only  three rules files,  the first and
last one being copied by me from the internet somewhere,  the second one
being original:

   # cd /etc/polkit-1/rules.d
   # for f in *; do echo  $f; cat $f; done
    10-admin.rules
   polkit.addAdminRule(function(action, subject) {
   return ["unix-group:wheel"];
   });
    50-default.rules
   /* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

   // DO NOT EDIT THIS FILE, it will be overwritten on update
   //
   // Default rules for polkit
   //
   // See the polkit(8) man page for more information
   // about configuring polkit.

   polkit.addAdminRule(function(action, subject) {
   return ["unix-user:0"];
   });
    50-org.freedesktop.NetworkManager.rules
   polkit.addRule(function(action, subject) {
   if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && 
subject.isInGroup("plugdev")) {
   return polkit.Result.YES;
   }
   });
   #

> ...
> These are the USE flags for polkit on this system:

These are the polkit USE flags here:

   $ eix -l sys-auth/polkit|grep Installed
Installed versions:  0.115-r4(15:10:56 22/10/19)(consolekit gtk 
introspection nls pam -elogind -examples -jit -kde -selinux -systemd -test)
   $

The only differences I see are  that you are using "elogind" rather than
"consolekit", and that I'm using "gtk" while you are using "kde".

If someone could point me  to any missing policy rules,  I would be glad
to add them.

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Friday, 2019-12-20 13:38:27 +, you wrote:

> ...
> Whichever command the xface desktop is running when you select Suspend/
> Hibernate using the GUI.

Problem is  I can't select  Suspend/Hibernate  in the GUI.   It's greyed
out.  And selecting Hibernate via the power button only locks the screen
but does not otherwise leave any traces on the terminal,  in syslog, nor
in Xorg.0.log :-(

And I have now idea how to find out what Xfce WOULD send, if the buttons
weren't greyed out.

Sincerely,
  Rainer



[gentoo-user] Suspend and Hibernation not working on XFace desktop

2019-12-20 Thread Mick
Rainer, 

If you can't run suspend/hibernate it may be polkit policies are not allowing 
you to run these commands via dbus.  However, polkit policies are 
automatically installed/updated as required by the packages you have on your 
system.  For example, this is what I have on my desktop (KDE):

$ pkaction | grep susp
org.freedesktop.login1.inhibit-handle-suspend-key
org.freedesktop.login1.suspend
org.freedesktop.login1.suspend-ignore-inhibit
org.freedesktop.login1.suspend-multiple-sessions

$ pkaction | grep hibernate
org.freedesktop.login1.hibernate
org.freedesktop.login1.hibernate-ignore-inhibit
org.freedesktop.login1.hibernate-multiple-sessions
org.freedesktop.login1.inhibit-handle-hibernate-key


I suppose xface would install similar?

These are the USE flags for polkit on this system:

$ equery u sys-auth/polkit
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for sys-auth/polkit-0.115-r4:
 U I
 - - consolekit: Use sys-auth/consolekit for session tracking
 + + elogind   : Use sys-auth/elogind for session tracking
 - - examples  : Install examples, usually source code
 - - gtk   : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 + + introspection : Add support for GObject based introspection
 - - jit   : Enable just-in-time compilation for improved performance. 
May prevent use of
 some PaX memory protection features in Gentoo Hardened.
 + + kde   : Add support for software made by KDE, a free software 
community
 + + nls   : Add Native Language Support (using gettext - GNU locale 
utilities)
 + + pam   : Add support for PAM (Pluggable Authentication Modules) - 
DANGEROUS to
 arbitrarily flip
 - - systemd   : Use sys-apps/systemd for session tracking
 - - test  : Enable dependencies and/or preparations necessary to run 
tests (usually
 controlled by FEATURES=test but can be toggled 
independently)

-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Mick
On Friday, 20 December 2019 13:25:44 GMT Dr Rainer Woitok wrote:
> Mick,
> 
> On Friday, 2019-12-20 11:46:43 +, you wrote:
> > ...
> > 
> >
I
> > 
> > don't use this desktop to be able to advise further, but generally I would
> > try to run the command as a plain user while keeping an eye on the
> > terminal, syslog, and xorg.0.log, for any messages pointing to the
> > underlying problem.
> Erm, which command precisely are you suggesting to run as a plain user?
> 
> Sincerely,
>   Rainer

Whichever command the xface desktop is running when you select Suspend/
Hibernate using the GUI.  I expect it is using dbus-send with 
org.freedesktop.UPower to Suspend/Hibernate.  I can't try it on my desktop at 
the moment, because I'm in the middle of something I can't pause.

-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Friday, 2019-12-20 11:46:43 +, you wrote:

> ...
>I 
> don't use this desktop to be able to advise further, but generally I would 
> try 
> to run the command as a plain user while keeping an eye on the terminal, 
> syslog, and xorg.0.log, for any messages pointing to the underlying problem.

Erm, which command precisely are you suggesting to run as a plain user?

Sincerely,
  Rainer



Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Mick
On Friday, 20 December 2019 11:35:45 GMT Dr Rainer Woitok wrote:
> Mick,
> 
> On Thursday, 2019-12-19 18:30:47 +, you wrote:
> > ...
> > consolekit will work for this purpose - is it running?  It should be in
> > your default runlevel.
> 
>$ rc-update show|grep consolekit
>$
> 
> Gosh!  It's missing!   Maybe I just started it  to see whether or not it
> works and then forgot to add it to default.  So add and start it now:
> 
>$ sudo rc-update add consolekit default
>Password:
> * service consolekit added to runlevel default
>$ sudo rc-service consolekit start
> * Caching service dependencies ...  
> [ ok ] * Starting consolekit ...
> * start-stop-daemon: /usr/sbin/console-kit-daemon is already running
> * Failed to start consolekit
> [ !! ] * ERROR: consolekit failed to start
>$ ps -ef|grep console
>rainer3928 12250  0 19:53 pts/000:00:00 grep console
>root 11675 1  0 Dec18 ?00:00:00
> /usr/sbin/console-kit-daemon --no-daemon $
> 
> So it's not in the default run-level, but it's running anyway?  Whazzat?

It was not started as a default service on your current runlevel, but was 
started as a dependency anyway - when e.g. you logged into your desktop.


> So I decided  to reboot  and see what happens.   But this helped neither
> with automounting nor with hibernating.  The only thing that changed was
> the command line of the console-kit command:
> 
>$  ps -ef|grep console
>root  7320 1  0 Dec19 ?00:00:00
> /usr/sbin/console-kit-daemon rainer   32639 10242  0 12:21 pts/0   
> 00:00:00 grep console
>$
> 
> By the way, these are its USE flags for consolekit, in case it matters:
> 
>$ eix -l consolekit|grep Installed
> Installed versions:  1.2.1(15:11:46 22/10/19)(acl pam pm-utils
> policykit udev -cgroups -debug -doc -evdev -selinux -test KERNEL="linux") $
> 
> Sincerely,
>   Rainer

If consolekit does not fix your ability to suspend/hibernate as a plain user, 
then it could well be a bug (or setting) related to your desktop (xface).  I 
don't use this desktop to be able to advise further, but generally I would try 
to run the command as a plain user while keeping an eye on the terminal, 
syslog, and xorg.0.log, for any messages pointing to the underlying problem.

-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Mounting USB sticks automagically.

2019-12-20 Thread Dr Rainer Woitok
Mick,

On Thursday, 2019-12-19 18:30:47 +, you wrote:

> ...
> consolekit will work for this purpose - is it running?  It should be in your 
> default runlevel.

   $ rc-update show|grep consolekit
   $

Gosh!  It's missing!   Maybe I just started it  to see whether or not it
works and then forgot to add it to default.  So add and start it now:

   $ sudo rc-update add consolekit default
   Password: 
* service consolekit added to runlevel default
   $ sudo rc-service consolekit start
* Caching service dependencies ...   [ 
ok ]
* Starting consolekit ...
* start-stop-daemon: /usr/sbin/console-kit-daemon is already running
* Failed to start consolekit [ 
!! ]
* ERROR: consolekit failed to start
   $ ps -ef|grep console
   rainer3928 12250  0 19:53 pts/000:00:00 grep console
   root 11675 1  0 Dec18 ?00:00:00 /usr/sbin/console-kit-daemon 
--no-daemon
   $

So it's not in the default run-level, but it's running anyway?  Whazzat?
So I decided  to reboot  and see what happens.   But this helped neither
with automounting nor with hibernating.  The only thing that changed was
the command line of the console-kit command:

   $  ps -ef|grep console
   root  7320 1  0 Dec19 ?00:00:00 /usr/sbin/console-kit-daemon
   rainer   32639 10242  0 12:21 pts/000:00:00 grep console
   $

By the way, these are its USE flags for consolekit, in case it matters:

   $ eix -l consolekit|grep Installed
Installed versions:  1.2.1(15:11:46 22/10/19)(acl pam pm-utils 
policykit udev -cgroups -debug -doc -evdev -selinux -test KERNEL="linux")
   $

Sincerely,
  Rainer