Sun Jul 3 15:38:12 2016 UTC ()
Add notes about common problems & mk.conf snippet for Sun Workshop users from the pkgsrc guide


(sevan)
diff -r1.14 -r1.15 pkgsrc/bootstrap/README.Solaris

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

--- pkgsrc/bootstrap/README.Solaris 2012/07/13 16:12:41 1.14
+++ pkgsrc/bootstrap/README.Solaris 2016/07/03 15:38:12 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: README.Solaris,v 1.14 2012/07/13 16:12:41 jperkin Exp $ 1$NetBSD: README.Solaris,v 1.15 2016/07/03 15:38:12 sevan Exp $
2 2
3You will need a working C compiler. Any version of gcc >2.8 should 3You will need a working C compiler. Any version of gcc >2.8 should
4work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been 4work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been
5tested, but versions in between should work, too. 5tested, but versions in between should work, too.
6 6
7The following packages are the minimum required on Solaris 8 to 7The following packages are the minimum required on Solaris 8 to
8bootstrap and build packages. 8bootstrap and build packages.
9 9
10 - SUNWsprot 10 - SUNWsprot
11 - SUNWarc 11 - SUNWarc
12 - SUNWbtool 12 - SUNWbtool
13 - SUNWtoo 13 - SUNWtoo
14 - SUNWscpu 14 - SUNWscpu
@@ -98,14 +98,31 @@ is not in your path, pass CC as well. S @@ -98,14 +98,31 @@ is not in your path, pass CC as well. S
98bootstrap with a non-standard install: 98bootstrap with a non-standard install:
99 99
100 env CC=/opt/studio12/SUNWspro/bin/cc \ 100 env CC=/opt/studio12/SUNWspro/bin/cc \
101 SUNWSPROBASE=/opt/studio12/SUNWspro \ 101 SUNWSPROBASE=/opt/studio12/SUNWspro \
102 ./bootstrap --abi=64 102 ./bootstrap --abi=64
103 103
104When bootstrap is finished your default mk.conf will contain ABI and 104When bootstrap is finished your default mk.conf will contain ABI and
105SUNWSPROBASE so you will not need to set these variables again. 105SUNWSPROBASE so you will not need to set these variables again.
106 106
107Whichever compiler you use, please ensure the compiler tools and 107Whichever compiler you use, please ensure the compiler tools and
108your $prefix are in your PATH. This includes /usr/ccs/{bin,lib} 108your $prefix are in your PATH. This includes /usr/ccs/{bin,lib}
109and eg. /usr/pkg/{bin,sbin}. 109and eg. /usr/pkg/{bin,sbin}.
110 110
 111You should set the following variables in your mk.conf file:
 112 CC= cc
 113 CXX= CC
 114 CPP= cc -E
 115 CXXCPP= CC -E
 116
 117Common problems
 118---------------
 119Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The
 120workaround is to use another shell for the configure scripts, for example by
 121installing shells/bash and adding the following lines to your mk.conf:
 122
 123 CONFIG_SHELL= ${LOCALBASE}/bin/bash
 124 WRAPPER_SHELL= ${LOCALBASE}/bin/bash
 125
 126Then, rebuild the devel/libtool-base package.
 127
111bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10. 128bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10.