[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 |
|
---|
[1cd688b] | 19 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 20 | href="../common/bzip2.xml"
|
---|
| 21 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 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}"
|
---|
| 54 | make 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
|
---|
| 80 | cp -a libbz2.so* /lib64
|
---|
| 81 | ln -s ../../lib64/libbz2.so.1.0 /usr/lib64/libbz2.so
|
---|
| 82 | rm /usr/bin/{bunzip2,bzcat,bzip2}
|
---|
| 83 | ln -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>
|
---|