source: BOOK/final-system/multilib/bzip2-64bit.xml@ 1972107

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1972107 was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-bzip2" role="wrap">
11 <?dbhtml filename="bzip2-64bit.html"?>
12
13 <title>Bzip2-&bzip2-version; 64 Bit</title>
14
15 <indexterm zone="ch-system-bzip2">
16 <primary sortas="a-Bzip2">Bzip2</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
23 href="../common/bzip2.xml"
24 xpointer="xpointer(//*[@role='package']/para[1])"/>
25
26 <segmentedlist>
27 <segtitle>&buildtime;</segtitle>
28 <segtitle>&diskspace;</segtitle>
29
30 <seglistitem>
31 <seg>Not checked yet</seg>
32 <seg>Not checked yet</seg>
33 </seglistitem>
34 </segmentedlist>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../common/bzip2.xml"
38 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Bzip2</title>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../common/bzip2.xml"
47 xpointer="xpointer(//*[@os='j'])"/>
48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../common/bzip2.xml"
51 xpointer="xpointer(//*[@os='k'])"/>
52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="bzip2.xml"
55 xpointer="xpointer(//*[@os='l'])"/>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="bzip2.xml"
59 xpointer="xpointer(//*[@os='m'])"/>
60
61 <para os="ba">We need to remove the tests since they won't work on
62 a multi-architecture build, and tell change the default lib path
63 to <filename class="directory">lib64</filename>:</para>
64
65<screen os="bb"><userinput>sed -i -e 's@^\(all:.*\) test@\1@g' \
66 -e 's@/lib\(/\| \|$\)@/lib64\1@g' Makefile</userinput></screen>
67
68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
69 href="bzip2.xml"
70 xpointer="xpointer(//*[@os='a'])"/>
71
72<screen><userinput>make -f Makefile-libbz2_so CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"
73make clean</userinput></screen>
74
75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76 href="bzip2.xml"
77 xpointer="xpointer(//*[@os='c'])"/>
78
79<screen><userinput>make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"</userinput></screen>
80
81 <para>Now we remove the 32 bit versions of the programs so we
82 can install the 64 bit versions.</para>
83
84<screen><userinput>rm -f /usr/bin/bz* /bin/bz*</userinput></screen>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="bzip2.xml"
88 xpointer="xpointer(//*[@os='f'])"/>
89
90 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
91 href="bzip2.xml"
92 xpointer="xpointer(//*[@os='g'])"/>
93
94 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
95 href="bzip2.xml"
96 xpointer="xpointer(//*[@os='h'])"/>
97
98<screen><userinput>cp bzip2-shared /bin/bzip2
99cp -a libbz2.so* /lib64
100ln -s ../../lib64/libbz2.so.1.0 /usr/lib64/libbz2.so
101rm /usr/bin/{bunzip2,bzcat,bzip2}
102ln -s bzip2 /bin/bzcat</userinput></screen>
103
104 </sect2>
105
106 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
107 href="../common/bzip2.xml"
108 xpointer="xpointer(id('contents-bzip2'))"/>
109
110</sect1>
Note: See TracBrowser for help on using the repository browser.