| @@ -1,34 +1,32 @@ | | | @@ -1,34 +1,32 @@ |
1 | $NetBSD: README.Solaris,v 1.20 2022/04/04 12:55:03 gdt Exp $ | | 1 | $NetBSD: README.Solaris,v 1.21 2022/04/05 06:44:21 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 | - Solaris (from Sun/Oracle, also Sun Solaris, Oracle Solaris) | | | |
7 | - OpenSolaris (from Sun) | | | |
8 | - 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) |
| | | 8 | - OpenSolaris (from Sun; superseded long ago by illumos) |
9 | | | 9 | |
10 | OpenSolaris has not been maintained for a very long time, so the only | | 10 | As of 2022, the primary platforms of interest where pkgsrc is known to |
11 | platforms of interest are Oracle Solaris and illumos distributions. | | 11 | work well are illumos distributions, Solaris 10, and Solaris 11. |
12 | As of 2022, pkgsrc is believed to work well on Oracle Solaris and | | 12 | pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. |
13 | illumos. pkgsrc is not currently known to work on SunOS 4 or | | | |
14 | OpenSolaris. | | | |
15 | | | 13 | |
16 | Prerequisites | | 14 | Prerequisites |
17 | ------------- | | 15 | ------------- |
18 | | | 16 | |
19 | 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 |
20 | Sun/Solaris Studio. gcc can come from Sun, or other places. On some | | 18 | Sun/Solaris Studio. gcc can come from the OS vendor, or other places. |
21 | systems, there is only one feasible choice. | | 19 | On some systems, there is only one feasible choice. |
22 | | | 20 | |
23 | As with pkgsrc on other platforms, one should use the same compiler | | 21 | As with pkgsrc on other platforms, one should use the same compiler |
24 | family and ideally the same compiler version for building all packages. | | 22 | family and ideally the same compiler version for building all packages. |
25 | | | 23 | |
26 | At some time in the past, GNU binutils was not usable on some systems, | | 24 | At some time in the past, GNU binutils was not usable on some systems, |
27 | but the status is unclear in 2022. | | 25 | but the status is unclear in 2022. |
28 | | | 26 | |
29 | The following packages are the minimum required on Solaris 8 to | | 27 | The following packages are the minimum required on Solaris 8 to |
30 | bootstrap and build packages. | | 28 | bootstrap and build packages. |
31 | | | 29 | |
32 | - SUNWsprot | | 30 | - SUNWsprot |
33 | - SUNWarc | | 31 | - SUNWarc |
34 | - SUNWbtool | | 32 | - SUNWbtool |
| @@ -68,27 +66,27 @@ General | | | @@ -68,27 +66,27 @@ General |
68 | To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see | | 66 | To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see |
69 | the crle(1) man page to configure the runtime linking environment. | | 67 | the crle(1) man page to configure the runtime linking environment. |
70 | (It is not clear if this is the default on sparc64/amd64, and if not, | | 68 | (It is not clear if this is the default on sparc64/amd64, and if not, |
71 | why not.) | | 69 | why not.) |
72 | | | 70 | |
73 | Generally, illumos-based distributions come with gcc, and gcc is the | | 71 | Generally, illumos-based distributions come with gcc, and gcc is the |
74 | standard approach. As of 2022, there are no recent reports of using | | 72 | standard approach. As of 2022, there are no recent reports of using |
75 | Sun/Oracle toolchains on illumos. | | 73 | Sun/Oracle toolchains on illumos. |
76 | | | 74 | |
77 | | | 75 | |
78 | If you are using gcc | | 76 | If you are using gcc |
79 | -------------------- | | 77 | -------------------- |
80 | | | 78 | |
81 | See https://wiki.netbsd.org/pkgsrc/solarish/ for information about | | 79 | See https://wiki.NetBSD.org/pkgsrc/solarish/ for information about |
82 | installing gcc on various illumos distributions. One can use a | | 80 | installing gcc on various illumos distributions. One can use a |
83 | distribution-provided gcc, or a gcc that has been built from sources. | | 81 | distribution-provided gcc, or a gcc that has been built from sources. |
84 | | | 82 | |
85 | If the gcc installation is not in your $PATH you will need to pass | | 83 | If the gcc installation is not in your $PATH you will need to pass |
86 | additional flags to bootstrap, for example: | | 84 | additional flags to bootstrap, for example: |
87 | | | 85 | |
88 | env CC=/opt/gcc-4.6.3/bin/gcc \ | | 86 | env CC=/opt/gcc-4.6.3/bin/gcc \ |
89 | GCCBASE=/opt/gcc-4.6.3 \ | | 87 | GCCBASE=/opt/gcc-4.6.3 \ |
90 | ./bootstrap --abi=64 | | 88 | ./bootstrap --abi=64 |
91 | | | 89 | |
92 | It is recommended that an external gcc be used only for bootstrapping, | | 90 | It is recommended that an external gcc be used only for bootstrapping, |
93 | and that you set USE_PKGSRC_GCC=yes in mk.conf so that the appropriate | | 91 | and that you set USE_PKGSRC_GCC=yes in mk.conf so that the appropriate |
94 | pkgsrc gcc is installed and used. | | 92 | pkgsrc gcc is installed and used. |