Changeset 4ef4636b


Ignore:
Timestamp:
12/16/2018 11:59:49 AM (6 years ago)
Author:
DJ Lucas <dj@…>
Branches:
elogind
Children:
32dfda12
Parents:
2f54800b
Message:

Initial commit of elogind-239.3. Adjust serveral packages to utilize elogind.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/BOOK-elogind@20827 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/dbus.xml

    r2f54800b r4ef4636b  
    8484    </itemizedlist>
    8585
     86    <bridgehead renderas="sect3" revision="sysv">Additional Downloads</bridgehead>
     87    <itemizedlist spacing="compact" revision="sysv">
     88      <listitem>
     89        <para>
     90          Required patch:
     91          <ulink url="&patch-root;/dbus-&dbus-version;-elogind-1.patch"/>
     92        </para>
     93      </listitem>
     94    </itemizedlist>
     95
    8696    <bridgehead renderas="sect3">D-Bus Dependencies</bridgehead>
    8797
     
    94104    <para role="recommended">
    95105      <xref linkend="xorg7-lib"/> (for <command>dbus-launch</command> program)
     106      <phrase revision="sysv">and <xref linkend="elogind"/> (first build
     107      without, and then again after elogind is installed)</phrase>
    96108    </para>
    97109
     
    130142        -u 18 -g messagebus -s /bin/false messagebus</userinput></screen>
    131143
     144    <para revision="sysv">
     145      Apply a patch to fix detection of <application>elogind</application>:
     146    </para>
     147
     148<screen revision="sysv"><userinput>patch -Np1 -i ../dbus-&dbus-version;-elogind-1.patch</userinput></screen>
     149
    132150    <para>
    133151      Install <application>D-Bus</application> by running the following
     
    137155    </para>
    138156
    139 <screen revision="sysv"><userinput>./configure --prefix=/usr                        \
    140             --sysconfdir=/etc                    \
    141             --localstatedir=/var                 \
    142             --disable-doxygen-docs               \
    143             --disable-xml-docs                   \
    144             --disable-static                     \
    145             --docdir=/usr/share/doc/dbus-&dbus-version; \
    146             --with-console-auth-dir=/run/console \
    147             --with-system-pid-file=/run/dbus/pid \
    148             --with-system-socket=/run/dbus/system_bus_socket &amp;&amp;
    149 make</userinput></screen>
    150 
    151 <screen revision="systemd"><userinput>./configure --prefix=/usr                        \
     157<screen><userinput>./configure --prefix=/usr                        \
    152158            --sysconfdir=/etc                    \
    153159            --localstatedir=/var                 \
     
    187193<screen role="root"><userinput>make install</userinput></screen>
    188194
    189     <para revision="systemd">
     195    <para>
    190196      The shared library needs to be moved to
    191197      <filename class="directory">/lib</filename>, and as a result the
     
    196202    </para>
    197203
    198 <screen revision="systemd" role="root"><userinput>mv -v /usr/lib/libdbus-1.so.* /lib &amp;&amp;
     204<screen role="root"><userinput>mv -v /usr/lib/libdbus-1.so.* /lib &amp;&amp;
    199205ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
    200206
     
    284290      href="../../xincludes/static-libraries.xml"/>
    285291
    286     <para revision="sysv">
    287       <parameter>--disable-systemd</parameter>: This switch disables systemd
    288       support in <application>D-Bus</application>.
    289     </para>
    290 
    291     <para revision="sysv">
    292       <parameter>--without-systemdsystemunitdir</parameter>: This switch
    293       prevents installation of systemd unit files.
    294     </para>
    295 
    296     <para revision="systemd">
     292    <para>
    297293      <parameter>--enable-user-session</parameter>: This parameter enables
    298       per-user DBus sessions with <application>systemd</application>.
     294      per-user DBus sessions with
     295      <phrase revision="sysv"><application>elogind</application>.</phrase>
     296      <phrase revision="systemd"><application>systemd</application>.</phrase>
    299297    </para>
    300298
  • general/sysutils/modemmanager.xml

    r2f54800b r4ef4636b  
    7272    </itemizedlist>
    7373
     74    <bridgehead renderas="sect3" revision="sysv">Additional Downloads</bridgehead>
     75    <itemizedlist spacing="compact" revision="sysv">
     76      <listitem revision="sysv">
     77        <para>
     78          Required patch:
     79          <ulink url="&patch-root;/ModemManager-&ModemManager-version;-elogind-1.patch"/>
     80        </para>
     81      </listitem>
     82    </itemizedlist>
     83
    7484    <bridgehead renderas="sect3">ModemManager Dependencies</bridgehead>
    7585
     
    8191    <bridgehead renderas="sect4">Recommended</bridgehead>
    8292    <para role="recommended">
     93      <phrase revision="sysv"><xref linkend="elogind"/></phrase>
    8394      <xref linkend="gobject-introspection"/>,
    8495      <xref linkend="libmbim"/>,
     
    101112    <title>Installation of ModemManager</title>
    102113
     114    <para revision="sysv">
     115      Apply a patch to correct elogind detection:
     116    </para>
     117
     118<screen revision="sysv"><userinput>patch -Np1 -i ../ModemManager-&ModemManager-version;-elogind-1.patch</userinput></screen>
     119
    103120    <para>
    104121      Install <application>ModemManager</application> by running the following
     
    106123    </para>
    107124
    108 <screen revision="sysv"><userinput>./configure --prefix=/usr        \
    109             --sysconfdir=/etc    \
    110             --localstatedir=/var \
     125<screen revision="sysv"><userinput>
     126./configure --prefix=/usr             \
     127            --sysconfdir=/etc         \
     128            --localstatedir=/var      \
     129            --disable-static          \
    111130            --enable-more-warnings=no \
    112             --disable-static    &amp;&amp;
     131            --with-elogind-suspend-resume=yes &amp;&amp;
    113132make</userinput></screen>
    114133
     
    138157    <title>Command Explanations</title>
    139158
     159    <para revision="sysv">
     160      <parameter>--with-elogind-suspend-resume=yes</parameter>: This switch
     161      forces <application>ModmeManager</application> to use the
     162      <application>elogind</application> power management facilities.
     163    </para>
     164
    140165    <para revision="systemd">
    141166      <parameter>--with-systemd-suspend-resume</parameter>: This
    142       switch forces <application>ModemManager</application> to use the systemd
    143       power management facilities.
     167      switch forces <application>ModemManager</application> to use the
     168      <application>systemd</application> power management facilities.
    144169    </para>
    145170
  • general/sysutils/sysutils.xml

    r2f54800b r4ef4636b  
    3434
    3535  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus.xml"/>
     36
     37  <!-- sysv only -->
     38  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="elogind.xml"/>
     39
    3640  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="fcron.xml"/>
    3741  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gpm.xml"/>
  • introduction/welcome/changelog.xml

    r2f54800b r4ef4636b  
    4747      <itemizedlist>
    4848        <listitem>
     49          <para>[dj] - Add elogind-239.3. Adjust several packages to utilize
     50          elogind.</para>
     51        </listitem>
     52        <listitem>
    4953          <para>[dj] - Clarify modular configuration of NetworkManager with
    5054          examples of common and recommended configurations.</para>
  • networking/netutils/networkmanager.xml

    r2f54800b r4ef4636b  
    105105      <xref linkend="polkit"/>,
    106106      <xref linkend="pygobject3"/>,
     107      <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
    107108      <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
    108109      <xref linkend="upower"/>,
     
    170171      -Dselinux=false            \
    171172      -Dudev_dir=/lib/udev       \
    172       -Dsession_tracking=no      \
     173      -Dsession_tracking=elogind \
    173174      -Dsystemdsystemunitdir=no  \
    174175      -Dsystemd_journal=false    \
     
    231232
    232233    <para revision="sysv">
    233       <parameter>-Dsession_tracking=no</parameter>,
    234       <parameter>-Dsystemdsystemunitdir=no</parameter>, and
     234      <parameter>-Dsystemdsystemunitdir=no</parameter> and
    235235      <parameter>-Dsystemd_journal=false</parameter>: systemd is not
    236236      used for sysv init systems.
     237    </para>
     238
     239    <para revision="sysv">
     240      <parameter>-Dsession_tracking=elogind</parameter>: This switch
     241      is used to set <command>elogind</command> as the default
     242      program for session tracking.
    237243    </para>
    238244
  • packages.ent

    r2f54800b r4ef4636b  
    275275<!ENTITY cups-pk-helper-version       "0.2.6">
    276276<!ENTITY dbus-version                 "1.12.12">   <!-- Even minors only -->
     277<!ENTITY elogind-version              "239.3">
    277278<!ENTITY eudev-version                "1.7">
    278279<!ENTITY fcron-version                "3.2.1">
  • postlfs/security/polkit.xml

    r2f54800b r4ef4636b  
    8181        </para>
    8282      </listitem>
     83      <listitem revision="sysv">
     84        <para>
     85          Required patch:
     86          <ulink url="&patch-root;/polkit-&polkit-version;-elogind-1.patch"/>
     87        </para>
     88      </listitem>
    8389    </itemizedlist>
    8490
     
    9197    </para>
    9298
    93     <bridgehead renderas="sect4" revision="systemd">Recommended</bridgehead>
    94     <para role="recommended" revision="systemd">
     99    <bridgehead renderas="sect4">Recommended</bridgehead>
     100    <para role="recommended">
    95101      <xref linkend="linux-pam"/>
    96102    </para>
    97103
    98     <note revision="systemd">
     104    <note>
    99105      <para>
    100         Since <command>systemd-logind</command> uses PAM to register user
    101         sessions, it is a good idea to build <application>Polkit</application>
    102         with PAM support so <command>systemd-logind</command> can track
    103         <application>Polkit</application> sessions.
     106        Since <phrase revision="sysv"><command>elogind</command></phrase>
     107        <phrase revision="systemd"><command>systemd-logind</command></phrase>
     108        uses PAM to register user sessions, it is a good idea to build
     109        <application>Polkit</application> with PAM support so
     110        <phrase revision="sysv"><command>elogind</command></phrase>
     111        <phrase revision="systemd"><command>systemd-logind</command></phrase>
     112        can track <application>Polkit</application> sessions.
    104113      </para>
    105114    </note>
     
    115124      <xref linkend="DocBook"/>,
    116125      <xref linkend="docbook-xsl"/>,
    117       <xref linkend="gtk-doc"/>, <phrase revision="systemd">and </phrase>
    118       <xref linkend="libxslt"/><phrase revision="sysv">, and
    119       <xref linkend="linux-pam"/></phrase>
    120     </para>
    121 
    122     <bridgehead renderas="sect4" revision="systemd">Required Runtime Dependencies</bridgehead>
    123     <para role="required" revision="systemd">
    124       <xref role="runtime" linkend="systemd"/>
     126      <xref linkend="gtk-doc"/>, and
     127      <xref linkend="libxslt"/>
     128    </para>
     129
     130    <bridgehead renderas="sect4">Required Runtime Dependencies</bridgehead>
     131    <para role="required">
     132      <phrase revision="sysv"><xref role="runtime" linkend="elogind"/></phrase>
     133      <phrase revision="systemd"><xref role="runtime" linkend="systemd"/></phrase>
    125134    </para>
    126135
     
    169178<screen><userinput>sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure</userinput></screen>
    170179    </note>
    171 <!--
    172     <para>Fix an issue identified upstream after the package release:</para>
    173 
    174 <screen><userinput>sed -e '/JS_ReportWarningUTF8/s/,/, "%s",/'  \
    175         -i  src/polkitbackend/polkitbackendjsauthority.cpp</userinput></screen> -->
    176180
    177181    <para>
     
    180184
    181185<screen><userinput>patch -Np1 -i ../polkit-&polkit-version;-security_patch-2.patch</userinput></screen>
     186
     187    <para revision="sysv">
     188      Apply a patch to fix issues with elogind:
     189    </para>
     190
     191<screen revision="sysv"><userinput>patch -Np1 -i ../polkit-0.115-elogind-1.patch &amp;&amp;
     192autoreconf -fi</userinput></screen>
    182193
    183194    <para>
     
    186197    </para>
    187198
    188 <screen revision="sysv"><userinput>./configure --prefix=/usr                    \
    189             --sysconfdir=/etc                \
    190             --localstatedir=/var             \
    191             --disable-static                 \
    192             --enable-libsystemd-login=no     \
    193             --enable-libelogind=no           \
    194             --with-authfw=shadow             &amp;&amp;
    195 make</userinput></screen>
    196 
    197 <screen revision="systemd"><userinput>./configure --prefix=/usr                    \
     199<screen><userinput>./configure --prefix=/usr                    \
    198200            --sysconfdir=/etc                \
    199201            --localstatedir=/var             \
     
    219221    <title>Command Explanations</title>
    220222
    221     <para revision="sysv">
    222       <parameter>--enable-libsystemd-login=no</parameter>: This parameter fixes
    223       building without <application>systemd</application>, which is not part
    224       of LFS/BLFS. If you use <application>systemd</application>,
    225       replace "no" by "yes".
    226     </para>
    227 
    228     <para revision="sysv">
    229       <parameter>--with-authfw=shadow</parameter>: This parameter configures the
    230       package to use the <application>Shadow</application> rather than the
    231       <application>Linux-PAM</application> Authentication framework. Change
    232       the argument to 'pam' if you would like to use
    233       <application>Linux-PAM</application>.
    234     </para>
    235 
    236     <para revision="systemd">
     223    <para>
    237224      <option>--with-authfw=shadow</option>: This switch enables the
    238225      package to use the <application>Shadow</application> rather than the
  • x/installing/xorg-server.xml

    r2f54800b r4ef4636b  
    9292
    9393    <bridgehead renderas="sect4">Recommended</bridgehead>
    94     <para role="recommended" revision="sysv">
    95       <xref linkend="libepoxy"/> (required for glamor, see command
    96       explanations below)
    97     </para>
    98     <para role="recommended" revision="systemd">
     94    <para role="recommended">
    9995      <xref linkend="libepoxy"/> (needed for glamor and Xwayland),
    10096      <xref linkend="wayland"/> (needed for Xwayland),
    10197      <xref linkend="wayland-protocols"/>, and
    102       <xref linkend="systemd"/>
     98      <phrase revision="sysv"><xref linkend="elogind"/></phrase>
     99      <phrase revision="systemd"><xref linkend="systemd"/></phrase>
    103100    </para>
    104101
     
    115112      <xref linkend="xcb-util-wm"/> (all three to build Xephyr),
    116113      <xref linkend="xmlto"/> (to build documentation),
    117       <phrase revision="sysv"><xref linkend="wayland"/> (needed for Xwayland),
    118       <xref linkend="wayland-protocols"/>,</phrase>
    119114      <ulink url="http://download.savannah.gnu.org/releases/libunwind">libunwind</ulink>, and
    120115      <ulink url="https://www.x.org/archive/individual/doc/">xorg-sgml-doctools</ulink> (to build documentation)
     
    140135    </para>
    141136
    142 <screen revision="sysv"><userinput>./configure $XORG_CONFIG            \
    143            --enable-glamor          \
    144            --enable-install-setuid  \
    145            --enable-suid-wrapper    \
    146            --disable-systemd-logind \
    147            --with-xkb-output=/var/lib/xkb &amp;&amp;
    148 make</userinput></screen>
    149 
    150 <screen revision="systemd"><userinput>./configure $XORG_CONFIG          \
     137<screen revision="sysv"><userinput>./configure $XORG_CONFIG          \
    151138            --enable-glamor       \
    152139            --enable-suid-wrapper \
     
    154141make</userinput></screen>
    155142
     143<screen revision="systemd"><userinput>./configure $XORG_CONFIG          \
     144            --enable-glamor       \
     145            --with-xkb-output=/var/lib/xkb &amp;&amp;
     146make</userinput></screen>
     147
    156148    <para>
    157149      To test the results, issue: <command>make check</command>. You
     
    165157    </para>
    166158
    167 <screen role="root" revision="sysv"><userinput>make install &amp;&amp;
    168 mkdir -pv /etc/X11/xorg.conf.d &amp;&amp;
    169 cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"
    170 <literal>/tmp/.ICE-unix dir 1777 root root
    171 /tmp/.X11-unix dir 1777 root root</literal>
    172 EOF</userinput></screen>
    173 
    174 <screen role="root" revision="systemd"><userinput>make install &amp;&amp;
     159<screen role="root"><userinput>make install &amp;&amp;
    175160mkdir -pv /etc/X11/xorg.conf.d</userinput></screen>
    176161
     
    189174
    190175    <para revision="sysv">
    191       <parameter>--enable-install-setuid</parameter>: The Xorg binary must run
     176      <parameter>--enable-install-setuid</parameter>: If not using
     177      <xref linkend="elogind"/>, the Xorg binary must run
    192178      as the root user. This switch ensures that the binary is installed
    193179      setuid when <command>make</command> is run by an unprivileged user.
     
    197183      <parameter>--enable-suid-wrapper</parameter>: Build suid-root wrapper for
    198184      legacy driver support on rootless xserver systems.
    199     </para>
    200 
    201     <para revision="sysv">
    202       <parameter>--disable-systemd-logind</parameter>: Do not build
    203       systemd-logind support, otherwise, an error (EE), logged in
    204       <filename>/var/log/Xorg.0.log</filename>, occurs when starting the X
    205       server.  Systemd is not supported by this (sysv) version of BLFS.
    206185    </para>
    207186
     
    211190      bit to the Xorg executable, allowing Xorg Server to work
    212191      without having the systemd PAM module installed and set up.
    213     </para>
    214 
    215     <para revision="sysv">
    216       <command>cat &gt;&gt; /etc/sysconfig/createfiles...</command>: This
    217       command creates the <filename class="directory">/tmp/.ICE-unix</filename>
    218       and <filename class="directory">/tmp/.X11-unix</filename> directories at
    219       startup, and ensures that the permissions and ownership are correct as
    220       required by the server.
    221192    </para>
    222193
Note: See TracChangeset for help on using the changeset viewer.