Re: consolekit

2015-11-03 Thread Elan Ruusamäe

On 03.11.2015 09:36, Adam Osuchowski wrote:

Elan Ruusamäe wrote:

Nov  2 20:05:20 rotten-fruit console-kit-daemon[5590]: WARNING: Couldn't
read /proc/24047936/environ: Failed to open file '/proc/24047936/environ':
No such file or directory

anyone seeing this with non-systemd desktop?
i'm using lightdm for xinit manager

Yes, I've seen something similar few weeks ago. Check if last polkit
commit (0.113-2, git only, not in repo) with my patch, helps.


did you have the same number?

as first i guessed it somehow found two pids instead of one (2404, 
7936), but neither pids existed in system
second thought of mine was that somehow some pointer is used not the 
actual value. but my system is 64bit, it should had been bigger number 
for that.


will check the polkit later, so far i downgraded lightdm and consolekit 
to previous versions. couldn't link the problem to polkit yet.


well, my actual problem is that i can no longer suspend laptop from 
mate. have to type "poweroff" command, very annoying!


--
glen

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: consolekit

2015-11-03 Thread Jan Palus
On 03.11.2015 11:22, Elan Ruusamäe wrote:
> well, my actual problem is that i can no longer suspend laptop from 
> mate. have to type "poweroff" command, very annoying!

Just note from my side -- no issues with suspend/shutdown from mate
here, though it looks I don't even have consolekit installed:

> $ rpm -q ConsoleKit polkit lightdm systemd
package ConsoleKit is not installed
polkit-0.113-1.x86_64
lightdm-1.16.4-1.x86_64
systemd-221-7.x86_64
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: consolekit

2015-11-03 Thread Elan Ruusamäe

On 03.11.2015 11:30, Jan Palus wrote:

Just note from my side -- no issues with suspend/shutdown from mate
here, though it looks I don't even have consolekit installed:
after polkit problem gets solved, i was struggling to with upower 
package should i use:


upower-libs-0.99.3-2 or upower-pm-utils-libs-0.9.23-1

btw, upower-pm-utils-libs-0.9.23-1 fakes .so.3 symlink, but i don't get why
it kind of breaks things deliberately. i even saw some symbol error from 
mate-power-manager tool (don't have log right now)


so... why?

https://github.com/pld-linux/upower-pm-utils/commit/b00fa485f93d7b71a252c1c81517456b19e3b968

--
glen

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: consolekit

2015-11-03 Thread Adam Osuchowski
Elan Ruusamäe wrote:
> after polkit problem gets solved, i was struggling to with upower package 
> should i use:
>
> upower-libs-0.99.3-2 or upower-pm-utils-libs-0.9.23-1

I fork upower-pm-utils package from upower over a year ago because of
problems with suspending/hibernating. Dbus methods Suspend(), Hibernate(),
CanSuspend() and CanHibernate() have been removed, so
org.freedesktop.PowerManagement dbus service, which use them, stops working.
The last version of upower which works well with non-systemd environments
is 0.9.23.

> btw, upower-pm-utils-libs-0.9.23-1 fakes .so.3 symlink, but i don't get why
> it kind of breaks things deliberately. i even saw some symbol error from 
> mate-power-manager tool (don't have log right now)
>
> so... why?

I don't remember why. It was made a year ago. I don't insist that this
symlink has to stay. If you consider it needless and will be working as
before, remove it.
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: consolekit

2015-11-03 Thread Elan Ruusamäe

On 03.11.2015 11:58, Adam Osuchowski wrote:

>btw, upower-pm-utils-libs-0.9.23-1 fakes .so.3 symlink, but i don't get why
>it kind of breaks things deliberately. i even saw some symbol error from
>mate-power-manager tool (don't have log right now)
>
>so... why?

I don't remember why. It was made a year ago. I don't insist that this
symlink has to stay. If you consider it needless and will be working as
before, remove it.


apps, libraries linked with .so.3 have now missing symbols, because you 
replace .so.3 link with .so.1 one
and provide SONAME deps in rpm package, so poldek doesn't even try to 
install both libraries (.so.3 and .so.1)


i would remove that hack, but i don't have anything to test with. don't 
know why you couldn't just provide .so.1 for legacy package, as new one 
uses .so.3 anyway and can be parallel installed?


--
glen

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


MATE issues [was Re: consolekit]

2015-11-03 Thread Jakub Bogusz
On Tue, Nov 03, 2015 at 11:22:37AM +0200, Elan Ruusamäe wrote:
> On 03.11.2015 09:36, Adam Osuchowski wrote:
> >Elan Ruusamäe wrote:
> >>Nov  2 20:05:20 rotten-fruit console-kit-daemon[5590]: WARNING: Couldn't
> >>read /proc/24047936/environ: Failed to open file '/proc/24047936/environ':
> >>No such file or directory
> >>
> >>anyone seeing this with non-systemd desktop?
> >>i'm using lightdm for xinit manager
> >Yes, I've seen something similar few weeks ago. Check if last polkit
> >commit (0.113-2, git only, not in repo) with my patch, helps.
> 
> did you have the same number?
> 
> as first i guessed it somehow found two pids instead of one (2404, 
> 7936), but neither pids existed in system
> second thought of mine was that somehow some pointer is used not the 
> actual value. but my system is 64bit, it should had been bigger number 
> for that.
> 
> will check the polkit later, so far i downgraded lightdm and consolekit 
> to previous versions. couldn't link the problem to polkit yet.

Pid numbers seem to be random junk from stack. The issue was caused by
mismerge when I updated systemd-fallback patch, should be fixed by Adam
in 0.113-2 (sent to builders right now).

> well, my actual problem is that i can no longer suspend laptop from 
> mate. have to type "poweroff" command, very annoying!

As for MATE - when I tried to use 1.10.x I couldn't get applications menu
(clicking on top bar didn't work).
What might be missing?


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


disabling rpm fetch

2015-11-03 Thread Elan Ruusamäe

how do you disable rpm from fetching sources?
from build/parsePrep.c i see such macros, but defining them to %{nil} 
had no effect.


if (sp->flags & RPMFILE_SOURCE) {
Rmacro = "%{?_Rsourcedir}/";
} else
if (sp->flags & RPMFILE_PATCH) {
Rmacro = "%{?_Rpatchdir}/";
} else
if (sp->flags & RPMFILE_ICON) {
Rmacro = "%{?_Ricondir}/";
} else
continue;

--
glen

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


perl-modules vs perl-Encode [Re: [packages/xorg-lib-libX11] update BR]

2015-11-03 Thread Jakub Bogusz
On Tue, Nov 03, 2015 at 03:51:45PM +0100, glen wrote:
> commit fc1b336b66fa458ec83c54db990067e1cc603dae
> Author: Elan Ruusamäe 
> Date:   Sun Nov 1 23:26:05 2015 +0200
> 
> update BR
> 
> - docbook-dtd43-xml -- 
> /usr/src/BUILD/libX11-1.6.3/specs/libX11/libX11.xml:6: warning: failed to 
> load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd;
> - perl-Encode -- Can't locate Encode.pm in @INC (you may need to install 
> the Encode module) (@INC contains: 
> /usr/local/lib/perl5/5.20.0/x86_64-pld-linux-thread-multi 
> /usr/local/share/perl5 
> /usr/lib64/perl5/vendor_perl/5.20.0/x86_64-pld-linux-thread-multi 
> /usr/share/perl5/vendor_perl 
> /usr/lib64/perl5/5.20.3/x86_64-pld-linux-thread-multi /usr/share/perl5/5.20.3 
> .) at /usr/share/perl5/5.20.3/Pod/Text.pm line 32.

In fact, most of Pod:: modules (from perl-modules) require Encode module
to work.
Also, some others perl-modules require Encode too.

So, either perl-modules should require perl-Encode, or Encode modules
(in version distributed with core perl) should be included in perl-modules.
Or maybe more perl-modules should be made external...


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en