source: chapter08/dbus.xml@ e8e771a

multilib
Last change on this file since e8e771a was d1cbe53, checked in by Xi Ruoyao <xry111@…>, 14 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
RevLine 
[cba2d4e]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
[35a5259]8<sect1 id="ch-system-dbus" role="wrap" revision="systemd">
[cba2d4e]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>
[fb386e0]39 <seg>&dbus-fin-sbu;</seg>
40 <seg>&dbus-fin-du;</seg>
[cba2d4e]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
[6e8c493]51<screen><userinput remap="configure">./configure --prefix=/usr \
52 --sysconfdir=/etc \
53 --localstatedir=/var \
[408f4ae8]54 --runstatedir=/run \
[6e8c493]55 --disable-static \
56 --disable-doxygen-docs \
57 --disable-xml-docs \
[89c3f71]58 --docdir=/usr/share/doc/dbus-&dbus-version; \
[6e8c493]59 --with-system-socket=/run/dbus/system_bus_socket</userinput></screen>
[cba2d4e]60
61 <variablelist>
62 <title>The meaning of the configure options:</title>
63
[6e8c493]64 <varlistentry>
65 <term>
[408f4ae8]66 <parameter>--runstatedir=/run</parameter> and
[6e8c493]67 <parameter>--with-system-socket=/run/dbus/system_bus_socket</parameter>
68 </term>
69 <listitem>
[69854d2a]70 <para>These cause the PID file and the system bus socket
[6e8c493]71 to be in <filename class="directory">/run</filename>, instead of
[69854d2a]72 the deprecated <filename class="directory">/var/run</filename>.</para>
[6e8c493]73 </listitem>
74 </varlistentry>
75
[cba2d4e]76 </variablelist>
77
78 <para>Compile the package:</para>
79
80<screen><userinput remap="make">make</userinput></screen>
81
[d1cbe53]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
[cba2d4e]87 packages that are not included in LFS. Instructions for running the
[d1cbe53]88 comprehensive test suite can be found in
89 <ulink url="&blfs-book;general/dbus.html">the BLFS book</ulink>.</para>
[cba2d4e]90
91 <para>Install the package:</para>
92
93<screen><userinput remap="install">make install</userinput></screen>
94
[9e7475a]95 <para>Create a symlink so that D-Bus and systemd can use the same
[cba2d4e]96 <filename>machine-id</filename> file:</para>
97
[1118b17]98<screen><userinput remap="install">ln -sfv /etc/machine-id /var/lib/dbus</userinput></screen>
[c06f49a]99
[cba2d4e]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,
[d672ab7]112 dbus-run-session, dbus-send, dbus-test-tool,
[201167db]113 dbus-update-activation-environment, and dbus-uuidgen</seg>
[d1cbe53]114 <seg>libdbus-1.so</seg>
[cba2d4e]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;,
[1118b17]117 and /var/lib/dbus</seg>
[cba2d4e]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>
[9e7475a]129 <para>is used to remove leftover sockets in a directory</para>
[cba2d4e]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>
[9e7475a]139 <para>Is the D-Bus message bus daemon</para>
[cba2d4e]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>
[0d84af1]149 <para>Starts <command>dbus-daemon</command> from a shell
[1118b17]150 script</para>
[cba2d4e]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>
[0d84af1]160 <para>Monitors messages passing through a D-Bus message bus</para>
[cba2d4e]161 <indexterm zone="ch-system-dbus dbus-monitor">
162 <primary sortas="b-dbus-monitor">dbus-monitor</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
[1118b17]167 <varlistentry id="dbus-run-session">
168 <term><command>dbus-run-session</command></term>
169 <listitem>
[0d84af1]170 <para>Starts a session bus instance of <command>dbus-daemon</command>
[1118b17]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
[cba2d4e]179 <varlistentry id="dbus-send">
180 <term><command>dbus-send</command></term>
181 <listitem>
[0d84af1]182 <para>Sends a message to a D-Bus message bus</para>
[cba2d4e]183 <indexterm zone="ch-system-dbus dbus-send">
184 <primary sortas="b-dbus-send">dbus-send</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
[201167db]189 <varlistentry id="dbus-test-tool">
190 <term><command>dbus-test-tool</command></term>
191 <listitem>
[9e7475a]192 <para>Is a tool to help packages test
[0d84af1]193 <application>D-Bus</application></para>
[201167db]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>
[0d84af1]204 <para>Updates environment variables that will be set for
205 <application>D-Bus</application> session services</para>
[201167db]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
[cba2d4e]212 <varlistentry id="dbus-uuidgen">
213 <term><command>dbus-uuidgen</command></term>
214 <listitem>
[0d84af1]215 <para>Generates a universally unique ID</para>
[cba2d4e]216 <indexterm zone="ch-system-dbus dbus-uuidgen">
217 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
[1118b17]222 <varlistentry id="libdbus-1">
223 <term><filename class="libraryfile">libdbus-1</filename></term>
224 <listitem>
[0d84af1]225 <para>Contains API functions used to communicate with the D-Bus
[1118b17]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
[cba2d4e]233 </variablelist>
234
235 </sect2>
236
237</sect1>
Note: See TracBrowser for help on using the repository browser.