head 1.29; access; symbols pkgsrc-2023Q4:1.29.0.12 pkgsrc-2023Q4-base:1.29 pkgsrc-2023Q3:1.29.0.10 pkgsrc-2023Q3-base:1.29 pkgsrc-2023Q2:1.29.0.8 pkgsrc-2023Q2-base:1.29 pkgsrc-2023Q1:1.29.0.6 pkgsrc-2023Q1-base:1.29 pkgsrc-2022Q4:1.29.0.4 pkgsrc-2022Q4-base:1.29 pkgsrc-2022Q3:1.29.0.2 pkgsrc-2022Q3-base:1.29 pkgsrc-2022Q2:1.28.0.2 pkgsrc-2022Q2-base:1.28 pkgsrc-2022Q1:1.16.0.4 pkgsrc-2022Q1-base:1.16 pkgsrc-2021Q4:1.16.0.2 pkgsrc-2021Q4-base:1.16 pkgsrc-2021Q3:1.15.0.42 pkgsrc-2021Q3-base:1.15 pkgsrc-2021Q2:1.15.0.40 pkgsrc-2021Q2-base:1.15 pkgsrc-2021Q1:1.15.0.38 pkgsrc-2021Q1-base:1.15 pkgsrc-2020Q4:1.15.0.36 pkgsrc-2020Q4-base:1.15 pkgsrc-2020Q3:1.15.0.34 pkgsrc-2020Q3-base:1.15 pkgsrc-2020Q2:1.15.0.30 pkgsrc-2020Q2-base:1.15 pkgsrc-2020Q1:1.15.0.10 pkgsrc-2020Q1-base:1.15 pkgsrc-2019Q4:1.15.0.32 pkgsrc-2019Q4-base:1.15 pkgsrc-2019Q3:1.15.0.28 pkgsrc-2019Q3-base:1.15 pkgsrc-2019Q2:1.15.0.26 pkgsrc-2019Q2-base:1.15 pkgsrc-2019Q1:1.15.0.24 pkgsrc-2019Q1-base:1.15 pkgsrc-2018Q4:1.15.0.22 pkgsrc-2018Q4-base:1.15 pkgsrc-2018Q3:1.15.0.20 pkgsrc-2018Q3-base:1.15 pkgsrc-2018Q2:1.15.0.18 pkgsrc-2018Q2-base:1.15 pkgsrc-2018Q1:1.15.0.16 pkgsrc-2018Q1-base:1.15 pkgsrc-2017Q4:1.15.0.14 pkgsrc-2017Q4-base:1.15 pkgsrc-2017Q3:1.15.0.12 pkgsrc-2017Q3-base:1.15 pkgsrc-2017Q2:1.15.0.8 pkgsrc-2017Q2-base:1.15 pkgsrc-2017Q1:1.15.0.6 pkgsrc-2017Q1-base:1.15 pkgsrc-2016Q4:1.15.0.4 pkgsrc-2016Q4-base:1.15 pkgsrc-2016Q3:1.15.0.2 pkgsrc-2016Q3-base:1.15 pkgsrc-2016Q2:1.14.0.32 pkgsrc-2016Q2-base:1.14 pkgsrc-2016Q1:1.14.0.30 pkgsrc-2016Q1-base:1.14 pkgsrc-2015Q4:1.14.0.28 pkgsrc-2015Q4-base:1.14 pkgsrc-2015Q3:1.14.0.26 pkgsrc-2015Q3-base:1.14 pkgsrc-2015Q2:1.14.0.24 pkgsrc-2015Q2-base:1.14 pkgsrc-2015Q1:1.14.0.22 pkgsrc-2015Q1-base:1.14 pkgsrc-2014Q4:1.14.0.20 pkgsrc-2014Q4-base:1.14 pkgsrc-2014Q3:1.14.0.18 pkgsrc-2014Q3-base:1.14 pkgsrc-2014Q2:1.14.0.16 pkgsrc-2014Q2-base:1.14 pkgsrc-2014Q1:1.14.0.14 pkgsrc-2014Q1-base:1.14 pkgsrc-2013Q4:1.14.0.12 pkgsrc-2013Q4-base:1.14 pkgsrc-2013Q3:1.14.0.10 pkgsrc-2013Q3-base:1.14 pkgsrc-2013Q2:1.14.0.8 pkgsrc-2013Q2-base:1.14 pkgsrc-2013Q1:1.14.0.6 pkgsrc-2013Q1-base:1.14 pkgsrc-2012Q4:1.14.0.4 pkgsrc-2012Q4-base:1.14 pkgsrc-2012Q3:1.14.0.2 pkgsrc-2012Q3-base:1.14 pkgsrc-2012Q2:1.13.0.4 pkgsrc-2012Q2-base:1.13 pkgsrc-2012Q1:1.13.0.2 pkgsrc-2012Q1-base:1.13 pkgsrc-2011Q4:1.12.0.24 pkgsrc-2011Q4-base:1.12 pkgsrc-2011Q3:1.12.0.22 pkgsrc-2011Q3-base:1.12 pkgsrc-2011Q2:1.12.0.20 pkgsrc-2011Q2-base:1.12 pkgsrc-2011Q1:1.12.0.18 pkgsrc-2011Q1-base:1.12 pkgsrc-2010Q4:1.12.0.16 pkgsrc-2010Q4-base:1.12 pkgsrc-2010Q3:1.12.0.14 pkgsrc-2010Q3-base:1.12 pkgsrc-2010Q2:1.12.0.12 pkgsrc-2010Q2-base:1.12 pkgsrc-2010Q1:1.12.0.10 pkgsrc-2010Q1-base:1.12 pkgsrc-2009Q4:1.12.0.8 pkgsrc-2009Q4-base:1.12 pkgsrc-2009Q3:1.12.0.6 pkgsrc-2009Q3-base:1.12 pkgsrc-2009Q2:1.12.0.4 pkgsrc-2009Q2-base:1.12 pkgsrc-2009Q1:1.12.0.2 pkgsrc-2009Q1-base:1.12 pkgsrc-2008Q4:1.8.0.10 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.8 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.6 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.4 pkgsrc-2008Q2-base:1.8 cwrapper:1.8.0.2 pkgsrc-2008Q1:1.7.0.6 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.4 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.2 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.6.0.4 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.2 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.5.0.20 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.18 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.16 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.14 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.12 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.10 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.8 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.6 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.4 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.2 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.3.0.4 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.2 pkgsrc-2004Q1-base:1.3 bootstrap-pkgsrc-20040311:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.29 date 2022.08.01.14.49.09; author jperkin; state Exp; branches; next 1.28; commitid G9ChBxzoh60jBbOD; 1.28 date 2022.04.27.17.43.34; author nia; state Exp; branches; next 1.27; commitid Cp0woxx9mX5vERBD; 1.27 date 2022.04.13.07.41.00; author nia; state Exp; branches; next 1.26; commitid HWUzKnhjmtSFL0AD; 1.26 date 2022.04.09.14.45.32; author nia; state Exp; branches; next 1.25; commitid EgrXuRCn9IYkfxzD; 1.25 date 2022.04.05.14.00.02; author nia; state Exp; branches; next 1.24; commitid AmxyXqiliCLH71zD; 1.24 date 2022.04.05.12.38.32; author gdt; state Exp; branches; next 1.23; commitid Q8uP3zXsY3cKF0zD; 1.23 date 2022.04.05.12.37.01; author gdt; state Exp; branches; next 1.22; commitid u2kXEut43CeeF0zD; 1.22 date 2022.04.05.06.57.48; author nia; state Exp; branches; next 1.21; commitid 89jPIQCInTUNMYyD; 1.21 date 2022.04.05.06.44.21; author nia; state Exp; branches; next 1.20; commitid XHWkK7GZC8K1IYyD; 1.20 date 2022.04.04.12.55.03; author gdt; state Exp; branches; next 1.19; commitid cbRwzteAuPdpNSyD; 1.19 date 2022.04.04.12.35.43; author gdt; state Exp; branches; next 1.18; commitid qiIywcBQfg1MGSyD; 1.18 date 2022.04.04.01.22.09; author gutteridge; state Exp; branches; next 1.17; commitid NwAuSlgl4OhAXOyD; 1.17 date 2022.04.04.00.26.31; author gdt; state Exp; branches; next 1.16; commitid d44mTbqv6pJBEOyD; 1.16 date 2021.11.23.09.10.03; author schmonz; state Exp; branches; next 1.15; commitid UEL2crIuNuWdNThD; 1.15 date 2016.07.03.15.38.12; author sevan; state Exp; branches; next 1.14; commitid NgtQIKgmqzKeeTcz; 1.14 date 2012.07.13.16.12.41; author jperkin; state Exp; branches; next 1.13; 1.13 date 2012.01.11.01.15.17; author riz; state Exp; branches; next 1.12; 1.12 date 2009.01.26.10.02.19; author sketch; state Exp; branches; next 1.11; 1.11 date 2009.01.19.20.34.33; author adrianp; state Exp; branches; next 1.10; 1.10 date 2009.01.17.21.56.13; author adrianp; state Exp; branches; next 1.9; 1.9 date 2009.01.17.21.32.12; author adrianp; state Exp; branches; next 1.8; 1.8 date 2008.06.17.11.59.08; author sketch; state Exp; branches; next 1.7; 1.7 date 2007.07.02.19.05.29; author tnn; state Exp; branches; next 1.6; 1.6 date 2007.01.11.03.34.10; author rillig; state Exp; branches; next 1.5; 1.5 date 2004.09.20.10.43.56; author cjep; state Exp; branches; next 1.4; 1.4 date 2004.09.12.15.54.46; author cjep; state Exp; branches; next 1.3; 1.3 date 2004.03.15.14.36.08; author grant; state Exp; branches; next 1.2; 1.2 date 2004.03.15.14.21.37; author grant; state Exp; branches; next 1.1; 1.1 date 2004.03.11.13.03.59; author grant; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.03.11.13.03.59; author grant; state Exp; branches; next ; desc @@ 1.29 log @Update docs for Joyent migration. @ text @$NetBSD: README.Solaris,v 1.28 2022/04/27 17:43:34 nia Exp $ This README describes pkgsrc on a variety of Solaris-derived operating systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant operating systems are: - illumos (open source fork, OpenIndiana, OmniOS, SmartOS, and others) - Solaris (from Sun/Oracle, also Sun Solaris, Oracle Solaris) - OpenSolaris (from Sun; superseded long ago by illumos) As of 2022, the primary platforms of interest where pkgsrc is known to work well are illumos distributions, Solaris 10, and Solaris 11. pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. As of 2022-04-09, it isn't possible to use GNU ld. This is relevant on Tribblix: when bootstrapping, ensure /usr/gnu/bin is last in your $PATH. Prerequisites ------------- You will need a working C compiler. The two known options are gcc and Sun/Solaris Studio. gcc can come from the OS vendor, or other places. On some systems, it may only be possible to use the vendor gcc, or there might be no vendor gcc available by default. In general, there's better support for gcc in third-party software, and much better support for gcc on illumos. As with pkgsrc on other platforms, one should use the same compiler family and ideally the same compiler version for building all packages. The following packages are the minimum required on Solaris 8 to bootstrap and build packages. - SUNWsprot - SUNWarc - SUNWbtool - SUNWtoo - SUNWscpu - SUNWxcu4 Realistically you will need more, such as SUNWlibm, and SUNWlibC for C++ packages if you are using SunPro. Solaris Zones: To bootstrap pkgsrc on a Solaris 11 Zone, these packages are going to be required, regardless of the compiler used: - pkg:/system/header - pkg:/system/linker - pkg:/system/library/math - pkg:/library/glib2 - pkg:/library/zlib - pkg:/developer/library/lint - pkg:/developer/object-file If you are trying to bootstrap pkgsrc in a Solaris [8-10] Zone then you will need to install the following packages (assuming you will bootstrap using Sun's gcc package): - SUNWgccruntime - SUNWgcc - SUNWbinutils - SUNWbtool - SUNWggrp - SUNWxcu4 - SUNWcs - SUNWsprot - SUNWlibm - SUNWloc - SUNWsndm On illumos you can configure a ipkg or sparse branded zone to host your pkgsrc tree. Since the software database is generally managed independently from the host, the same essential development tools, required to deploy pkgsrc on the host distribution, need to be installed within the zone. OmniOS also provides pkgsrc branded zones. A pkgsrc zone is a sparse zone which is pre-configured to use the SmartOS binary package repository. Refer to https://omnios.org/setup/zones General ------ Solaris and illumos come by default with a mixed {32,64}-bit userland. This can include the compiler, which may have shipped as a 32-bit ELF. In this case, the compiler by default will create 32-bit executables and shared libraries, unless told otherwise. To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the crle(1) man page to configure the runtime linking environment. 64-bit runtime libraries can be usually found at /usr/lib/amd64. NB: passing '-m64' to the compiler is not needed when using --abi=64. It is unclear whether --abi=64 is still a requirement on some modern illumos distributions, which provide a 64bit compiler. Joyent doesn't mention it in their pkgsrc bootstrap guide for SmartOS. Generally, illumos-based distributions come with gcc, and gcc is the standard approach. As of 2022, there are no recent reports of using Sun/Oracle toolchains on illumos. If you are using gcc -------------------- If the gcc installation is not in your $PATH you will need to pass additional flags to bootstrap, for example: env CC=/opt/gcc-4.6.3/bin/gcc \ GCCBASE=/opt/gcc-4.6.3 \ ./bootstrap --abi=64 It is recommended that an external gcc be used only for bootstrapping, and that you set USE_PKGSRC_GCC=yes in mk.conf so that the appropriate pkgsrc gcc is installed and used. Binary SVR4 packages of gcc can be found through: https://www.opencsw.org/get-it/packages/ The CSW repo is most useful on Solaris 10, OpenSolaris and SXCE. On Solaris 11 it is preferrable to install the IPS package for the preferred GCC version, available in the official repository. See https://wiki.netbsd.org/pkgsrc/solarish/ for information about installing gcc on various illumos distributions. One can use a distribution-provided gcc, or a gcc that has been built from sources. Alternatively, see https://pkgsrc.smartos.org/install-on-illumos/ for binary kits and initial packages (including gcc) that run on illumos variants. If you are using Solaris Studio --------------------------- This section describes the use of Sun-provided compilers, variously termed WorkShop and Studio. You must ensure that the compiler tools and your $prefix are in your PATH. This includes /usr/ccs/{bin,lib} and e.g. /usr/pkg/{bin,sbin}. Usually, passing 'env CC=cc PKGSRC_COMPILER=sunpro' should be enough to use Solaris Studio. Additional compiler settings will be generated automatically by the boostrap process and written to $PREFIX/etc/mk.conf In the past, however, the following mk.conf variables have been recommended: CC= cc CXX= CC CPP= cc -E CXXCPP= CC -E NB: The make variable CC holds the command for the C compiler, and the command for the C++ compiler is CC. The following indented sections provide a list of Solaris packages that must be installed in order for pkgsrc to build C and C++ packages. WorkShop 5.0: SPROcc Sun WorkShop Compiler C 5.0 SPROcpl Sun WorkShop Compiler C++ 5.0 SPROild Sun WorkShop Incremental Linker SPROlang Sun WorkShop Compilers common components Sun ONE Studio 8: SPROcc Sun ONE Studio 8 Compiler C SPROcpl Sun ONE Studio 8 Compiler C++ SPROdwrfb DwarfSupportLibrary binaries SPROild Sun ONE Studio 8 Incremental Linker SPROlang Sun ONE Studio 8 Compilers Common Components SPROsbld Sun ONE Studio 8 Linker Stab Library SPROscl Sun ONE Studio 8 Standard Class Library for C++ SPROtlbn7 Sun ONE Studio 8 Tools.h++ 7.1 Class Library for C++ SPROutool Sun ONE Studio 8 Common Tools The corresponding 64-bit packages are also required to build 64-bit binaries and libraries. Oracle Studio 12 (IPS): pkg:/developer/developerstudio-12[3-6] Oracle Developer Studio 12.[3-6] pkg:/system/library/studio-runtime Runtime Support For Solaris Studio pkg:/consolidation/sunpro/sunpro-incorporation sunpro consolidation incorporation pkg:/group/feature/developer-studio-utilities Tools and runtime support libraries for use with Oracle Solaris Studio This will install the whole toolchain, along with the observability tools and the studio IDE. If you want to select individual packages, make sure to have runtime libraries installed. For instance, on Studio 12.6, you can do that with: pkg install --accept developerstudio-126/library/c++-libs \ developerstudio-126/library/c-libs \ developerstudio-126/library/f90-libs \ developerstudio-126/library/math-libs \ developerstudio-126/library/perflib \ developerstudio-126/library/studio-gccrt To build with Studio 12 on Solaris 11: env CC=/opt/developerstudio12.*/bin/cc \ SUNWSPROBASE=/opt/developerstudio12.* \ PKGSRC_COMPILER=sunpro \ ./bootstrap --abi=64 pkgsrc defaults to finding the Sun compiler in /opt/SUNWspro. If you use a different prefix, pass SUNWSPROBASE in the environment to bootstrap. If 'cc' is not in your path, pass CC as well. So, to build 64-bit Sun compiler bootstrap with a non-standard install: env CC=/opt/studio12/SUNWspro/bin/cc \ SUNWSPROBASE=/opt/studio12/SUNWspro \ ./bootstrap --abi=64 When bootstrap is finished your default mk.conf will contain ABI and SUNWSPROBASE so you will not need to set these variables again. Common problems --------------- Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The workaround is to use another shell for the configure scripts, for example by installing shells/bash and adding the following lines to your mk.conf: CONFIG_SHELL= ${LOCALBASE}/bin/bash WRAPPER_SHELL= ${LOCALBASE}/bin/bash Then, rebuild the devel/libtool-base package. @ 1.28 log @README.Solaris: Solaris 11 dependency info from JuvenalUrbino @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.27 2022/04/13 07:41:00 nia Exp $ d80 1 a80 1 zone which is pre-configured to use Joyent’s binary package repository. d130 1 a130 1 Alternatively, see https://pkgsrc.joyent.com/install-on-illumos/ for @ 1.27 log @updated notes on bootstrapping with GNU ld on illumos @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.26 2022/04/09 14:45:32 nia Exp $ d46 11 d187 1 a187 1 pkg:/developer/developerstudio-12[3-6] studio d189 3 a191 1 @ 1.26 log @bootstrap: Note it's broken on Tribblix @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.25 2022/04/05 14:00:02 nia Exp $ d14 3 a16 4 As of 2022-04-09, bootstrapping does not work on Tribblix due to the multi-arch toolchain: ld: Relocatable linking with relocations from format elf64-x86-64-sol2 (common.o.o) to format elf32-i386-sol2 (common.o) is not supported. a30 3 At some time in the past, GNU binutils was not usable on some systems, but the status is unclear in 2022. @ 1.25 log @capitalization police @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.24 2022/04/05 12:38:32 gdt Exp $ d14 5 @ 1.24 log @bootstrap: fix wordo @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.23 2022/04/05 12:37:01 gdt Exp $ d74 1 a74 1 Sun Solaris and Illumos come by default with a mixed {32,64}-bit @ 1.23 log @bootstrap: README.Solaris improvements from Cygnus X-1 @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.22 2022/04/05 06:57:48 nia Exp $ d75 1 a75 1 userland. This can include the compiler, which may shipped as a @ 1.22 log @README.Solaris: further clarifications @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.21 2022/04/05 06:44:21 nia Exp $ d45 1 a45 1 If you are trying to bootstrap pkgsrc in a Solaris 10 Zone then you will d61 10 d74 5 d81 6 a86 2 (It is not clear if this is the default on sparc64/amd64, and if not, why not.) a95 4 See https://wiki.NetBSD.org/pkgsrc/solarish/ for information about installing gcc on various illumos distributions. One can use a distribution-provided gcc, or a gcc that has been built from sources. d107 3 a109 3 Binary packages of gcc can be found through http://www.sunfreeware.com/ [2020-04-04: This link appears no longer valid and is on a 30-day timer to be fixed or deleted.] d111 6 d123 1 a123 1 If you are using Sun Studio d131 8 a138 1 Set the following variables in your mk.conf file: d143 1 a145 3 [It is not clear if one needs to specify these variables to bootstrap or not, and if so, whether they are in the generated mk.conf,a nd if not, why not.] @ 1.21 log @README.Solaris: be better at prioritizing information, don't talk about "Sun gcc" any more, NetBSD capitalization police @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.20 2022/04/04 12:55:03 gdt Exp $ d6 1 a6 1 - illumos (open-source fork, OpenIndiana, OmniOS, SmartOS, and others) d19 4 a22 1 On some systems, there is only one feasible choice. d45 1 a45 4 (It is not clear if this is really about zones, or is just a different prereq list for a particular variant.) If you are trying to bootstrap pkgsrc in a Solaris Zone then you will a60 2 Tested on OpenSolaris 5.11 snv_105 and pkgsrc bootstrap as at Jan 2009. @ 1.20 log @bootstrap/README.Solaris: prune binutils comment as not supported by other evidence, and explain that illumos-* comes with gcc. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.19 2022/04/04 12:35:43 gdt Exp $ d6 1 d8 1 a8 2 - OpenSolaris (from Sun) - illumos (open-source fork, OpenIndiana, OmniOS, SmartOS, and others) d10 3 a12 5 OpenSolaris has not been maintained for a very long time, so the only platforms of interest are Oracle Solaris and illumos distributions. As of 2022, pkgsrc is believed to work well on Oracle Solaris and illumos. pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. d18 2 a19 2 Sun/Solaris Studio. gcc can come from Sun, or other places. On some systems, there is only one feasible choice. d79 1 a79 1 See https://wiki.netbsd.org/pkgsrc/solarish/ for information about @ 1.19 log @bootstrap: Rototill README.Solaris Fix an earlier error, and separate/organize the two compiler sections. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.18 2022/04/04 01:22:09 gutteridge Exp $ d26 2 a27 1 Please note that the use of GNU binutils on Solaris is not supported. d73 3 a75 1 On illumos, gcc is the only workable option. @ 1.18 log @README.Solaris: also mention OmniOS by name @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.17 2022/04/04 00:26:31 gdt Exp $ d4 1 a4 1 systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant d8 1 a8 1 - illumos (open-source fork, OpenIndiana, SmartOS, OmniOS, and others) d10 5 a14 1 (pkgsrc is not currently known to work on SunOS 4.) d19 3 a21 3 You will need a working C compiler. Any version of gcc >2.8 should work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been tested, but versions in between should work, too. d23 2 a24 1 Please note the use of GNU binutils on Solaris is not supported. d26 1 a26 12 Whichever compiler you use, please ensure the compiler tools and your $prefix are in your PATH. This includes /usr/ccs/{bin,lib} and e.g. /usr/pkg/{bin,sbin}. You should set the following variables in your mk.conf file: CC= cc CXX= CC CPP= cc -E CXXCPP= CC -E To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the crle(1) man page to configure the runtime linking environment. d41 4 a44 2 pkgsrc in Solaris Zones ----------------------- d64 11 d78 3 a80 5 It makes life much simpler if you only use the same gcc consistently for building all packages. See http://www.NetBSD.org/docs/software/packages.html for binary kits and initial packages, including gcc. d95 1 a96 2 If you are using Sun WorkShop ----------------------------- d98 3 a100 2 You will need at least the following packages installed to build C and C++ packages. d102 25 a126 1 WorkShop 5.0: d133 1 a133 1 Sun ONE Studio 8: d145 2 a146 2 The corresponding 64-bit packages are also required to build 64-bit binaries and libraries. d148 1 a148 1 Oracle Studio 12 (IPS): d153 2 a154 2 This will install the whole toolchain, along with the observability tools and the studio IDE. d156 17 a172 2 If you want to select individual packages, make sure to have runtime libraries installed. For instance, on Studio 12.6, you can do that with: d174 5 a178 11 pkg install --accept developerstudio-126/library/c++-libs \ developerstudio-126/library/c-libs \ developerstudio-126/library/f90-libs \ developerstudio-126/library/math-libs \ developerstudio-126/library/perflib \ developerstudio-126/library/studio-gccrt pkgsrc defaults to finding the Sun compiler in /opt/SUNWspro. If you use a different prefix, pass SUNWSPROBASE in the environment to bootstrap. If 'cc' is not in your path, pass CC as well. So, to build 64-bit Sun compiler bootstrap with a non-standard install: d184 3 a186 9 On Solaris 11: env CC=/opt/developerstudio12.*/bin/cc \ SUNWSPROBASE=/opt/developerstudio12.* \ PKGSRC_COMPILER=sunpro \ ./bootstrap --abi=64 When bootstrap is finished your default mk.conf will contain ABI and SUNWSPROBASE so you will not need to set these variables again. a198 2 bootstrap-pkgsrc has been tested on Solaris 2.6 -> 11. @ 1.17 log @README.Solaris: Modernize slightly and add subtypes Add text from Cygnus X-1 via pkgsrc-users@@, add an overview, and attempt to hoist details to the right level. This needs some editing by people who know more about Solaris than I do. A lot seems off, like gcc 2.95 being ok, and I would expect one needs a C++ compiler too. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.16 2021/11/23 09:10:03 schmonz Exp $ d8 1 a8 1 - illumos (open-source fork, OpenIndiana, SmartOS, and others) @ 1.16 log @Solaris 11 bootstraps fine. @ text @d1 13 a13 1 $NetBSD: README.Solaris,v 1.15 2016/07/03 15:38:12 sevan Exp $ d19 15 a46 2 Please note the use of GNU binutils on Solaris is not supported. d70 1 d93 1 d119 17 a135 2 To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the crle(1) man page to configure the runtime linking environment. d146 7 a155 10 Whichever compiler you use, please ensure the compiler tools and your $prefix are in your PATH. This includes /usr/ccs/{bin,lib} and eg. /usr/pkg/{bin,sbin}. You should set the following variables in your mk.conf file: CC= cc CXX= CC CPP= cc -E CXXCPP= CC -E d158 1 @ 1.15 log @Add notes about common problems & mk.conf snippet for Sun Workshop users from the pkgsrc guide @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.14 2012/07/13 16:12:41 jperkin Exp $ d128 1 a128 1 bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10. @ 1.14 log @Support GCCBASE in bootstrap, and provide a working example based on OmniOS. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.13 2012/01/11 01:15:17 riz Exp $ d111 17 @ 1.13 log @Minor corrections, from Snader_LB on FreeNode: - capitalize ``NetBSD.org''; - remove trailing whitespace; - clarify the bootstrapping procedure's ending sentence, and end it with punctuation. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.12 2009/01/26 10:02:19 sketch Exp $ d51 7 d59 2 a60 1 then remove gcc and install the pkgsrc binary package. @ 1.12 log @tyop @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.11 2009/01/19 20:34:33 adrianp Exp $ d48 1 a48 1 See http://www.netbsd.org/docs/software/packages.html for @ 1.11 log @+sendmail @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.10 2009/01/17 21:56:13 adrianp Exp $ d25 1 a25 1 If you are trying to bootstrap pkgsrc in a Solairs Zone then you will @ 1.10 log @We need printf too @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.9 2009/01/17 21:32:12 adrianp Exp $ d39 1 @ 1.9 log @Add a note about additional packages required if bootstrap is in a Solaris Zone. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.8 2008/06/17 11:59:08 sketch Exp $ d38 1 @ 1.8 log @Update notes for using Sun's compiler and 64-bit support. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.7 2007/07/02 19:05:29 tnn Exp $ d22 19 @ 1.7 log @Update URLs for Documentation->docs move. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.6 2007/01/11 03:34:10 rillig Exp $ d63 2 a64 1 You should set PKGSRC_COMPILER=sunpro in /etc/mk.conf: d66 8 a73 1 PKGSRC_COMPILER=sunpro d75 2 a76 6 To build 64-bit binaries: CFLAGS= -xtarget=ultra -xarch=v9 (also see the crle(1) man page to configure the runtime linking environment). @ 1.6 log @Changed the URL for downloading gcc, since the old one gives a 404. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.5 2004/09/20 10:43:56 cjep Exp $ d27 1 a27 1 See http://www.netbsd.org/Documentation/software/packages.html for @ 1.5 log @Also need tools in /usr/xpg4/bin (such as id). PR#26924. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.4 2004/09/12 15:54:46 cjep Exp $ d34 1 a34 1 http://www.sun.com/bigadmin/common/freewareSearch.html @ 1.4 log @We also need SUNWscpu (for /usr/ucb/install). Part of PR#26924 @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.3 2004/03/15 14:36:08 grant Exp $ d15 1 @ 1.3 log @- relax statement about what compilers should work - mention which bits of SunPro 8 are required, mention 64-bit pkgs - mention SUNWlibm, SUNWlibC - mention PKGSRC_COMPILER=sunpro - also tested on Solaris 10 - mention crle(1) @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.2 2004/03/15 14:21:37 grant Exp $ d14 1 @ 1.2 log @SUNWlibm is no longer needed. @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $ d3 3 a5 2 You will need a working C compiler. Both gcc 2.95.3 and Sun WorkShop 5 have been tested. d7 2 a8 2 The following packages are required on Solaris 8 for the bootstrap process and to build packages. d15 3 d36 4 a39 2 You will need at least the following packages installed (from WorkShop 5.0): d46 11 a56 1 You should set CC and CXX in /etc/mk.conf, eg. d58 2 a59 2 CC= cc CXX= CC d61 5 a65 1 You may also want to build 64-bit binaries, eg. d69 2 d76 1 a76 2 bootstrap-pkgsrc has been tested on Solaris 2.6 -> 9. @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: README.Solaris,v 1.7 2003/11/10 00:20:58 jschauma Exp $ a12 1 - SUNWlibm @ 1.1.1.1 log @import the required bits of bootstrap-pkgsrc from 20040311. @ text @@