| @@ -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 | |
3 | This README describes pkgsrc on a variety of Solaris-derived operating | | 3 | This README describes pkgsrc on a variety of Solaris-derived operating |
4 | systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant | | 4 | systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant |
5 | operating systems are: | | 5 | operating 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 | |
10 | As of 2022, the primary platforms of interest where pkgsrc is known to | | 10 | As of 2022, the primary platforms of interest where pkgsrc is known to |
11 | work well are illumos distributions, Solaris 10, and Solaris 11. | | 11 | work well are illumos distributions, Solaris 10, and Solaris 11. |
12 | pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. | | 12 | pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. |
13 | | | 13 | |
14 | Prerequisites | | 14 | Prerequisites |
15 | ------------- | | 15 | ------------- |
16 | | | 16 | |
17 | You will need a working C compiler. The two known options are gcc and | | 17 | You will need a working C compiler. The two known options are gcc and |
18 | Sun/Solaris Studio. gcc can come from the OS vendor, or other places. | | 18 | Sun/Solaris Studio. gcc can come from the OS vendor, or other places. |
19 | On some systems, there is only one feasible choice. | | 19 | On some systems, it may only be possible to use the vendor gcc, or |
| | | 20 | there might be no vendor gcc available by default. In general, there's |
| | | 21 | better support for gcc in third-party software, and much better support |
| | | 22 | for gcc on illumos. |
20 | | | 23 | |
21 | As with pkgsrc on other platforms, one should use the same compiler | | 24 | As with pkgsrc on other platforms, one should use the same compiler |
22 | family and ideally the same compiler version for building all packages. | | 25 | family and ideally the same compiler version for building all packages. |
23 | | | 26 | |
24 | At some time in the past, GNU binutils was not usable on some systems, | | 27 | At some time in the past, GNU binutils was not usable on some systems, |
25 | but the status is unclear in 2022. | | 28 | but the status is unclear in 2022. |
26 | | | 29 | |
27 | The following packages are the minimum required on Solaris 8 to | | 30 | The following packages are the minimum required on Solaris 8 to |
28 | bootstrap and build packages. | | 31 | bootstrap 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 | |
37 | Realistically you will need more, such as SUNWlibm, and SUNWlibC for | | 40 | Realistically you will need more, such as SUNWlibm, and SUNWlibC for |
38 | C++ packages if you are using SunPro. | | 41 | C++ packages if you are using SunPro. |
39 | | | 42 | |
40 | Solaris Zones: | | 43 | Solaris Zones: |
41 | | | 44 | |
42 | (It is not clear if this is really about zones, or is just a different | | 45 | If you are trying to bootstrap pkgsrc in a Solaris 10 Zone then you will |
43 | prereq list for a particular variant.) | | | |
44 | | | | |
45 | If you are trying to bootstrap pkgsrc in a Solaris Zone then you will | | | |
46 | need to install the following packages (assuming you will bootstrap using | | 46 | need to install the following packages (assuming you will bootstrap using |
47 | Sun's gcc package): | | 47 | Sun'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 | |
61 | Tested on OpenSolaris 5.11 snv_105 and pkgsrc bootstrap as at Jan 2009. | | | |
62 | | | | |
63 | General | | 61 | General |
64 | ------ | | 62 | ------ |
65 | | | 63 | |
66 | To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see | | 64 | To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see |
67 | the crle(1) man page to configure the runtime linking environment. | | 65 | the 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, |
69 | why not.) | | 67 | why not.) |
70 | | | 68 | |
71 | Generally, illumos-based distributions come with gcc, and gcc is the | | 69 | Generally, illumos-based distributions come with gcc, and gcc is the |
72 | standard approach. As of 2022, there are no recent reports of using | | 70 | standard approach. As of 2022, there are no recent reports of using |
73 | Sun/Oracle toolchains on illumos. | | 71 | Sun/Oracle toolchains on illumos. |
74 | | | 72 | |
75 | | | 73 | |