You are not logged in.

#1 2023-03-26 08:17:40

Rodders
Member
Registered: 2023-03-26
Posts: 4

Polkit broken?

I recently installed ArchLinux32 for the first time and installed Xfce4 and lightdm. All was working fine until I tried to get hardware acceleration working for my ATI Radeon 9600. I tried installing various packages to no avail. However on rebooting I got a "Failed to start Authorization Manager" error. Looking at journalctl revealed:
/usr/lib/polkit-1/polkitd ... undefined symbol g_string_free_and_steal
Polkit.service Main process exited, code=exited, status=127/n/a
Assuming I'd messed something up I removed the packages I'd been trying and did a full update with pacman -Syu but nothing seemed to fix the problem.
In desperation I decided to start again and reformatted the partition and reinstalled.
This still didn't fix it so I can only assume that there has been an update that has broken it (seems to be in glib2)
I'm a noob so sorry if I've missed something. Any help would be appreciated.

Offline

#2 2023-03-26 09:26:19

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: Polkit broken?

This sounds like /usr/lib/polkit-1/polkitd is unable to find the g_string_free_and_steal from glib and thus needs a rebuild.
polkit used to use js10x from firefox (which was a pain to build), now it uses the duktape Javascript engine.

I either have to push new polkit to the stable repositories or trigger a rebuild..

Arch32 breaks far more often than upstream Arch due to library incompatibilities.. it's usually not the installers fault. :-)

Offline

#3 2023-03-26 10:01:53

Rodders
Member
Registered: 2023-03-26
Posts: 4

Re: Polkit broken?

That's great to know, I was tearing my hair trying to think what I'd done to break it.
Is there any way I can revert to the previous, working version of polkit?
Alternatively is there any way I can help fix it?
Anyhow, thanks for all your efforts, ArchLinux32 is great and has brought my old laptop back to life.

Offline

#4 2023-03-26 11:41:51

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: Polkit broken?

I'll push polkit, but it might break other things..

Offline

#5 2023-03-26 12:41:49

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: Polkit broken?

polkit didn't rebuild, I triggered a rebuild some days ago..

Offline

#6 2023-03-27 07:47:11

Rodders
Member
Registered: 2023-03-26
Posts: 4

Re: Polkit broken?

I've had a dig around and the problem is indeed glib2. g_string_free_and_steal is introduced in version 2.76.1 which is still only in staging while the core version is 2.74.3. Something has reached core that calls it but I haven't tracked down what yet.

Offline

#7 2023-03-28 10:46:17

Rodders
Member
Registered: 2023-03-26
Posts: 4

Re: Polkit broken?

I reverted to polkit-122-1.0 and this seems to fix the problem, although some things seem to be more sluggish than they used to be.

Offline

#8 2023-05-14 06:49:42

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: Polkit broken?

Good news: polkit finally uses a Javascript engine which is not an old version of firefox js (which is a nightmare to build).
Now it uses duktape (BTW: we are using it on i486 too since the beginning of the subarchitecture mainly due to the
absence of rust).

So polkit should be much more stable now.. :-)

Offline

Board footer

Powered by FluxBB