source: chapter08/dbus.xml@ d1cbe53

12.0 12.0-rc1 12.1 12.1-rc1 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since d1cbe53 was d1cbe53, checked in by Xi Ruoyao <xry111@…>, 13 months ago

dbus: Enable tests

Though many tests are disabled w/o optional dependencies, we can at
least run a dozen of tests.

  • Property mode set to 100644
File size: 8.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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
8<sect1 id="ch-system-dbus" role="wrap" revision="systemd">
9 <?dbhtml filename="dbus.html"?>
10
11 <sect1info condition="script">
12 <productname>dbus</productname>
13 <productnumber>&dbus-version;</productnumber>
14 <address>&dbus-url;</address>
15 </sect1info>
16
17 <title>D-Bus-&dbus-version;</title>
18
19 <indexterm zone="ch-system-dbus">
20 <primary sortas="a-dbus">D-Bus</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>D-Bus is a message bus system, a simple way for applications to talk
27 to one another. D-Bus supplies both a system daemon (for events such as
28 "new hardware device added" or "printer queue changed") and a
29 per-user-login-session daemon (for general IPC needs among user
30 applications). Also, the message bus is built on top of a general one-to-one
31 message passing framework, which can be used by any two applications to
32 communicate directly (without going through the message bus daemon).</para>
33
34 <segmentedlist>
35 <segtitle>&buildtime;</segtitle>
36 <segtitle>&diskspace;</segtitle>
37
38 <seglistitem>
39 <seg>&dbus-fin-sbu;</seg>
40 <seg>&dbus-fin-du;</seg>
41 </seglistitem>
42 </segmentedlist>
43
44 </sect2>
45
46 <sect2 role="installation">
47 <title>Installation of D-Bus</title>
48
49 <para>Prepare D-Bus for compilation:</para>
50
51<screen><userinput remap="configure">./configure --prefix=/usr \
52 --sysconfdir=/etc \
53 --localstatedir=/var \
54 --runstatedir=/run \
55 --disable-static \
56 --disable-doxygen-docs \
57 --disable-xml-docs \
58 --docdir=/usr/share/doc/dbus-&dbus-version; \
59 --with-system-socket=/run/dbus/system_bus_socket</userinput></screen>
60
61 <variablelist>
62 <title>The meaning of the configure options:</title>
63
64 <varlistentry>
65 <term>
66 <parameter>--runstatedir=/run</parameter> and
67 <parameter>--with-system-socket=/run/dbus/system_bus_socket</parameter>
68 </term>
69 <listitem>
70 <para>These cause the PID file and the system bus socket
71 to be in <filename class="directory">/run</filename>, instead of
72 the deprecated <filename class="directory">/var/run</filename>.</para>
73 </listitem>
74 </varlistentry>
75
76 </variablelist>
77
78 <para>Compile the package:</para>
79
80<screen><userinput remap="make">make</userinput></screen>
81
82 <para>To test the results, issue:</para>
83
84<screen><userinput remap="test">make check</userinput></screen>
85
86 <para>Many tests are disabled because they require additional
87 packages that are not included in LFS. Instructions for running the
88 comprehensive test suite can be found in
89 <ulink url="&blfs-book;general/dbus.html">the BLFS book</ulink>.</para>
90
91 <para>Install the package:</para>
92
93<screen><userinput remap="install">make install</userinput></screen>
94
95 <para>Create a symlink so that D-Bus and systemd can use the same
96 <filename>machine-id</filename> file:</para>
97
98<screen><userinput remap="install">ln -sfv /etc/machine-id /var/lib/dbus</userinput></screen>
99
100 </sect2>
101
102 <sect2 id="contents-dbus" role="content">
103 <title>Contents of D-Bus</title>
104
105 <segmentedlist>
106 <segtitle>Installed programs</segtitle>
107 <segtitle>Installed libraries</segtitle>
108 <segtitle>Installed directories</segtitle>
109
110 <seglistitem>
111 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
112 dbus-run-session, dbus-send, dbus-test-tool,
113 dbus-update-activation-environment, and dbus-uuidgen</seg>
114 <seg>libdbus-1.so</seg>
115 <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
116 /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version;,
117 and /var/lib/dbus</seg>
118 </seglistitem>
119 </segmentedlist>
120
121 <variablelist>
122 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
123 <?dbfo list-presentation="list"?>
124 <?dbhtml list-presentation="table"?>
125
126 <varlistentry id="dbus-cleanup-sockets">
127 <term><command>dbus-cleanup-sockets</command></term>
128 <listitem>
129 <para>is used to remove leftover sockets in a directory</para>
130 <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
131 <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="dbus-daemon">
137 <term><command>dbus-daemon</command></term>
138 <listitem>
139 <para>Is the D-Bus message bus daemon</para>
140 <indexterm zone="ch-system-dbus dbus-daemon">
141 <primary sortas="b-dbus-daemon">dbus-daemon</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="dbus-launch">
147 <term><command>dbus-launch</command></term>
148 <listitem>
149 <para>Starts <command>dbus-daemon</command> from a shell
150 script</para>
151 <indexterm zone="ch-system-dbus dbus-launch">
152 <primary sortas="b-dbus-launch">dbus-launch</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="dbus-monitor">
158 <term><command>dbus-monitor</command></term>
159 <listitem>
160 <para>Monitors messages passing through a D-Bus message bus</para>
161 <indexterm zone="ch-system-dbus dbus-monitor">
162 <primary sortas="b-dbus-monitor">dbus-monitor</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="dbus-run-session">
168 <term><command>dbus-run-session</command></term>
169 <listitem>
170 <para>Starts a session bus instance of <command>dbus-daemon</command>
171 from a shell script and starts a specified program in that
172 session</para>
173 <indexterm zone="ch-system-dbus dbus-run-session">
174 <primary sortas="b-dbus-run-session">dbus-run-session</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="dbus-send">
180 <term><command>dbus-send</command></term>
181 <listitem>
182 <para>Sends a message to a D-Bus message bus</para>
183 <indexterm zone="ch-system-dbus dbus-send">
184 <primary sortas="b-dbus-send">dbus-send</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="dbus-test-tool">
190 <term><command>dbus-test-tool</command></term>
191 <listitem>
192 <para>Is a tool to help packages test
193 <application>D-Bus</application></para>
194 <indexterm zone="ch-system-dbus dbus-test-tool">
195 <primary sortas="b-dbus-test-tool">dbus-test-tool</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <!-- This is a very long command name. Excuse the long <primary> statement below. -->
201 <varlistentry id="dbus-update-activation-environment">
202 <term><command>dbus-update-activation-environment</command></term>
203 <listitem>
204 <para>Updates environment variables that will be set for
205 <application>D-Bus</application> session services</para>
206 <indexterm zone="ch-system-dbus dbus-update-activation-environment">
207 <primary sortas="b-dbus-update-activation-environment">dbus-update-activation-environment</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="dbus-uuidgen">
213 <term><command>dbus-uuidgen</command></term>
214 <listitem>
215 <para>Generates a universally unique ID</para>
216 <indexterm zone="ch-system-dbus dbus-uuidgen">
217 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="libdbus-1">
223 <term><filename class="libraryfile">libdbus-1</filename></term>
224 <listitem>
225 <para>Contains API functions used to communicate with the D-Bus
226 message bus</para>
227 <indexterm zone="ch-system-dbus libdbus-1">
228 <primary sortas="c-libdbus-1">libdbus-1</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 </variablelist>
234
235 </sect2>
236
237</sect1>
Note: See TracBrowser for help on using the repository browser.