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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since de3d632 was 1cd688b, checked in by Jim Gifford <clfs@…>, 18 years ago

r666@server (orig r664): manuel | 2005-11-08 14:48:14 -0800
Removing SBUs and DUs. Chapter final-system, round 4.

  • Property mode set to 100644
File size: 2.9 KB
Line 
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  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
20  href="../common/bzip2.xml"
21  xpointer="xpointer(//*[@role='package'])"/>
22
23  <sect2 role="installation">
24    <title>Installation of Bzip2</title>
25
26    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27    href="../common/bzip2.xml"
28    xpointer="xpointer(//*[@os='j'])"/>
29
30    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31    href="../common/bzip2.xml"
32    xpointer="xpointer(//*[@os='k'])"/>
33
34    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35    href="bzip2.xml"
36    xpointer="xpointer(//*[@os='l'])"/>
37
38    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39    href="bzip2.xml"
40    xpointer="xpointer(//*[@os='m'])"/>
41
42    <para os="ba">We need to remove the tests since they won't work on
43    a multi-architecture build, and tell change the default lib path
44    to <filename class="directory">lib64</filename>:</para>
45
46<screen os="bb"><userinput>sed -i -e 's@^\(all:.*\) test@\1@g' \
47    -e 's@/lib\(/\| \|$\)@/lib64\1@g' Makefile</userinput></screen>
48
49    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50    href="bzip2.xml"
51    xpointer="xpointer(//*[@os='a'])"/>
52
53<screen><userinput>make -f Makefile-libbz2_so CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"
54make clean</userinput></screen>
55
56    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
57    href="bzip2.xml"
58    xpointer="xpointer(//*[@os='c'])"/>
59
60<screen><userinput>make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"</userinput></screen>
61
62    <para>Now we remove the 32 bit versions of the programs so we
63    can install the 64 bit versions.</para>
64
65<screen><userinput>rm -f /usr/bin/bz* /bin/bz*</userinput></screen>
66
67    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
68    href="bzip2.xml"
69    xpointer="xpointer(//*[@os='f'])"/>
70
71    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72    href="bzip2.xml"
73    xpointer="xpointer(//*[@os='g'])"/>
74
75    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76    href="bzip2.xml"
77    xpointer="xpointer(//*[@os='h'])"/>
78
79<screen><userinput>cp bzip2-shared /bin/bzip2
80cp -a libbz2.so* /lib64
81ln -s ../../lib64/libbz2.so.1.0 /usr/lib64/libbz2.so
82rm /usr/bin/{bunzip2,bzcat,bzip2}
83ln -s bzip2 /bin/bzcat</userinput></screen>
84
85  </sect2>
86
87  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88  href="../common/bzip2.xml"
89  xpointer="xpointer(id('contents-bzip2'))"/>
90
91</sect1>
Note: See TracBrowser for help on using the repository browser.