Changeset b3f1ebb3 for chapter06/systemd.xml
- Timestamp:
- 03/31/2021 10:41:31 AM (3 years ago)
- Branches:
- ml-11.0, multilib, xry111/multilib
- Children:
- 6702623
- Parents:
- 989524c
- git-author:
- Thomas Trepl <thomas@…> (04/01/2019 05:00:45 PM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:31 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/systemd.xml
r989524c rb3f1ebb3 208 208 EOF 209 209 chmod 755 /lib/systemd/systemd-user-sessions</userinput></screen> 210 211 </sect2> 212 213 <!-- ====== 32-bit ===== --> 214 215 <sect2 arch="multilib" role="installation"> 216 <title>Installation of systemd - 32-bit</title> 217 218 <para>If still in the build directory, step out:</para> 219 <screen><userinput remap="pre">cd ..</userinput></screen> 220 221 <para>Clean previous build:</para> 222 223 <screen><userinput remap="pre">rm -rf build</userinput></screen> 224 225 <para>Create a symlink to work around missing xsltproc:</para> 226 227 <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen> 228 229 <para>Because we have not yet installed the final version of Util-Linux, 230 create links to the libraries in the approprite location:</para> 231 232 <screen><userinput remap="pre">for file in /tools/lib32/lib{blkid,mount,uuid}*; do 233 ln -sf $file /usr/lib32/ 234 done</userinput></screen> 235 236 <para>Set up the man pages:</para> 237 238 <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen> 239 240 <para>Prepare systemd for compilation:</para> 241 242 <screen><userinput remap="configure">cd build 243 PKG_CONFIG_PATH="/usr/lib32/pkgconfig:/tools/lib32/pkgconfig" \ 244 CC="gcc -m32 -march=i686" \ 245 CXX="g++ -m32 -march=i686" \ 246 LANG=en_US.UTF-8 \ 247 meson --prefix=/usr \ 248 --sysconfdir=/etc \ 249 --localstatedir=/var \ 250 -Dblkid=true \ 251 -Dbuildtype=release \ 252 -Ddefault-dnssec=no \ 253 -Dfirstboot=false \ 254 -Dinstall-tests=false \ 255 -Dkill-path=/bin/kill \ 256 -Dkmod-path=/bin/kmod \ 257 -Dldconfig=false \ 258 -Dmount-path=/bin/mount \ 259 -Drootprefix= \ 260 -Drootlibdir=/usr/lib32 \ 261 -Dsplit-usr=true \ 262 -Dsulogin-path=/sbin/sulogin \ 263 -Dsysusers=false \ 264 -Dumount-path=/bin/umount \ 265 -Db_lto=false \ 266 ..</userinput></screen> 267 268 <para>Compile the package:</para> 269 270 <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen> 271 272 <para>Install the package:</para> 273 274 <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install 275 cp -Rv DESTDIR/usr/lib32/* /usr/lib32 276 rm -rf DESTDIR 277 rm -f /usr/bin/xsltproc</userinput></screen> 278 279 </sect2> 280 281 <!-- ====== x32-bit ===== --> 282 283 <sect2 arch="multilib" role="installation"> 284 <title>Installation of systemd - x32-bit</title> 285 286 <para>If still in the build directory, step out:</para> 287 <screen><userinput remap="pre">cd ..</userinput></screen> 288 289 <para>Clean previous build:</para> 290 291 <screen><userinput remap="pre">rm -rf build</userinput></screen> 292 293 <para>Create a symlink to work around missing xsltproc:</para> 294 295 <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen> 296 297 <para>Because we have not yet installed the final version of Util-Linux, 298 create links to the libraries in the approprite location:</para> 299 300 <screen><userinput remap="pre">for file in /tools/libx32/lib{blkid,mount,uuid}*; do 301 ln -sf $file /usr/libx32/ 302 done</userinput></screen> 303 304 <para>Set up the man pages:</para> 305 306 <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen> 307 308 <para>Fix an issue on x32:</para> 309 310 <screen><userinput remap="pre">sed '/log_debug/s@PRI_TIMEX@PRIi64@' -i src/timesync/timesyncd-manager.c 311 sed '/long drift_freq;/s@long @int64_t @' -i src/timesync/timesyncd-manager.h</userinput></screen> 312 313 <para>Prepare systemd for compilation:</para> 314 315 <screen><userinput remap="configure">cd build 316 PKG_CONFIG_PATH="/tools/libx32/pkgconfig:/usr/libx32/pkgconfig" \ 317 CC="gcc -mx32" \ 318 CXX="g++ -mx32" \ 319 CFLAGS+="-Wno-error=shift-overflow" \ 320 CXXFLAGS+="-Wno-error=shift-overflow" \ 321 LANG=en_US.UTF-8 \ 322 meson --prefix=/usr \ 323 --sysconfdir=/etc \ 324 --localstatedir=/var \ 325 -Dblkid=true \ 326 -Dbuildtype=release \ 327 -Ddefault-dnssec=no \ 328 -Dfirstboot=false \ 329 -Dinstall-tests=false \ 330 -Dkill-path=/bin/kill \ 331 -Dkmod-path=/bin/kmod \ 332 -Dldconfig=false \ 333 -Dmount-path=/bin/mount \ 334 -Drootprefix= \ 335 -Drootlibdir=/usr/libx32 \ 336 -Dsplit-usr=true \ 337 -Dsulogin-path=/sbin/sulogin \ 338 -Dsysusers=false \ 339 -Dumount-path=/bin/umount \ 340 -Db_lto=false \ 341 ..</userinput></screen> 342 343 <para>Compile the package:</para> 344 345 <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen> 346 347 <para>Install the package:</para> 348 349 <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install 350 cp -Rv DESTDIR/usr/libx32/* /usr/libx32 351 rm -rf DESTDIR 352 rm -f /usr/bin/xsltproc</userinput></screen> 210 353 211 354 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.