source: final-system/multilib/bzip2-n32.xml@ 54f43c8

Last change on this file since 54f43c8 was a67c762, checked in by Jim Gifford <clfs@…>, 19 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.7 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-n32" role="wrap">
11 <?dbhtml filename="bzip2-n32.html"?>
12
13 <title>Bzip2-&bzip2-version; N32 Libraries</title>
14
15 <indexterm zone="ch-system-bzip2-n32">
16 <primary sortas="a-Bzip2">Bzip2</primary>
17 <secondary>N32</secondary>
18 </indexterm>
19
20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../common/bzip2.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
23
24 <sect2 role="installation">
25 <title>Installation of Bzip2</title>
26
27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28 href="bzip2.xml"
29 xpointer="xpointer(//*[@os='l'])"/>
30
31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32 href="bzip2.xml"
33 xpointer="xpointer(//*[@os='m'])"/>
34
35 <para>We need to remove the tests since they won't work on
36 a multi-architecture build, and tell change the default lib path
37 to <filename class="directory">lib32</filename>:</para>
38
39<screen><userinput>sed -i -e 's@^\(all:.*\) test@\1@g' \
40 -e 's@/lib\(/\| \|$\)@/lib32\1@g' Makefile</userinput></screen>
41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="bzip2.xml"
44 xpointer="xpointer(//*[@os='a'])"/>
45
46<screen><userinput>make -f Makefile-libbz2_so CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"
47make clean</userinput></screen>
48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="bzip2.xml"
51 xpointer="xpointer(//*[@os='c'])"/>
52
53<screen><userinput>make CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"</userinput></screen>
54
55 <para>Now we remove the 32 bit versions of the programs so we
56 can install the n32 bit versions.</para>
57
58<screen><userinput>rm -f /usr/bin/bz* /bin/bz*</userinput></screen>
59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61 href="bzip2.xml"
62 xpointer="xpointer(//*[@os='f'])"/>
63
64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
65 href="bzip2.xml"
66 xpointer="xpointer(//*[@os='g'])"/>
67
68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
69 href="bzip2.xml"
70 xpointer="xpointer(//*[@os='h'])"/>
71
72<screen><userinput>cp bzip2-shared /bin/bzip2
73cp -a libbz2.so* /lib32
74ln -s ../../lib32/libbz2.so.1.0 /usr/lib32/libbz2.so
75rm /usr/bin/{bunzip2,bzcat,bzip2}
76ln -s bzip2 /bin/bunzip2
77ln -s bzip2 /bin/bzcat</userinput></screen>
78
79 </sect2>
80
81 <sect2 role="content">
82 <title/>
83
84 <para>Details on this package are located in <xref
85 linkend="contents-bzip2" role="."/></para>
86
87 </sect2>
88
89</sect1>
Note: See TracBrowser for help on using the repository browser.