KDE: Allow Polkit files to land in /usr

Create a symlink /opt/kf5/share/polkit-1->/usr/share/polkit-1
This commit is contained in:
Pierre Labastie 2021-08-30 17:08:08 +02:00
parent c950ae63fa
commit f263bf72bd
3 changed files with 28 additions and 14 deletions

View File

@ -44,6 +44,13 @@
<listitem>
<para>August 30th, 2021</para>
<itemizedlist>
<listitem>
<para>[pierre] - Create a link from
<filename class="directory">/opt/kf5/share/polkit-1</filename> to its
counterpart in <filename class="directory">/usr/share/</filename> so
that action files get installed to a place where Polkit finds
them.</para>
</listitem>
<listitem>
<para>[thomas] - Upgrade to proftpd-1.3.7c. Fixes
<ulink url="&blfs-ticket-root;15482">#15482</ulink>.</para>

View File

@ -322,12 +322,14 @@ EOF</userinput></screen>
<screen role="root" revision="sysv"><userinput>mv -v /opt/kf5 /opt/kf5.old &amp;&amp;
install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share</userinput></screen>
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share</userinput></screen>
<screen role="root" revision="systemd"><userinput>mv -v /opt/kf5 /opt/kf5.old &amp;&amp;
install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share &amp;&amp;
install -v -dm755 $KF5_PREFIX/lib &amp;&amp;
ln -sfv /usr/lib/systemd $KF5_PREFIX/lib</userinput></screen>

View File

@ -161,11 +161,14 @@ EOF</userinput></screen>
</indexterm>
<para revision="sysv">
Several <application>KDE Frameworks 5</application> packages install
files into <application>D-Bus</application> directories. When installing
Several <application>KDE Frameworks 5</application> and
<application>Plasma 5</application> packages install
files into <application>D-Bus</application> and
<application>Polkit</application> directories. When installing
<application>KDE Frameworks 5</application> in a location other than
<filename class="directory">/usr</filename>,
<application>D-Bus</application> needs to be able to find these files.
<application>D-Bus</application> and <application>Polkit</application>
need to be able to find these files.
The easiest way to achieve this is to create the following symlinks (as
the <systemitem class="username">root</systemitem> user):
</para>
@ -173,27 +176,31 @@ EOF</userinput></screen>
<screen role="root"
revision="sysv"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share</userinput></screen>
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share</userinput></screen>
<para revision="systemd">
Several <application>KDE Frameworks 5</application> and
<application>KDE Plasma 5</application> packages install
files into <application>D-Bus</application> and
files into <application>D-Bus</application>,
<application>Polkit</application>, and
<application>systemd</application> directories. When installing
<application>KDE 5</application> in a location other than
<filename class="directory">/usr</filename>,
<application>D-Bus</application> and <application>systemd</application>
<application>D-Bus</application>, <application>Polkit</application>,
and <application>systemd</application>
need to be able to find these files.
The easiest way to achieve this is to create the following symlinks (as
the <systemitem class="username">root</systemitem> user):
</para>
<screen role="root"
revision="systemd"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
install -v -dm755 $KF5_PREFIX/lib &amp;&amp;
ln -sfv /usr/lib/systemd $KF5_PREFIX/lib</userinput></screen>
revision="systemd"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share &amp;&amp;
install -v -dm755 $KF5_PREFIX/lib &amp;&amp;
ln -sfv /usr/lib/systemd $KF5_PREFIX/lib</userinput></screen>
<para>
Some packages may also install icons from the "hicolor" icon set. Since that
@ -233,5 +240,3 @@ ln -sfv kf5-&kf5-version; /opt/kf5</userinput></screen>
</sect2>
</sect1>