Ignore:
Timestamp:
06/05/2016 05:57:10 AM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
422bd2c
Parents:
eb3dbe3
Message:

[Systemd merge] - Complete changes for Chapter 4.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/polkit.xml

    reb3dbe3 rf586237  
    8181    </para>
    8282
     83    <bridgehead renderas="sect4" revision="systemd">Recommended</bridgehead>
     84    <para role="recommended" revision="systemd">
     85      <xref linkend="linux-pam"/>
     86    </para>
     87
     88    <note revision="systemd">
     89      <para>
     90        Since <command>systemd-logind</command> uses PAM to register user
     91        sessions, it is a good idea to build <application>Polkit</application>
     92        with PAM support so <command>systemd-logind</command> can track
     93        <application>Polkit</application> sessions.
     94      </para>
     95    </note>
     96
     97
    8398    <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
    8499    <para role="optional">
     
    90105      <xref linkend="DocBook"/>,
    91106      <xref linkend="docbook-xsl"/>,
    92       <xref linkend="gtk-doc"/>,
    93       <xref linkend="libxslt"/> and
    94       <xref linkend="linux-pam"/>
     107      <xref linkend="gtk-doc"/>, <phrase revision="systemd">and </phrase>
     108      <xref linkend="libxslt"/><phrase revision="sysv">, and
     109      <xref linkend="linux-pam"/></phrase>
     110    </para>
     111
     112    <bridgehead renderas="sect4" revision="systemd">Required Runtime Dependencies</bridgehead>
     113    <para role="required" revision="systemd">
     114      <xref linkend="systemd"/>
    95115    </para>
    96116
    97117    <note>
    98118      <para>
    99         If <xref linkend="libxslt"/> is installed, then <xref linkend="DocBook"/>
    100         and <xref linkend="docbook-xsl"/> are required. If you have installed
    101         <xref linkend="libxslt"/>, but you do not want to install any of the
    102         DocBook packages mentioned, you will need to use
    103         <option>--disable-man-pages</option> in the instructions below.
     119        If <xref linkend="libxslt"/> is installed,
     120        then <xref linkend="DocBook"/> and <xref linkend="docbook-xsl"/> are
     121        required. If you have installed <xref linkend="libxslt"/>, but you do
     122        not want to install any of the DocBook packages mentioned, you will
     123        need to use <option>--disable-man-pages</option> in the instructions
     124        below.
    104125      </para>
    105126    </note>
     
    124145        -g polkitd -s /bin/false polkitd</userinput></screen>
    125146
     147    <note revision="systemd">
     148      <para>
     149        When building <application>Polkit</application> with
     150        <application>systemd</application> logind support, the
     151        <command>configure</command> script explicitly checks if
     152        system is booted using <application>systemd</application>.
     153        This can cause problems if building the package in chroot,
     154        where the <command>configure</command> would fail to
     155        detect <application>systemd</application>. To workaround
     156        the problem, simply run the following command:
     157      </para>
     158
     159<screen><userinput>sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure</userinput></screen>
     160    </note>
     161
    126162    <para>
    127163      Install <application>Polkit</application> by running the following
     
    129165    </para>
    130166
    131 <screen><userinput>./configure --prefix=/usr                \
     167<screen revision="sysv"><userinput>./configure --prefix=/usr                \
    132168            --sysconfdir=/etc            \
    133169            --localstatedir=/var         \
     
    137173make</userinput></screen>
    138174
     175<screen revision="systemd"><userinput>./configure --prefix=/usr        \
     176            --sysconfdir=/etc    \
     177            --localstatedir=/var \
     178            --disable-static     &amp;&amp;
     179make</userinput></screen>
     180
    139181    <para>
    140182      To test the results, issue: <command>make check</command>.
     
    156198    <title>Command Explanations</title>
    157199
    158     <para>
     200    <para revision="sysv">
    159201      <parameter>--enable-libsystemd-login=no</parameter>: This parameter fixes
    160202      building without <application>systemd</application>, which is not part
     
    163205    </para>
    164206
    165     <para>
     207    <para revision="sysv">
    166208      <parameter>--with-authfw=shadow</parameter>: This parameter configures the
    167209      package to use the <application>Shadow</application> rather than the
    168       <application>Linux PAM</application> Authentication framework. Remove it
    169       if you would like to use <application>Linux PAM</application>.
     210      <application>Linux-PAM</application> Authentication framework. Remove it
     211      if you would like to use <application>Linux-PAM</application>.
     212    </para>
     213
     214    <para revision="systemd">
     215      <option>--with-authfw=shadow</option>: This switch enables the
     216      package to use the <application>Shadow</application> rather than the
     217      <application>Linux PAM</application> Authentication framework. Use it
     218      if you have not installed <application>Linux PAM</application>.
    170219    </para>
    171220
Note: See TracChangeset for help on using the changeset viewer.