Pullup ticket #3704.
[pkgsrcv2.git] / bootstrap / README.IRIX5.3
1 $NetBSD: README.IRIX5.3,v 1.5 2006/09/02 11:15:49 schwarz Exp $
2
3 Installing pkgsrc on IRIX 5.3 requires some preparation.
4 First, if necessary, get the IRIX 5.3 IDO (cc etc.) from SGI at
5 ftp://ftp.sgi.com/sgi/IRIX5.3/iris-development-option-5.3.tardist and
6 install it using IRIX's Software Manager. While you're at it you might also
7 want to install any missing patches from ftp://ftp.sgi.com/support/Patches/5.3.
8 Get ftp://ftp.mayn.de/pub/really_old_stuff/irix/ido/dev* and install the
9 missing dev.sw.abi and dev.sw.irix_speclibs subpackages.
10 Note that IRIX 5.3's ftp does not support passive ftp (to my knowledge), so
11 if you are behind a firewall (and you better make sure you are with IRIX
12 5.3!) you might need to first transfer the files to another local machine.
13 Furthermore, get Y2k patches from e.g.
14 ftp://ftp.mayn.de/pub/really_old_stuff/irix/oldstuff/ if you haven't
15 installed them already.
16
17 Unfortunately many of IRIX 5.3's native tools do not provide
18 functionalitites that pkgsrc expects. It is therefore necessary to install
19 the respective GNU tools for cp, grep, id, mkdir, test, touch, which,
20 and xargs. To avoid conflicts you might want to do so under a different
21 directory hierarchy than pkgsrc (in the following example /usr/local is
22 assumed). Obtain and install the following GNU software:
23 - GNU findutils (4.2.23 is known to install)
24 - GNU grep (2.5.1a works, but you have to apply the patch from
25 pkgsrc/textproc/grep/patches/patch-ab; either do so manually by editing the
26 appropriate source file or first install GNU patch [2.5.4 works fine]. This
27 will probably be fixed with later releases. You should configure GNU grep
28 with --disable-nls and do not bother when make stops when it cannot find
29 makeinfo; just proceed with make install)
30 - GNU coreutils (5.97 works; be sure to specify GREP=/sbin/grep for
31 configure)
32 - GNU which (2.16 works; be sure to configure with CC="cc -Xcpluscomm")
33
34 To date, pkgsrc expects the SGI IDO cc and might run into problems when
35 using gcc.
36 With IDO cc and the necessary supporting tools and development files
37 installed you can run bootstrap to create the essential pkgsrc tools,
38 notably bmake:
39
40 env CP=/usr/local/bin/cp GREP=/usr/local/bin/grep ID=/usr/local/bin/id MKDIR="/usr/local/bin/mkdir -p" TEST=/usr/local/bin/test TOUCH=/usr/local/bin/touch XARGS="/usr/local/bin/xargs -r" ./bootstrap
41
42 Add the necessary arguments such as --prefix= as necessary.
43 You might also want to set the CFLAGS, CPPFLAGS, or LDFLAGS.
44 For the IDO cc CFLAGS=-O2 (or CFLAGS="-O2 -mips2" if you are using an R4K
45 machine) is recommended.
46
47 IRIX 5.3 IDO does not come with a C++ compiler. For packages that require
48 C++ you can get the GNU C++ compiler, g++, which is part of the gcc
49 distribution. Gcc 3.4.6 is known to bootstrap on IRIX 5.3. To activate it,
50 add the following lines to your mk.conf after bootstrapping:
51
52 CXX=g++
53 USE_TOOLS+=cxx
54 TOOLS_PLATFORM.cxx=/usr/local/bin/g++
55 TOOLS_CMD.cxx=${TOOLS_DIR}/bin/g++