Ignore:
Timestamp:
01/13/2024 03:33:12 PM (6 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
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-kconfig.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
     
    114115<screen role="root"><userinput>make install</userinput></screen>
    115116
    116     <para>
    117       Finally, remove some unneeded files as the &root; user:
    118     </para>
    119 
    120 <screen role="root"><userinput>rm -rf /usr/mkspecs &amp;&amp;
    121 rm -rf /usr/lib/libexec</userinput></screen>
     117  </sect2>
     118
     119  <sect2 role="commands">
     120    <title>Command Explanations</title>
     121
     122    <para>
     123      <parameter>-DCMAKE_INSTALL_LIBEXECDIR=libexec</parameter>: This overrides
     124      the default in extra-cmake-modules, wich is <filename
     125      class="directory">/usr/lib/libexec</filename> and is not FHS compliant.
     126    </para>
     127
     128    <para>
     129      <parameter>-DKDE_INSTALL_USE_QT_SYS_PATHS=ON</parameter>: This forces
     130      installation of Qt plugins in the same directory as <xref linkend="qt5"/>
     131      itself. Otherwise they get installed into <filename
     132      class="directory">/usr/mkspecs</filename>, which is not FHS compliant.
     133    </para>
    122134
    123135  </sect2>
Note: See TracChangeset for help on using the changeset viewer.