Changeset a9725cee


Ignore:
Timestamp:
01/13/2024 03:33:12 PM (5 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...

Location:
lxqt/desktop
Files:
6 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>
  • lxqt/desktop/lxqt-kidletime.xml

    rd0212021 ra9725cee  
    100100cd       build &amp;&amp;
    101101
    102 cmake -DCMAKE_INSTALL_PREFIX=/usr \
    103       -DCMAKE_BUILD_TYPE=Release  \
    104       -DBUILD_TESTING=OFF         \
    105       -Wno-dev ..                 &amp;&amp;
     102cmake -DCMAKE_INSTALL_PREFIX=/usr        \
     103      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
     104      -DKDE_INSTALL_USE_QT_SYS_PATHS=ON  \
     105      -DCMAKE_BUILD_TYPE=Release         \
     106      -DBUILD_TESTING=OFF                \
     107      -Wno-dev ..                        &amp;&amp;
    106108make</userinput></screen>
    107109
     
    116118<screen role="root"><userinput>make install</userinput></screen>
    117119
     120  </sect2>
     121
     122  <sect2 role="commands">
     123    <title>Command Explanations</title>
     124
    118125    <para>
    119       Finally, remove some unneeded files as the &root; user:
     126      <parameter>-DCMAKE_INSTALL_LIBEXECDIR=libexec</parameter>: This overrides
     127      the default in extra-cmake-modules, wich is <filename
     128      class="directory">/usr/lib/libexec</filename> and is not FHS compliant.
    120129    </para>
    121130
    122 <screen role="root"><userinput>rm -rf /usr/mkspecs</userinput></screen>
     131    <para>
     132      <parameter>-DKDE_INSTALL_USE_QT_SYS_PATHS=ON</parameter>: This forces
     133      installation of Qt plugins in the same directory as <xref linkend="qt5"/>
     134      itself. Otherwise they get installed into <filename
     135      class="directory">/usr/mkspecs</filename>, which is not FHS compliant.
     136    </para>
    123137
    124138  </sect2>
  • lxqt/desktop/lxqt-kwayland.xml

    rd0212021 ra9725cee  
    100100cd       build &amp;&amp;
    101101
    102 cmake -DCMAKE_INSTALL_PREFIX=/usr \
    103       -DCMAKE_BUILD_TYPE=Release  \
    104       -DBUILD_TESTING=OFF         \
    105       -Wno-dev ..                 &amp;&amp;
     102cmake -DCMAKE_INSTALL_PREFIX=/usr        \
     103      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
     104      -DKDE_INSTALL_USE_QT_SYS_PATHS=ON  \
     105      -DCMAKE_BUILD_TYPE=Release         \
     106      -DBUILD_TESTING=OFF                \
     107      -Wno-dev ..                        &amp;&amp;
    106108make</userinput></screen>
    107109
     
    116118<screen role="root"><userinput>make install</userinput></screen>
    117119
     120  </sect2>
     121
     122  <sect2 role="commands">
     123    <title>Command Explanations</title>
     124
    118125    <para>
    119       Finally, remove some unneeded files as the &root; user:
     126      <parameter>-DCMAKE_INSTALL_LIBEXECDIR=libexec</parameter>: This overrides
     127      the default in extra-cmake-modules, wich is <filename
     128      class="directory">/usr/lib/libexec</filename> and is not FHS compliant.
    120129    </para>
    121130
    122 <screen role="root"><userinput>rm -rf /usr/mkspecs</userinput></screen>
     131    <para>
     132      <parameter>-DKDE_INSTALL_USE_QT_SYS_PATHS=ON</parameter>: This forces
     133      installation of Qt plugins in the same directory as <xref linkend="qt5"/>
     134      itself. Otherwise they get installed into <filename
     135      class="directory">/usr/mkspecs</filename>, which is not FHS compliant.
     136    </para>
    123137
    124138  </sect2>
  • 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>
  • 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>
  • 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.