source: BOOK/final-system/multilib/bzip2-n32.xml@ d0c5f50

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d0c5f50 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.1 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 <sect2 role="package">
21 <title/>
22
23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
24 href="../common/bzip2.xml"
25 xpointer="xpointer(//*[@role='package']/para[1])"/>
26
27 <segmentedlist>
28 <segtitle>&buildtime;</segtitle>
29 <segtitle>&diskspace;</segtitle>
30
31 <seglistitem>
32 <seg>Not checked yet</seg>
33 <seg>Not checked yet</seg>
34 </seglistitem>
35 </segmentedlist>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../common/bzip2.xml"
39 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Bzip2</title>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="bzip2.xml"
48 xpointer="xpointer(//*[@os='l'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="bzip2.xml"
52 xpointer="xpointer(//*[@os='m'])"/>
53
54 <para>We need to remove the tests since they won't work on
55 a multi-architecture build, and tell change the default lib path
56 to <filename class="directory">lib32</filename>:</para>
57
58<screen><userinput>sed -i -e 's@^\(all:.*\) test@\1@g' \
59 -e 's@/lib\(/\| \|$\)@/lib32\1@g' Makefile</userinput></screen>
60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="bzip2.xml"
63 xpointer="xpointer(//*[@os='a'])"/>
64
65<screen><userinput>make -f Makefile-libbz2_so CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"
66make clean</userinput></screen>
67
68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
69 href="bzip2.xml"
70 xpointer="xpointer(//*[@os='c'])"/>
71
72<screen><userinput>make CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"</userinput></screen>
73
74 <para>Now we remove the 32 bit versions of the programs so we
75 can install the n32 bit versions.</para>
76
77<screen><userinput>rm -f /usr/bin/bz* /bin/bz*</userinput></screen>
78
79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
80 href="bzip2.xml"
81 xpointer="xpointer(//*[@os='f'])"/>
82
83 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
84 href="bzip2.xml"
85 xpointer="xpointer(//*[@os='g'])"/>
86
87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88 href="bzip2.xml"
89 xpointer="xpointer(//*[@os='h'])"/>
90
91<screen><userinput>cp bzip2-shared /bin/bzip2
92cp -a libbz2.so* /lib32
93ln -s ../../lib32/libbz2.so.1.0 /usr/lib32/libbz2.so
94rm /usr/bin/{bunzip2,bzcat,bzip2}
95ln -s bzip2 /bin/bunzip2
96ln -s bzip2 /bin/bzcat</userinput></screen>
97
98 </sect2>
99
100 <sect2 role="content">
101 <title/>
102
103 <para>Details on this package are located in <xref
104 linkend="contents-bzip2" role="."/></para>
105
106 </sect2>
107
108</sect1>
Note: See TracBrowser for help on using the repository browser.