Changes in chapter08/systemd.xml [df9c52e:c2ccad1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/systemd.xml
rdf9c52e rc2ccad1 40 40 <sect2 role="installation"> 41 41 <title>Installation of systemd</title> 42 43 <para>44 Remove several inappropriate uses of the <literal>pure</literal>45 attribute that cause runtime issues when the package is built46 with gcc-13 or later:47 </para>48 49 <screen><userinput remap='pre'>sed '/bus_message_type_from_string/s/_pure_//' \50 -i src/libsystemd/sd-bus/bus-internal.h &&51 sed '/devt_hash_func/s/_pure_//' \52 -i src/basic/hash-funcs.h &&53 sed '/job_get_timeout/s/_pure_//' \54 -i src/core/job.h</userinput></screen>55 42 56 43 <para>Remove two unneeded groups, … … 206 193 <!-- Please make sure systemd man pages tarball has a common leading 207 194 component in the path. --> 208 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen> 195 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-version;.tar.xz \ 196 --no-same-owner --strip-components=1 \ 197 -C /usr/share/man</userinput></screen> 209 198 210 199 <para>Create the <filename>/etc/machine-id</filename> file needed by … … 234 223 </sect2> 235 224 236 <!-- - - - - - - - - - -->237 <!-- Multilib - 32bit -->238 <!-- - - - - - - - - - -->239 240 <sect2 arch="ml_32,ml_all" role="installation">241 <title>Installation of systemd - 32-bit</title>242 243 <para>Clean previous build:</para>244 245 <screen><userinput remap="pre">rm -rf *</userinput></screen>246 247 <para>Create a symlink to work around missing xsltproc:</para>248 249 <!-- screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen -->250 <screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>251 252 <!-- with cross-LFS we have util-linux in place:253 <para>Because we have not yet installed the final version of Util-Linux,254 create links to the libraries in the approprite location:</para>255 256 <screen><userinput remap="pre">for file in /tools/lib32/lib{blkid,mount,uuid}*; do257 ln -sf $file /usr/lib32/258 done</userinput></screen>259 -->260 261 <para>Prepare systemd for compilation:</para>262 263 <screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \264 CC="gcc -m32 -march=i686" \265 CXX="g++ -m32 -march=i686" \266 LANG=en_US.UTF-8 \267 meson --prefix=/usr \268 --sysconfdir=/etc \269 --localstatedir=/var \270 --libdir=/usr/lib32 \271 -Drootlibdir=/usr/lib32 \272 -Dblkid=true \273 -Ddefault-dnssec=no \274 -Dfirstboot=false \275 -Dinstall-tests=false \276 -Dldconfig=false \277 -Dsysusers=false \278 -Db_lto=false \279 -Drpmmacrosdir=no \280 -Dhomed=false \281 -Duserdb=false \282 -Dman=false \283 -Dmode=release \284 ..</userinput></screen>285 286 <para>Compile the package:</para>287 288 <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>289 290 <para>Install the package:</para>291 292 <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install293 cp -Rv DESTDIR/usr/lib32/* /usr/lib32294 rm -rf DESTDIR295 rm -f /usr/bin/xsltproc</userinput></screen>296 297 </sect2><!-- m32 -->298 299 <!-- - - - - - - - - - -->300 <!-- Multilib - x32bit -->301 <!-- - - - - - - - - - -->302 303 <sect2 arch="ml_x32,ml_all" role="installation">304 <title>Installation of systemd - x32-bit</title>305 306 <para>Clean previous build:</para>307 308 <screen><userinput remap="pre">rm -rf *</userinput></screen>309 310 <para>Create a symlink to work around missing xsltproc:</para>311 312 <screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>313 <!--314 <para>Fix an issue on x32:</para>315 316 <screen><userinput remap="pre">sed '/log_debug/s@PRI_TIMEX@PRIi64@' -i src/timesync/timesyncd-manager.c317 sed '/long drift_freq;/s@long @int64_t @' -i src/timesync/timesyncd-manager.h</userinput></screen>318 -->319 <para>Prepare systemd for compilation:</para>320 321 <screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \322 CC="gcc -mx32" \323 CXX="g++ -mx32" \324 CFLAGS+=" -Wno-error=shift-overflow" \325 CXXFLAGS+=" -Wno-error=shift-overflow" \326 LANG=en_US.UTF-8 \327 meson --prefix=/usr \328 --sysconfdir=/etc \329 --localstatedir=/var \330 --libdir=/usr/libx32 \331 -Drootlibdir=/usr/libx32 \332 -Dblkid=true \333 -Ddefault-dnssec=no \334 -Dfirstboot=false \335 -Dinstall-tests=false \336 -Dldconfig=false \337 -Dsysusers=false \338 -Db_lto=false \339 -Drpmmacrosdir=no \340 -Dhomed=false \341 -Duserdb=false \342 -Dman=false \343 -Dmode=release \344 ..</userinput></screen>345 346 <para>Compile the package:</para>347 348 <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>349 350 <para>Install the package:</para>351 352 <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install353 cp -Rv DESTDIR/usr/libx32/* /usr/libx32354 rm -rf DESTDIR355 rm -f /usr/bin/xsltproc</userinput></screen>356 357 </sect2><!-- mx32 -->358 359 225 <sect2 id="contents-systemd" role="content"> 360 226 <title>Contents of systemd</title> … … 368 234 <seg>busctl, coredumpctl, halt (symlink to systemctl), 369 235 hostnamectl, init, journalctl, kernel-install, localectl, loginctl, 370 machinectl, networkctl, oomctl, portablectl, poweroff (symlink to 236 machinectl, mount.ddi (symlink to systemd-dissect), networkctl, 237 oomctl, portablectl, poweroff (symlink to 371 238 systemctl), reboot (symlink to systemctl), resolvconf (symlink to 372 239 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown 373 240 (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze, 374 241 systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop, 375 systemd-creds, systemd-delta, systemd-detect-virt, 242 systemd-confext (symlink to systemd-sysext), systemd-creds, 243 systemd-delta, systemd-detect-virt, 376 244 systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128, 377 245 systemd-inhibit, systemd-machine-id-setup,
Note:
See TracChangeset
for help on using the changeset viewer.