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-kwindowsystem.xml

    rd0212021 ra9725cee  
    105105cd       build &amp;&amp;
    106106
    107 cmake -DCMAKE_INSTALL_PREFIX=/usr \
    108       -DCMAKE_BUILD_TYPE=Release  \
    109       -DBUILD_TESTING=OFF         \
    110       -Wno-dev ..                 &amp;&amp;
     107cmake -DCMAKE_INSTALL_PREFIX=/usr        \
     108      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
     109      -DKDE_INSTALL_USE_QT_SYS_PATHS=ON  \
     110      -DCMAKE_BUILD_TYPE=Release         \
     111      -DBUILD_TESTING=OFF                \
     112      -Wno-dev ..                        &amp;&amp;
    111113make</userinput></screen>
    112114
     
    121123<screen role="root"><userinput>make install</userinput></screen>
    122124
     125  </sect2>
     126
     127  <sect2 role="commands">
     128    <title>Command Explanations</title>
     129
    123130    <para>
    124       Finally, remove some unneeded files as the &root; user:
     131      <parameter>-DCMAKE_INSTALL_LIBEXECDIR=libexec</parameter>: This overrides
     132      the default in extra-cmake-modules, wich is <filename
     133      class="directory">/usr/lib/libexec</filename> and is not FHS compliant.
    125134    </para>
    126135
    127 <screen role="root"><userinput>rm -rf /usr/mkspecs</userinput></screen>
     136    <para>
     137      <parameter>-DKDE_INSTALL_USE_QT_SYS_PATHS=ON</parameter>: This forces
     138      installation of Qt plugins in the same directory as <xref linkend="qt5"/>
     139      itself. Otherwise they get installed into <filename
     140      class="directory">/usr/mkspecs</filename>, which is not FHS compliant.
     141    </para>
    128142
    129143  </sect2>
Note: See TracChangeset for help on using the changeset viewer.