Merge from vendor branch TNF:
[pkgsrcv2.git] / bootstrap / README.Solaris
1 $NetBSD: README.Solaris,v 1.12 2009/01/26 10:02:19 sketch Exp $
2
3 You will need a working C compiler. Any version of gcc >2.8 should
4 work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been
5 tested, but versions in between should work, too.
6
7 The following packages are the minimum required on Solaris 8 to
8 bootstrap and build packages.
9
10         - SUNWsprot
11         - SUNWarc
12         - SUNWbtool
13         - SUNWtoo
14         - SUNWscpu
15         - SUNWxcu4
16
17 Realistically you will need more, such as SUNWlibm, and SUNWlibC for
18 C++ packages if you are using SunPro.
19
20 Please note the use of GNU binutils on Solaris is not supported.
21
22 pkgsrc in Solaris Zones
23 -----------------------
24
25 If you are trying to bootstrap pkgsrc in a Solaris Zone then you will
26 need to install the following packages (assuming you will bootstrap using
27 Sun's gcc package):
28
29         - SUNWgccruntime
30         - SUNWgcc
31         - SUNWbinutils
32         - SUNWbtool
33         - SUNWggrp
34         - SUNWxcu4
35         - SUNWcs
36         - SUNWsprot
37         - SUNWlibm
38         - SUNWloc
39         - SUNWsndm
40
41 Tested on OpenSolaris 5.11 snv_105 and pkgsrc bootstrap as at Jan 2009.
42
43 If you are using gcc
44 --------------------
45 It makes life much simpler if you only use the same gcc consistently
46 for building all packages.
47
48 See http://www.NetBSD.org/docs/software/packages.html for
49 binary kits and initial packages, including gcc.
50
51 It is recommended that an external gcc be used only for bootstrapping,
52 then remove gcc and install the pkgsrc binary package.
53
54 Binary packages of gcc can be found through
55 http://www.sunfreeware.com/
56
57 If you are using Sun WorkShop
58 -----------------------------
59 You will need at least the following packages installed to build C and
60 C++ packages.
61
62 WorkShop 5.0:
63
64         SPROcc          Sun WorkShop Compiler C 5.0
65         SPROcpl         Sun WorkShop Compiler C++ 5.0
66         SPROild         Sun WorkShop Incremental Linker
67         SPROlang        Sun WorkShop Compilers common components
68
69 Sun ONE Studio 8:
70
71         SPROcc          Sun ONE Studio 8 Compiler C
72         SPROcpl         Sun ONE Studio 8 Compiler C++
73         SPROdwrfb       DwarfSupportLibrary binaries
74         SPROild         Sun ONE Studio 8 Incremental Linker
75         SPROlang        Sun ONE Studio 8 Compilers Common Components
76         SPROsbld        Sun ONE Studio 8 Linker Stab Library
77         SPROscl         Sun ONE Studio 8 Standard Class Library for C++
78         SPROtlbn7       Sun ONE Studio 8 Tools.h++ 7.1 Class Library for C++
79         SPROutool       Sun ONE Studio 8 Common Tools
80
81 The corresponding 64-bit packages are also required to build 64-bit
82 binaries and libraries.
83
84 To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the
85 crle(1) man page to configure the runtime linking environment.
86
87 pkgsrc defaults to finding the Sun compiler in /opt/SUNWspro.  If you use a
88 different prefix, pass SUNWSPROBASE in the environment to bootstrap.  If 'cc'
89 is not in your path, pass CC as well.  So, to build 64-bit Sun compiler
90 bootstrap with a non-standard install:
91
92         env CC=/opt/studio12/SUNWspro/bin/cc \
93             SUNWSPROBASE=/opt/studio12/SUNWspro \
94             ./bootstrap --abi=64
95
96 When bootstrap is finished your default mk.conf will contain ABI and
97 SUNWSPROBASE so you will not need to set these variables again.
98
99 Whichever compiler you use, please ensure the compiler tools and
100 your $prefix are in your PATH. This includes /usr/ccs/{bin,lib}
101 and eg. /usr/pkg/{bin,sbin}.
102
103 bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10.