source: general/sysutils/accountsservice.xml@ 77fb07ae

12.1 12.2 gimp3 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 77fb07ae was b6c43e5, checked in by Xi Ruoyao <xry111@…>, 8 months ago

accountsservice: Fix the test suite for Python 3.12, and remove "systemctl enable"

The assertEquals function has been removed.

There is no point to always start it on boot, just let D-Bus start it on
demand.

Link: https://docs.python.org/3.12/whatsnew/3.12.html#id3

  • Property mode set to 100644
File size: 8.2 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[eba70158]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY accountsservice-download-http
[8dfc5c3]8 "https://www.freedesktop.org/software/accountsservice/accountsservice-&accountsservice-version;.tar.xz">
[eba70158]9 <!ENTITY accountsservice-download-ftp " ">
[b751256]10 <!ENTITY accountsservice-md5sum "03dccfe1b306b7ca19743e86d118e64d">
11 <!ENTITY accountsservice-size "621 KB">
12 <!ENTITY accountsservice-buildsize "9.8 MB (add 0.5 MB for tests)">
13 <!ENTITY accountsservice-time "less than 0.1 SBU (with tests)">
[eba70158]14]>
15
[51dfb3e]16<sect1 id="accountsservice" xreflabel="AccountsService-&accountsservice-version;">
[eba70158]17 <?dbhtml filename="accountsservice.html"?>
18
19
20 <title>AccountsService-&accountsservice-version;</title>
21
22 <indexterm zone="accountsservice">
23 <primary sortas="a-AccountsService">AccountsService</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to AccountsService</title>
28
29 <para>
30 The <application>AccountsService</application> package provides a
31 set of <application>D-Bus</application> interfaces for querying
32 and manipulating user account information and an implementation
33 of those interfaces based on the usermod(8), useradd(8) and
34 userdel(8) commands.
35 </para>
36
[172c283]37 &lfs120_checked;
[eba70158]38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&accountsservice-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&accountsservice-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &accountsservice-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &accountsservice-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &accountsservice-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &accountsservice-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">AccountsService Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
[51eb0bf]77 <!--<xref linkend="libgcrypt"/> and-->
[eba70158]78 <xref linkend="polkit"/>
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
[1996a17a]83 <xref linkend="gobject-introspection"/>,
[51dfb3e]84 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
[0fab41a]85 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
[1996a17a]86 (runtime)</phrase>, and
87 <xref linkend="vala"/>
[eba70158]88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
[a20845e7]92 <xref linkend="gtk-doc"/> and
[eba70158]93 <xref linkend="xmlto"/>
[1996a17a]94 </para>
95
96 <bridgehead renderas="sect4">Optional (for tests)</bridgehead>
97 <para role="optional">
[e725e77]98 <xref linkend="python-dbusmock"/> and
99 <xref linkend="pygobject3"/>
[a20845e7]100 <!-- I did not have gtk-doc installed this time, and it worked fine. -->
[eba70158]101 </para>
102
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of AccountsService</title>
[b751256]107
108 <para>
[211a019]109 First, rename a directory whose presence prevents the build system from
110 running if <xref linkend="python-dbusmock"/> is not installed:
111 </para>
112
113<screen><userinput>mv tests/dbusmock{,-tests}</userinput></screen>
114
115 <para>
[b6c43e5]116 Then fix a test script so that the new directory is found, and adapt
117 it for Python 3.12.0 or later:
[211a019]118 </para>
119
120<screen><userinput>sed -e '/accounts_service\.py/s/dbusmock/dbusmock-tests/' \
[b6c43e5]121 -e 's/assertEquals/assertEqual/' \
[34d1c20]122 -i tests/test-libaccountsservice.py</userinput></screen>
[211a019]123
124 <para>
125 Fix one test that fails if the <option>en_IE.UTF-8</option> locale
[b751256]126 is not installed:
[34623f0e]127 </para>
128
[b751256]129<screen><userinput>sed -i '/^SIMULATED_SYSTEM_LOCALE/s/en_IE.UTF-8/en_HK.iso88591/' tests/test-daemon.py</userinput></screen>
130
[eba70158]131 <para>
132 Install <application>AccountsService</application> by running the following
133 commands:
134 </para>
135
[51dfb3e]136<screen revision="sysv"><userinput>mkdir build &amp;&amp;
[c89c282]137cd build &amp;&amp;
[1575ce1]138
[91318eb]139meson setup .. \
140 --prefix=/usr \
141 --buildtype=release \
142 -Dadmin_group=adm \
143 -Delogind=true \
144 -Dsystemdsystemunitdir=no &amp;&amp;
[51dfb3e]145ninja</userinput></screen>
146
147<screen revision="systemd"><userinput>mkdir build &amp;&amp;
[c89c282]148cd build &amp;&amp;
[51dfb3e]149
[91318eb]150meson setup .. \
151 --prefix=/usr \
[20f070d8]152 --buildtype=release \
[91318eb]153 -Dadmin_group=adm &amp;&amp;
[a20845e7]154ninja</userinput></screen>
[eba70158]155
156 <para>
[b751256]157 To test the package, issue <command>ninja test</command>.
[eba70158]158 </para>
159
160 <para>
161 Now, as the <systemitem class="username">root</systemitem> user:
162 </para>
163
[a20845e7]164<screen role="root"><userinput>ninja install</userinput></screen>
[eba70158]165
166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
[20f070d8]171 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
172 href="../../xincludes/meson-buildtype-release.xml"/>
173
[eba70158]174 <para>
[a20845e7]175 <parameter>-Dadmin_group=adm</parameter>: This switch sets
[eba70158]176 the group for administrator accounts.
177 </para>
178
[9a363500]179 <para>
[a20845e7]180 <option>-Ddocbook=true</option>: This switch enables building
[1996a17a]181 the D-Bus interface API documentation (needs <xref linkend="xmlto"/>).
182 </para>
183
184 <para>
185 <option>-Dgtk_doc=true</option>: This switch enables building
186 the libaccountsservice API documentation (needs
187 <xref linkend="gtk-doc"/>).
188 </para>
189
190 <para>
191 <option>-Dvapi=false</option>: This switch disables building
192 the vala bindings. Use it if you have not installed
193 <xref linkend="vala"/>.
[9a363500]194 </para>
[20f070d8]195
[eba70158]196 </sect2>
197
198 <sect2 role="configuration">
199 <title>Configuring AccountsService</title>
200
[4045ec3d]201 <para>
202 To allow users in the adm group to be listed as Administrators,
203 execute the following commands as the
204 <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>cat &gt; /etc/polkit-1/rules.d/40-adm.rules &lt;&lt; "EOF"
208<literal>polkit.addAdminRule(function(action, subject) {
209 return ["unix-group:adm"];
210 });</literal>
211EOF</userinput></screen>
212
[eba70158]213 </sect2>
214
215 <sect2 role="content">
216 <title>Contents</title>
217
218 <segmentedlist>
219 <segtitle>Installed Programs</segtitle>
220 <segtitle>Installed Libraries</segtitle>
221 <segtitle>Installed Directories</segtitle>
222
223 <seglistitem>
224 <seg>
[048aa04]225 accounts-daemon (in
226 <filename class="directory">/usr/libexec</filename>)
[eba70158]227 </seg>
228 <seg>
229 libaccountsservice.so
230 </seg>
231 <seg>
232 /usr/include/accountsservice-1.0,
[048aa04]233 /usr/share/accountsservice,
234 /usr/share/gtk-doc/html/libaccountsservice (optional), and
[eba70158]235 /var/lib/AccountsService
236 </seg>
237 </seglistitem>
238 </segmentedlist>
239
240 <variablelist>
241 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
242 <?dbfo list-presentation="list"?>
243 <?dbhtml list-presentation="table"?>
244
245 <varlistentry id="accounts-daemon">
246 <term><command>accounts-daemon</command></term>
247 <listitem>
248 <para>
[4c24eb0a]249 is the <application>AccountsService</application> daemon
[eba70158]250 </para>
251 <indexterm zone="accountsservice accounts-daemon">
252 <primary sortas="b-accounts-daemon">accounts-daemon</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="libaccountsservice">
258 <term><filename class="libraryfile">libaccountsservice.so</filename></term>
259 <listitem>
260 <para>
[4c24eb0a]261 contains the <application>AccountsService</application> API functions
[eba70158]262 </para>
263 <indexterm zone="accountsservice libaccountsservice">
264 <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 </variablelist>
270
271 </sect2>
272
273</sect1>
Note: See TracBrowser for help on using the repository browser.