Overview
Request 702611 superseded
- Created by fbui
- In state superseded
- Supersedes 701728
- Superseded by 728985
- Open review for legal-auto
[ 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/
where is this error happening ?
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:J/libvirt/standard/x86_64
I see thanks. IMHO the intial problem here is that systemd has to own this polkit dir...
but IIRC we already discussed about this. Anyway I'll fix it. Thanks
Shared ownership is never the problem, different ideas on what the mode should be is.
BTW do you know why this error appeared just now ?
because only now you started having
+%dir %{_datadir}/polkit-1/rules.d
in your spec file
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 ;)
So how am I suppose to fix this since "polkitd" user is not known at the time systemd package is built ?
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
polkit requires systemd so I don't think I'm allowed to do that.
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
Nice thanks. For some reasons polkit has both "BuildRequires: pkgconfig(libsystemd)" and "BuildRequires: pkgconfig(systemd)". Not sure what the later is for.
one is for the C library, the other is for systemd.pc (which contains mostly directory variables).
Request History
fbui created request
factory-auto added opensuse-review-team as a reviewer
Please review sources
factory-auto accepted review
Check script succeeded
dimstar accepted review
staging-bot added openSUSE:Factory:Staging:D as a reviewer
Being evaluated by staging project "openSUSE:Factory:Staging:D"
staging-bot accepted review
Picked openSUSE:Factory:Staging:D
staging-bot declined review
Replaced by sr#702871
staging-bot declined request
Replaced by sr#702871