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

    rd0212021 ra9725cee  
    110110cd       build &amp;&amp;
    111111
    112 cmake -DCMAKE_INSTALL_PREFIX=/usr \
    113       -DCMAKE_BUILD_TYPE=Release  \
    114       -DBUILD_TESTING=OFF         \
    115       -Wno-dev ..                 &amp;&amp;
     112cmake -DCMAKE_INSTALL_PREFIX=/usr        \
     113      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
     114      -DKDE_INSTALL_USE_QT_SYS_PATHS=ON  \
     115      -DCMAKE_BUILD_TYPE=Release         \
     116      -DBUILD_TESTING=OFF                \
     117      -Wno-dev ..                        &amp;&amp;
    116118make</userinput></screen>
    117119
     
    126128<screen role="root"><userinput>make install</userinput></screen>
    127129
    128     <para>
    129       Finally, remove some unneeded files as the &root; user:
    130     </para>
    131 
    132 <screen role="root"><userinput>rm -rf /usr/mkspecs</userinput></screen>
     130  </sect2>
     131
     132  <sect2 role="commands">
     133    <title>Command Explanations</title>
     134
     135    <para>
     136      <parameter>-DCMAKE_INSTALL_LIBEXECDIR=libexec</parameter>: This overrides
     137      the default in extra-cmake-modules, wich is <filename
     138      class="directory">/usr/lib/libexec</filename> and is not FHS compliant.
     139    </para>
     140
     141    <para>
     142      <parameter>-DKDE_INSTALL_USE_QT_SYS_PATHS=ON</parameter>: This forces
     143      installation of Qt plugins in the same directory as <xref linkend="qt5"/>
     144      itself. Otherwise they get installed into <filename
     145      class="directory">/usr/mkspecs</filename>, which is not FHS compliant.
     146    </para>
    133147
    134148  </sect2>
Note: See TracChangeset for help on using the changeset viewer.