source: chapter06/dbus.xml@ fd8ef110

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since fd8ef110 was fd8ef110, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Update to Linux-3.14.2
Misc changes to dbus text and a new instruction.
Some additional minor tweaks.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10555 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.5 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">
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-ch6-sbu;</seg>
40 <seg>&dbus-ch6-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 --docdir=/usr/share/doc/dbus-&dbus-version; \
55 --with-console-auth-dir=/run/console</userinput></screen>
56
57 <variablelist>
58 <title>The meaning of the configure options:</title>
59
60 <varlistentry>
61 <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
62 <listitem>
63 <para>This specifies the location of the ConsoleKit auth
64 directory.</para>
65 </listitem>
66 </varlistentry>
67
68 </variablelist>
69
70 <para>Compile the package:</para>
71
72<screen><userinput remap="make">make</userinput></screen>
73
74 <para>This package does come with a testsuite, but it requires several
75 packages that are not included in LFS. Instructions for running the
76 testsuite can be found in the BLFS book at
77 <ulink url="&blfs-root;/view/&short-version;/general/dbus.html"/>.</para>
78
79 <para>Install the package:</para>
80
81<screen><userinput remap="install">make install</userinput></screen>
82
83 <para>The shared library needs to be moved to
84 <filename class="directory">/lib</filename>, and as a result the
85 <filename class="extension">.so</filename> file in
86 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
87
88<screen><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
89ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
90
91 <para>Create a symlink, so that D-Bus and Systemd can use the same
92 <filename>machine-id</filename> file:</para>
93
94<screen><userinput remap="install">ln -sv /etc/machine-id /var/lib/dbus</userinput></screen>
95
96 <para>Finally, generate a D-Bus UUID to avoid possible warnings
97 when building some packages in BLFS:</para>
98
99<screen><userinput remap="install">dbus-uuidgen --ensure</userinput></screen>
100
101 </sect2>
102
103 <sect2 id="contents-dbus" role="content">
104 <title>Contents of D-Bus</title>
105
106 <segmentedlist>
107 <segtitle>Installed programs</segtitle>
108 <segtitle>Installed libraries</segtitle>
109 <segtitle>Installed directories</segtitle>
110
111 <seglistitem>
112 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
113 dbus-send, and dbus-uuidgen</seg>
114 <seg>libdbus-1.{a,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 /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>Used to clean up 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>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-send">
168 <term><command>dbus-send</command></term>
169 <listitem>
170 <para>Sends a message to a D-Bus message bus.</para>
171 <indexterm zone="ch-system-dbus dbus-send">
172 <primary sortas="b-dbus-send">dbus-send</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="dbus-uuidgen">
178 <term><command>dbus-uuidgen</command></term>
179 <listitem>
180 <para>Generates a universally unique ID.</para>
181 <indexterm zone="ch-system-dbus dbus-uuidgen">
182 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 </variablelist>
188
189 </sect2>
190
191</sect1>
Note: See TracBrowser for help on using the repository browser.