Overview

Request 702611 superseded

No description set
Loading...

Dominique Leuenberger's avatar
[   35s] Preparing...                          ########################################
[   35s]    file /usr/share/polkit-1/rules.d conflicts between attempted installs of polkit-0.115-6.1.x86_64 and systemd-242-3.2.x86_64
[   35s] exit ...

Happens while building libvirt for example

polkit packages this directory with different / tighter permissions, like:

ls -lad /usr/share/polkit-1/rules.d/
drwx------ 1 polkitd root 322 Apr 11 09:23 /usr/share/polkit-1/rules.d/

Franck Bui's avatar
author source maintainer

where is this error happening ?


Dominique Leuenberger's avatar

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:J/libvirt/standard/x86_64


Franck Bui's avatar
author source maintainer

I see thanks. IMHO the intial problem here is that systemd has to own this polkit dir...


Franck Bui's avatar
author source maintainer

but IIRC we already discussed about this. Anyway I'll fix it. Thanks


Jan Engelhardt's avatar

Shared ownership is never the problem, different ideas on what the mode should be is.


Franck Bui's avatar
author source maintainer

BTW do you know why this error appeared just now ?


Dominique Leuenberger's avatar

because only now you started having

+%dir %{_datadir}/polkit-1/rules.d

in your spec file


Franck Bui's avatar
author source maintainer

ouch you're right I completely forgot about the changes that restored those "post build checks"... and now I start understanding why there were disabled ;)


Franck Bui's avatar
author source maintainer

So how am I suppose to fix this since "polkitd" user is not known at the time systemd package is built ?


Dominique Leuenberger's avatar

I'd guess that: for systemd.spec (non-mini) you can BuildRequires: polkit and for the -mini case you can rm %{buildroot}/etc/polkit-1/rules.d and not package the files at all


Franck Bui's avatar
author source maintainer

polkit requires systemd so I don't think I'm allowed to do that.


Dominique Leuenberger's avatar

We could fix polkit here - there is no reason for it to actually require systemd (it requires libsystemd.so.0, but that is also provided by systemd-mini, so no trouble here)

See sr #702025


Franck Bui's avatar
author source maintainer

Nice thanks. For some reasons polkit has both "BuildRequires: pkgconfig(libsystemd)" and "BuildRequires: pkgconfig(systemd)". Not sure what the later is for.


Jan Engelhardt's avatar

one is for the C library, the other is for systemd.pc (which contains mostly directory variables).

Request History
Franck Bui's avatar

fbui created request


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Dominique Leuenberger's avatar

dimstar accepted review


Staging Bot's avatar

staging-bot added openSUSE:Factory:Staging:D as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:D"


Staging Bot's avatar

staging-bot accepted review

Picked openSUSE:Factory:Staging:D


Staging Bot's avatar

staging-bot declined review

Replaced by sr#702871


Staging Bot's avatar

staging-bot declined request

Replaced by sr#702871


openSUSE Build Service is sponsored by