Tue Apr 5 06:57:48 2022 UTC ()
README.Solaris: further clarifications


(nia)
diff -r1.21 -r1.22 pkgsrc/bootstrap/README.Solaris

cvs diff -r1.21 -r1.22 pkgsrc/bootstrap/README.Solaris (expand / switch to unified diff)

--- pkgsrc/bootstrap/README.Solaris 2022/04/05 06:44:21 1.21
+++ pkgsrc/bootstrap/README.Solaris 2022/04/05 06:57:48 1.22
@@ -1,75 +1,73 @@ @@ -1,75 +1,73 @@
1$NetBSD: README.Solaris,v 1.21 2022/04/05 06:44:21 nia Exp $ 1$NetBSD: README.Solaris,v 1.22 2022/04/05 06:57:48 nia Exp $
2 2
3This README describes pkgsrc on a variety of Solaris-derived operating 3This README describes pkgsrc on a variety of Solaris-derived operating
4systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant 4systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant
5operating systems are: 5operating systems are:
6 - illumos (open-source fork, OpenIndiana, OmniOS, SmartOS, and others) 6 - illumos (open source fork, OpenIndiana, OmniOS, SmartOS, and others)
7 - Solaris (from Sun/Oracle, also Sun Solaris, Oracle Solaris) 7 - Solaris (from Sun/Oracle, also Sun Solaris, Oracle Solaris)
8 - OpenSolaris (from Sun; superseded long ago by illumos) 8 - OpenSolaris (from Sun; superseded long ago by illumos)
9 9
10As of 2022, the primary platforms of interest where pkgsrc is known to 10As of 2022, the primary platforms of interest where pkgsrc is known to
11work well are illumos distributions, Solaris 10, and Solaris 11. 11work well are illumos distributions, Solaris 10, and Solaris 11.
12pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. 12pkgsrc is not currently known to work on SunOS 4 or OpenSolaris.
13 13
14Prerequisites 14Prerequisites
15------------- 15-------------
16 16
17You will need a working C compiler. The two known options are gcc and 17You will need a working C compiler. The two known options are gcc and
18Sun/Solaris Studio. gcc can come from the OS vendor, or other places. 18Sun/Solaris Studio. gcc can come from the OS vendor, or other places.
19On some systems, there is only one feasible choice. 19On some systems, it may only be possible to use the vendor gcc, or
 20there might be no vendor gcc available by default. In general, there's
 21better support for gcc in third-party software, and much better support
 22for gcc on illumos.
20 23
21As with pkgsrc on other platforms, one should use the same compiler 24As with pkgsrc on other platforms, one should use the same compiler
22family and ideally the same compiler version for building all packages. 25family and ideally the same compiler version for building all packages.
23 26
24At some time in the past, GNU binutils was not usable on some systems, 27At some time in the past, GNU binutils was not usable on some systems,
25but the status is unclear in 2022. 28but the status is unclear in 2022.
26 29
27The following packages are the minimum required on Solaris 8 to 30The following packages are the minimum required on Solaris 8 to
28bootstrap and build packages. 31bootstrap and build packages.
29 32
30 - SUNWsprot 33 - SUNWsprot
31 - SUNWarc 34 - SUNWarc
32 - SUNWbtool 35 - SUNWbtool
33 - SUNWtoo 36 - SUNWtoo
34 - SUNWscpu 37 - SUNWscpu
35 - SUNWxcu4 38 - SUNWxcu4
36 39
37Realistically you will need more, such as SUNWlibm, and SUNWlibC for 40Realistically you will need more, such as SUNWlibm, and SUNWlibC for
38C++ packages if you are using SunPro. 41C++ packages if you are using SunPro.
39 42
40Solaris Zones: 43Solaris Zones:
41 44
42(It is not clear if this is really about zones, or is just a different 45If you are trying to bootstrap pkgsrc in a Solaris 10 Zone then you will
43prereq list for a particular variant.) 
44 
45If you are trying to bootstrap pkgsrc in a Solaris Zone then you will 
46need to install the following packages (assuming you will bootstrap using 46need to install the following packages (assuming you will bootstrap using
47Sun's gcc package): 47Sun's gcc package):
48 48
49 - SUNWgccruntime 49 - SUNWgccruntime
50 - SUNWgcc 50 - SUNWgcc
51 - SUNWbinutils 51 - SUNWbinutils
52 - SUNWbtool 52 - SUNWbtool
53 - SUNWggrp 53 - SUNWggrp
54 - SUNWxcu4 54 - SUNWxcu4
55 - SUNWcs 55 - SUNWcs
56 - SUNWsprot 56 - SUNWsprot
57 - SUNWlibm 57 - SUNWlibm
58 - SUNWloc 58 - SUNWloc
59 - SUNWsndm 59 - SUNWsndm
60 60
61Tested on OpenSolaris 5.11 snv_105 and pkgsrc bootstrap as at Jan 2009. 
62 
63General 61General
64------ 62------
65 63
66To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see 64To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see
67the crle(1) man page to configure the runtime linking environment. 65the crle(1) man page to configure the runtime linking environment.
68(It is not clear if this is the default on sparc64/amd64, and if not, 66(It is not clear if this is the default on sparc64/amd64, and if not,
69why not.) 67why not.)
70 68
71Generally, illumos-based distributions come with gcc, and gcc is the 69Generally, illumos-based distributions come with gcc, and gcc is the
72standard approach. As of 2022, there are no recent reports of using 70standard approach. As of 2022, there are no recent reports of using
73Sun/Oracle toolchains on illumos. 71Sun/Oracle toolchains on illumos.
74 72
75 73