Ignore:
Timestamp:
01/13/2024 03:33:12 PM (9 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.2, gimp3, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128
Children:
e36f6236
Parents:
d0212021
Message:

Fix install dirs in kde packages for lxqt

  • add -DKDE_INSTALL_USE_QT_SYS_PATHS=ON, which allows installing qtplugins in the /opt/qt5 hierarchy instead of /usr/mkspecs
  • add -DCMAKE_INSTALL_LIBEXECDIR=libexec, which allows installing private apps in /usr/libexec instead of /usr/lib/libexec
  • remove -DCMAKE_INSTALL_LIBDIR=lib, which is useless since extra-cmake-modules use GNUInstallDir

Note that those modifications have been done for all the kde packages
used in LXQt, althoough the modification for libexec is only needed for
three of them. But it does not hurt for the others, and who knows how
things may evolve...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lxqt/desktop/lxqt-libkscreen.xml

    rd0212021 ra9725cee  
    9797cd       build &amp;&amp;
    9898
    99 cmake -DCMAKE_INSTALL_PREFIX=/usr \
    100       -DCMAKE_BUILD_TYPE=Release  \
    101       -DCMAKE_INSTALL_LIBDIR=lib  \
    102       -DBUILD_TESTING=OFF         \
    103       -Wno-dev ..                 &amp;&amp;
     99cmake -DCMAKE_INSTALL_PREFIX=/usr        \
     100      -DCMAKE_BUILD_TYPE=Release         \
     101      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
     102      -DKDE_INSTALL_USE_QT_SYS_PATHS=ON  \
     103      -DBUILD_TESTING=OFF                \
     104      -Wno-dev ..                        &amp;&amp;
    104105make</userinput></screen>
    105106
     
    121122<screen role="root" revision="sysv"><userinput>rm -v /usr/lib/systemd/user/plasma-kscreen.service</userinput></screen>
    122123
    123     <para>
    124       Finally, remove some unneeded files as the &root; user:
    125     </para>
    126 
    127 <screen role="root"><userinput>rm -rf /usr/mkspecs &amp;&amp;
    128 rm -rf /usr/lib/libexec</userinput></screen>
     124  </sect2>
     125
     126  <sect2 role="commands">
     127    <title>Command Explanations</title>
     128
     129    <para>
     130      <parameter>-DCMAKE_INSTALL_LIBEXECDIR=libexec</parameter>: This overrides
     131      the default in extra-cmake-modules, wich is <filename
     132      class="directory">/usr/lib/libexec</filename> and is not FHS compliant.
     133    </para>
     134
     135    <para>
     136      <parameter>-DKDE_INSTALL_USE_QT_SYS_PATHS=ON</parameter>: This forces
     137      installation of Qt plugins in the same directory as <xref linkend="qt5"/>
     138      itself. Otherwise they get installed into <filename
     139      class="directory">/usr/mkspecs</filename>, which is not FHS compliant.
     140    </para>
    129141
    130142  </sect2>
Note: See TracChangeset for help on using the changeset viewer.