Thu Aug 22 13:55:30 2013 UTC ()
regen


(ryoon)
diff -r1.163 -r1.164 pkgsrc/doc/pkgsrc.html
diff -r1.166 -r1.167 pkgsrc/doc/pkgsrc.txt

cvs diff -r1.163 -r1.164 pkgsrc/doc/pkgsrc.html (expand / switch to unified diff)

--- pkgsrc/doc/pkgsrc.html 2013/08/21 10:11:44 1.163
+++ pkgsrc/doc/pkgsrc.html 2013/08/22 13:55:29 1.164
@@ -72,32 +72,33 @@ @@ -72,32 +72,33 @@
72<dt><span class="sect2"><a href="#uptodate-tar">2.2.1. Via tar files</a></span></dt> 72<dt><span class="sect2"><a href="#uptodate-tar">2.2.1. Via tar files</a></span></dt>
73<dt><span class="sect2"><a href="#uptodate-cvs">2.2.2. Via CVS</a></span></dt> 73<dt><span class="sect2"><a href="#uptodate-cvs">2.2.2. Via CVS</a></span></dt>
74</dl></dd> 74</dl></dd>
75</dl></dd> 75</dl></dd>
76<dt><span class="chapter"><a href="#platforms">3. Using pkgsrc on systems other than NetBSD</a></span></dt> 76<dt><span class="chapter"><a href="#platforms">3. Using pkgsrc on systems other than NetBSD</a></span></dt>
77<dd><dl> 77<dd><dl>
78<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt> 78<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt>
79<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt> 79<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt>
80<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt> 80<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt>
81<dd><dl> 81<dd><dl>
82<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt> 82<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt>
83<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt> 83<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt>
84<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt> 84<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt>
85<dt><span class="sect2"><a href="#interix">3.3.4. Interix</a></span></dt> 85<dt><span class="sect2"><a href="#gnukfreebsd">3.3.4. GNU/kFreeBSD</a></span></dt>
86<dt><span class="sect2"><a href="#irix">3.3.5. IRIX</a></span></dt> 86<dt><span class="sect2"><a href="#interix">3.3.5. Interix</a></span></dt>
87<dt><span class="sect2"><a href="#linux">3.3.6. Linux</a></span></dt> 87<dt><span class="sect2"><a href="#irix">3.3.6. IRIX</a></span></dt>
88<dt><span class="sect2"><a href="#mirbsd">3.3.7. MirBSD</a></span></dt> 88<dt><span class="sect2"><a href="#linux">3.3.7. Linux</a></span></dt>
89<dt><span class="sect2"><a href="#openbsd">3.3.8. OpenBSD</a></span></dt> 89<dt><span class="sect2"><a href="#mirbsd">3.3.8. MirBSD</a></span></dt>
90<dt><span class="sect2"><a href="#solaris">3.3.9. Solaris</a></span></dt> 90<dt><span class="sect2"><a href="#openbsd">3.3.9. OpenBSD</a></span></dt>
 91<dt><span class="sect2"><a href="#solaris">3.3.10. Solaris</a></span></dt>
91</dl></dd> 92</dl></dd>
92</dl></dd> 93</dl></dd>
93<dt><span class="chapter"><a href="#using">4. Using pkgsrc</a></span></dt> 94<dt><span class="chapter"><a href="#using">4. Using pkgsrc</a></span></dt>
94<dd><dl> 95<dd><dl>
95<dt><span class="sect1"><a href="#using-pkg">4.1. Using binary packages</a></span></dt> 96<dt><span class="sect1"><a href="#using-pkg">4.1. Using binary packages</a></span></dt>
96<dd><dl> 97<dd><dl>
97<dt><span class="sect2"><a href="#finding-binary-packages">4.1.1. Finding binary packages</a></span></dt> 98<dt><span class="sect2"><a href="#finding-binary-packages">4.1.1. Finding binary packages</a></span></dt>
98<dt><span class="sect2"><a href="#installing-binary-packages">4.1.2. Installing binary packages</a></span></dt> 99<dt><span class="sect2"><a href="#installing-binary-packages">4.1.2. Installing binary packages</a></span></dt>
99<dt><span class="sect2"><a href="#using.pkg_delete">4.1.3. Deinstalling packages</a></span></dt> 100<dt><span class="sect2"><a href="#using.pkg_delete">4.1.3. Deinstalling packages</a></span></dt>
100<dt><span class="sect2"><a href="#using.pkg_info">4.1.4. Getting information about installed packages</a></span></dt> 101<dt><span class="sect2"><a href="#using.pkg_info">4.1.4. Getting information about installed packages</a></span></dt>
101<dt><span class="sect2"><a href="#vulnerabilities">4.1.5. Checking for security vulnerabilities in installed packages</a></span></dt> 102<dt><span class="sect2"><a href="#vulnerabilities">4.1.5. Checking for security vulnerabilities in installed packages</a></span></dt>
102<dt><span class="sect2"><a href="#pkg_versions">4.1.6. Finding if newer versions of your installed packages are in pkgsrc</a></span></dt> 103<dt><span class="sect2"><a href="#pkg_versions">4.1.6. Finding if newer versions of your installed packages are in pkgsrc</a></span></dt>
103<dt><span class="sect2"><a href="#using.pkg_admin">4.1.7. Other administrative functions</a></span></dt> 104<dt><span class="sect2"><a href="#using.pkg_admin">4.1.7. Other administrative functions</a></span></dt>
@@ -669,26 +670,30 @@ minutes!

 @@ -669,26 +670,30 @@ minutes!

669</tr> 670</tr>
670<tr> 671<tr>
671<td><a class="ulink" href="http://www.mirbsd.org/" target="_top">MirBSD</a></td> 672<td><a class="ulink" href="http://www.mirbsd.org/" target="_top">MirBSD</a></td>
672<td align="center">Jan 2011</td> 673<td align="center">Jan 2011</td>
673</tr> 674</tr>
674<tr> 675<tr>
675<td><a class="ulink" href="http://www.minix3.org/" target="_top">Minix3</a></td> 676<td><a class="ulink" href="http://www.minix3.org/" target="_top">Minix3</a></td>
676<td align="center">Nov 2011</td> 677<td align="center">Nov 2011</td>
677</tr> 678</tr>
678<tr> 679<tr>
679<td><a class="ulink" href="http://cygwin.com/" target="_top">Cygwin</a></td> 680<td><a class="ulink" href="http://cygwin.com/" target="_top">Cygwin</a></td>
680<td align="center">Mar 2013</td> 681<td align="center">Mar 2013</td>
681</tr> 682</tr>
 683<tr>
 684<td><a class="ulink" href="http://www.debian.org/ports/kfreebsd-gnu/" target="_top">GNU/kFreeBSD</a></td>
 685<td align="center">Jul 2013</td>
 686</tr>
682</tbody> 687</tbody>
683</table></div> 688</table></div>
684</div> 689</div>
685<br class="table-break"> 690<br class="table-break">
686</div> 691</div>
687</div> 692</div>
688<div class="sect1"> 693<div class="sect1">
689<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 694<div class="titlepage"><div><div><h2 class="title" style="clear: both">
690<a name="overview"></a>1.2. Overview</h2></div></div></div> 695<a name="overview"></a>1.2. Overview</h2></div></div></div>
691<p>This document is divided into three parts. The first, 696<p>This document is divided into three parts. The first,
692 <a class="link" href="#users-guide" title="Part I. The pkgsrc user's guide">The pkgsrc user's guide</a>, 697 <a class="link" href="#users-guide" title="Part I. The pkgsrc user's guide">The pkgsrc user's guide</a>,
693 describes how one can use one of the packages in the Package 698 describes how one can use one of the packages in the Package
694 Collection, either by installing a precompiled binary package, 699 Collection, either by installing a precompiled binary package,
@@ -808,32 +813,33 @@ minutes!

 @@ -808,32 +813,33 @@ minutes!

808<dt><span class="sect2"><a href="#uptodate-tar">2.2.1. Via tar files</a></span></dt> 813<dt><span class="sect2"><a href="#uptodate-tar">2.2.1. Via tar files</a></span></dt>
809<dt><span class="sect2"><a href="#uptodate-cvs">2.2.2. Via CVS</a></span></dt> 814<dt><span class="sect2"><a href="#uptodate-cvs">2.2.2. Via CVS</a></span></dt>
810</dl></dd> 815</dl></dd>
811</dl></dd> 816</dl></dd>
812<dt><span class="chapter"><a href="#platforms">3. Using pkgsrc on systems other than NetBSD</a></span></dt> 817<dt><span class="chapter"><a href="#platforms">3. Using pkgsrc on systems other than NetBSD</a></span></dt>
813<dd><dl> 818<dd><dl>
814<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt> 819<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt>
815<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt> 820<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt>
816<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt> 821<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt>
817<dd><dl> 822<dd><dl>
818<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt> 823<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt>
819<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt> 824<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt>
820<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt> 825<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt>
821<dt><span class="sect2"><a href="#interix">3.3.4. Interix</a></span></dt> 826<dt><span class="sect2"><a href="#gnukfreebsd">3.3.4. GNU/kFreeBSD</a></span></dt>
822<dt><span class="sect2"><a href="#irix">3.3.5. IRIX</a></span></dt> 827<dt><span class="sect2"><a href="#interix">3.3.5. Interix</a></span></dt>
823<dt><span class="sect2"><a href="#linux">3.3.6. Linux</a></span></dt> 828<dt><span class="sect2"><a href="#irix">3.3.6. IRIX</a></span></dt>
824<dt><span class="sect2"><a href="#mirbsd">3.3.7. MirBSD</a></span></dt> 829<dt><span class="sect2"><a href="#linux">3.3.7. Linux</a></span></dt>
825<dt><span class="sect2"><a href="#openbsd">3.3.8. OpenBSD</a></span></dt> 830<dt><span class="sect2"><a href="#mirbsd">3.3.8. MirBSD</a></span></dt>
826<dt><span class="sect2"><a href="#solaris">3.3.9. Solaris</a></span></dt> 831<dt><span class="sect2"><a href="#openbsd">3.3.9. OpenBSD</a></span></dt>
 832<dt><span class="sect2"><a href="#solaris">3.3.10. Solaris</a></span></dt>
827</dl></dd> 833</dl></dd>
828</dl></dd> 834</dl></dd>
829<dt><span class="chapter"><a href="#using">4. Using pkgsrc</a></span></dt> 835<dt><span class="chapter"><a href="#using">4. Using pkgsrc</a></span></dt>
830<dd><dl> 836<dd><dl>
831<dt><span class="sect1"><a href="#using-pkg">4.1. Using binary packages</a></span></dt> 837<dt><span class="sect1"><a href="#using-pkg">4.1. Using binary packages</a></span></dt>
832<dd><dl> 838<dd><dl>
833<dt><span class="sect2"><a href="#finding-binary-packages">4.1.1. Finding binary packages</a></span></dt> 839<dt><span class="sect2"><a href="#finding-binary-packages">4.1.1. Finding binary packages</a></span></dt>
834<dt><span class="sect2"><a href="#installing-binary-packages">4.1.2. Installing binary packages</a></span></dt> 840<dt><span class="sect2"><a href="#installing-binary-packages">4.1.2. Installing binary packages</a></span></dt>
835<dt><span class="sect2"><a href="#using.pkg_delete">4.1.3. Deinstalling packages</a></span></dt> 841<dt><span class="sect2"><a href="#using.pkg_delete">4.1.3. Deinstalling packages</a></span></dt>
836<dt><span class="sect2"><a href="#using.pkg_info">4.1.4. Getting information about installed packages</a></span></dt> 842<dt><span class="sect2"><a href="#using.pkg_info">4.1.4. Getting information about installed packages</a></span></dt>
837<dt><span class="sect2"><a href="#vulnerabilities">4.1.5. Checking for security vulnerabilities in installed packages</a></span></dt> 843<dt><span class="sect2"><a href="#vulnerabilities">4.1.5. Checking for security vulnerabilities in installed packages</a></span></dt>
838<dt><span class="sect2"><a href="#pkg_versions">4.1.6. Finding if newer versions of your installed packages are in pkgsrc</a></span></dt> 844<dt><span class="sect2"><a href="#pkg_versions">4.1.6. Finding if newer versions of your installed packages are in pkgsrc</a></span></dt>
839<dt><span class="sect2"><a href="#using.pkg_admin">4.1.7. Other administrative functions</a></span></dt> 845<dt><span class="sect2"><a href="#using.pkg_admin">4.1.7. Other administrative functions</a></span></dt>
@@ -1108,32 +1114,33 @@ release -d @@ -1108,32 +1114,33 @@ release -d
1108<div class="chapter"> 1114<div class="chapter">
1109<div class="titlepage"><div><div><h2 class="title"> 1115<div class="titlepage"><div><div><h2 class="title">
1110<a name="platforms"></a>Chapter 3. Using pkgsrc on systems other than NetBSD</h2></div></div></div> 1116<a name="platforms"></a>Chapter 3. Using pkgsrc on systems other than NetBSD</h2></div></div></div>
1111<div class="toc"> 1117<div class="toc">
1112<p><b>Table of Contents</b></p> 1118<p><b>Table of Contents</b></p>
1113<dl> 1119<dl>
1114<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt> 1120<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt>
1115<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt> 1121<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt>
1116<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt> 1122<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt>
1117<dd><dl> 1123<dd><dl>
1118<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt> 1124<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt>
1119<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt> 1125<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt>
1120<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt> 1126<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt>
1121<dt><span class="sect2"><a href="#interix">3.3.4. Interix</a></span></dt> 1127<dt><span class="sect2"><a href="#gnukfreebsd">3.3.4. GNU/kFreeBSD</a></span></dt>
1122<dt><span class="sect2"><a href="#irix">3.3.5. IRIX</a></span></dt> 1128<dt><span class="sect2"><a href="#interix">3.3.5. Interix</a></span></dt>
1123<dt><span class="sect2"><a href="#linux">3.3.6. Linux</a></span></dt> 1129<dt><span class="sect2"><a href="#irix">3.3.6. IRIX</a></span></dt>
1124<dt><span class="sect2"><a href="#mirbsd">3.3.7. MirBSD</a></span></dt> 1130<dt><span class="sect2"><a href="#linux">3.3.7. Linux</a></span></dt>
1125<dt><span class="sect2"><a href="#openbsd">3.3.8. OpenBSD</a></span></dt> 1131<dt><span class="sect2"><a href="#mirbsd">3.3.8. MirBSD</a></span></dt>
1126<dt><span class="sect2"><a href="#solaris">3.3.9. Solaris</a></span></dt> 1132<dt><span class="sect2"><a href="#openbsd">3.3.9. OpenBSD</a></span></dt>
 1133<dt><span class="sect2"><a href="#solaris">3.3.10. Solaris</a></span></dt>
1127</dl></dd> 1134</dl></dd>
1128</dl> 1135</dl>
1129</div> 1136</div>
1130<div class="sect1"> 1137<div class="sect1">
1131<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 1138<div class="titlepage"><div><div><h2 class="title" style="clear: both">
1132<a name="binarydist"></a>3.1. Binary distribution</h2></div></div></div> 1139<a name="binarydist"></a>3.1. Binary distribution</h2></div></div></div>
1133<p>See <a class="xref" href="#using-pkg" title="4.1. Using binary packages">Section 4.1, &#8220;Using binary packages&#8221;</a>.</p> 1140<p>See <a class="xref" href="#using-pkg" title="4.1. Using binary packages">Section 4.1, &#8220;Using binary packages&#8221;</a>.</p>
1134</div> 1141</div>
1135<div class="sect1"> 1142<div class="sect1">
1136<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 1143<div class="titlepage"><div><div><h2 class="title" style="clear: both">
1137<a name="bootstrapping-pkgsrc"></a>3.2. Bootstrapping pkgsrc</h2></div></div></div> 1144<a name="bootstrapping-pkgsrc"></a>3.2. Bootstrapping pkgsrc</h2></div></div></div>
1138<p>pkgsrc can be bootstrapped for use in two different modes: 1145<p>pkgsrc can be bootstrapped for use in two different modes:
1139 privileged and unprivileged one. In unprivileged mode in contrast 1146 privileged and unprivileged one. In unprivileged mode in contrast
@@ -1237,45 +1244,53 @@ release -d @@ -1237,45 +1244,53 @@ release -d
1237<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_add pkg_add.orig</code></strong> 1244<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_add pkg_add.orig</code></strong>
1238<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_create pkg_create.orig</code></strong> 1245<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_create pkg_create.orig</code></strong>
1239<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_delete pkg_delete.orig</code></strong> 1246<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_delete pkg_delete.orig</code></strong>
1240<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_info pkg_info.orig</code></strong> 1247<code class="prompt">#</code> <strong class="userinput"><code>mv pkg_info pkg_info.orig</code></strong>
1241 </pre> 1248 </pre>
1242</li> 1249</li>
1243<li class="listitem"><p>An example <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a> file will be placed in 1250<li class="listitem"><p>An example <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a> file will be placed in
1244 <code class="filename">/etc/mk.conf.example</code> file 1251 <code class="filename">/etc/mk.conf.example</code> file
1245 when you use the bootstrap script.</p></li> 1252 when you use the bootstrap script.</p></li>
1246</ol></div> 1253</ol></div>
1247</div> 1254</div>
1248<div class="sect2"> 1255<div class="sect2">
1249<div class="titlepage"><div><div><h3 class="title"> 1256<div class="titlepage"><div><div><h3 class="title">
1250<a name="interix"></a>3.3.4. Interix</h3></div></div></div> 1257<a name="gnukfreebsd"></a>3.3.4. GNU/kFreeBSD</h3></div></div></div>
 1258<p>Debian GNU/kFreeBSD is the only GNU/kFreeBSD distribution now.
 1259 Debian GNU/kFreeBSD 7.0 or later is tested and supported.</p>
 1260<p> You should install ncurses (libncurses and libncurses-dev)
 1261 packages.</p>
 1262</div>
 1263<div class="sect2">
 1264<div class="titlepage"><div><div><h3 class="title">
 1265<a name="interix"></a>3.3.5. Interix</h3></div></div></div>
1251<p>Interix is a POSIX-compatible subsystem for the Windows NT kernel, 1266<p>Interix is a POSIX-compatible subsystem for the Windows NT kernel,
1252 providing a Unix-like environment with a tighter kernel integration than 1267 providing a Unix-like environment with a tighter kernel integration than
1253 available with Cygwin. It is part of the Windows Services for Unix 1268 available with Cygwin. It is part of the Windows Services for Unix
1254 package, available for free for any licensed copy of Windows 2000, XP 1269 package, available for free for any licensed copy of Windows 2000, XP
1255 (not including XP Home), or 2003. SFU can be downloaded from <a class="ulink" href="http://www.microsoft.com/windows/sfu/" target="_top">http://www.microsoft.com/windows/sfu/</a>.</p> 1270 (not including XP Home), or 2003. SFU can be downloaded from <a class="ulink" href="http://www.microsoft.com/windows/sfu/" target="_top">http://www.microsoft.com/windows/sfu/</a>.</p>
1256<p>Services for Unix 3.5 has been tested. 3.0 or 3.1 may work, but 1271<p>Services for Unix 3.5 has been tested. 3.0 or 3.1 may work, but
1257 are not officially supported. (The main difference in 3.0/3.1 is lack 1272 are not officially supported. (The main difference in 3.0/3.1 is lack
1258 of pthreads, but other parts of libc may also be lacking.)</p> 1273 of pthreads, but other parts of libc may also be lacking.)</p>
1259<p>Services for Unix Applications (aka SUA) is an integrated 1274<p>Services for Unix Applications (aka SUA) is an integrated
1260 component of Windows Server 2003 R2 (5.2), Windows Vista and 1275 component of Windows Server 2003 R2 (5.2), Windows Vista and
1261 Windows Server 2008 (6.0), Windows 7 and Windows Server 2008 R2 1276 Windows Server 2008 (6.0), Windows 7 and Windows Server 2008 R2
1262 (6.1). As of this writing, the SUA's Interix 6.0 (32bit) and 1277 (6.1). As of this writing, the SUA's Interix 6.0 (32bit) and
1263 6.1 (64bit) subsystems have been tested. Other versions may 1278 6.1 (64bit) subsystems have been tested. Other versions may
1264 work as well. The Interix 5.x subsystem has not yet been tested 1279 work as well. The Interix 5.x subsystem has not yet been tested
1265 with pkgsrc.</p> 1280 with pkgsrc.</p>
1266<div class="sect3"> 1281<div class="sect3">
1267<div class="titlepage"><div><div><h4 class="title"> 1282<div class="titlepage"><div><div><h4 class="title">
1268<a name="platform.interix-sfu-install"></a>3.3.4.1. When installing Interix/SFU</h4></div></div></div> 1283<a name="platform.interix-sfu-install"></a>3.3.5.1. When installing Interix/SFU</h4></div></div></div>
1269<p>At an absolute minimum, the following packages must be installed from 1284<p>At an absolute minimum, the following packages must be installed from
1270 the Windows Services for Unix 3.5 distribution in order to use pkgsrc:</p> 1285 the Windows Services for Unix 3.5 distribution in order to use pkgsrc:</p>
1271<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 1286<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1272<li class="listitem"><p>Utilities -&gt; Base Utilities</p></li> 1287<li class="listitem"><p>Utilities -&gt; Base Utilities</p></li>
1273<li class="listitem"><p>Interix GNU Components -&gt; (all)</p></li> 1288<li class="listitem"><p>Interix GNU Components -&gt; (all)</p></li>
1274<li class="listitem"><p>Remote Connectivity</p></li> 1289<li class="listitem"><p>Remote Connectivity</p></li>
1275<li class="listitem"><p>Interix SDK</p></li> 1290<li class="listitem"><p>Interix SDK</p></li>
1276</ul></div> 1291</ul></div>
1277<p>When using pkgsrc on Interix, DO NOT install the Utilities subcomponent 1292<p>When using pkgsrc on Interix, DO NOT install the Utilities subcomponent
1278 "UNIX Perl". That is Perl 5.6 without shared module support, installed to 1293 "UNIX Perl". That is Perl 5.6 without shared module support, installed to
1279 /usr/local, and will only cause confusion. Instead, install Perl 5.8 from 1294 /usr/local, and will only cause confusion. Instead, install Perl 5.8 from
1280 pkgsrc (or from a binary package).</p> 1295 pkgsrc (or from a binary package).</p>
1281<p>The Remote Connectivity subcomponent "Windows Remote Shell Service" does 1296<p>The Remote Connectivity subcomponent "Windows Remote Shell Service" does
@@ -1296,73 +1311,73 @@ release -d @@ -1296,73 +1311,73 @@ release -d
1296<p>In addition to the hotfix noted above, it may be necessary to 1311<p>In addition to the hotfix noted above, it may be necessary to
1297 disable Data Execution Prevention entirely to make Interix functional. 1312 disable Data Execution Prevention entirely to make Interix functional.
1298 This may happen only with certain types of CPUs; the cause is not fully 1313 This may happen only with certain types of CPUs; the cause is not fully
1299 understood at this time. If gcc or other applications still segfault 1314 understood at this time. If gcc or other applications still segfault
1300 repeatedly after installing one of the hotfixes note above, the 1315 repeatedly after installing one of the hotfixes note above, the
1301 following option can be added to the appropriate "boot.ini" line on the 1316 following option can be added to the appropriate "boot.ini" line on the
1302 Windows boot drive: /NoExecute=AlwaysOff 1317 Windows boot drive: /NoExecute=AlwaysOff
1303 (WARNING, this will disable DEP completely, which may be a security 1318 (WARNING, this will disable DEP completely, which may be a security
1304 risk if applications are often run as a user in the Administrators 1319 risk if applications are often run as a user in the Administrators
1305 group!)</p> 1320 group!)</p>
1306</div> 1321</div>
1307<div class="sect3"> 1322<div class="sect3">
1308<div class="titlepage"><div><div><h4 class="title"> 1323<div class="titlepage"><div><div><h4 class="title">
1309<a name="platform.interix-sfu-postinstall"></a>3.3.4.2. What to do if Interix/SFU is already installed</h4></div></div></div> 1324<a name="platform.interix-sfu-postinstall"></a>3.3.5.2. What to do if Interix/SFU is already installed</h4></div></div></div>
1310<p>If SFU is already installed and you wish to alter these settings to work 1325<p>If SFU is already installed and you wish to alter these settings to work
1311 with pkgsrc, note the following things.</p> 1326 with pkgsrc, note the following things.</p>
1312<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 1327<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1313<li class="listitem"><p>To uninstall UNIX Perl, use Add/Remove Programs, select Microsoft 1328<li class="listitem"><p>To uninstall UNIX Perl, use Add/Remove Programs, select Microsoft
1314 Windows Services for UNIX, then click Change. In the installer, choose 1329 Windows Services for UNIX, then click Change. In the installer, choose
1315 Add or Remove, then uncheck Utilities-&gt;UNIX Perl.</p></li> 1330 Add or Remove, then uncheck Utilities-&gt;UNIX Perl.</p></li>
1316<li class="listitem"> 1331<li class="listitem">
1317<p>To enable case-sensitivity for the file system, run REGEDIT.EXE, and 1332<p>To enable case-sensitivity for the file system, run REGEDIT.EXE, and
1318 change the following registry key:</p> 1333 change the following registry key:</p>
1319<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel</p> 1334<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel</p>
1320<p>Set the DWORD value "obcaseinsensitive" to 0; then reboot.</p> 1335<p>Set the DWORD value "obcaseinsensitive" to 0; then reboot.</p>
1321</li> 1336</li>
1322<li class="listitem"> 1337<li class="listitem">
1323<p>To enable setuid binaries (optional), run REGEDIT.EXE, and change the 1338<p>To enable setuid binaries (optional), run REGEDIT.EXE, and change the
1324 following registry key:</p> 1339 following registry key:</p>
1325<p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Services for UNIX</p> 1340<p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Services for UNIX</p>
1326<p>Set the DWORD value "EnableSetuidBinaries" to 1; then reboot.</p> 1341<p>Set the DWORD value "EnableSetuidBinaries" to 1; then reboot.</p>
1327</li> 1342</li>
1328</ul></div> 1343</ul></div>
1329</div> 1344</div>
1330<div class="sect3"> 1345<div class="sect3">
1331<div class="titlepage"><div><div><h4 class="title"> 1346<div class="titlepage"><div><div><h4 class="title">
1332<a name="platform.interix-notes"></a>3.3.4.3. Important notes for using pkgsrc</h4></div></div></div> 1347<a name="platform.interix-notes"></a>3.3.5.3. Important notes for using pkgsrc</h4></div></div></div>
1333<p>The package manager (either the pkgsrc "su" user, or the user 1348<p>The package manager (either the pkgsrc "su" user, or the user
1334 running "pkg_add") must be a member of the local Administrators 1349 running "pkg_add") must be a member of the local Administrators
1335 group. Such a user must also be used to run the bootstrap. This is 1350 group. Such a user must also be used to run the bootstrap. This is
1336 slightly relaxed from the normal pkgsrc requirement of "root".</p> 1351 slightly relaxed from the normal pkgsrc requirement of "root".</p>
1337<p>The package manager should use a umask of 002. "make install" will 1352<p>The package manager should use a umask of 002. "make install" will
1338 automatically complain if this is not the case. This ensures that 1353 automatically complain if this is not the case. This ensures that
1339 directories written in /var/db/pkg are Administrators-group writeable.</p> 1354 directories written in /var/db/pkg are Administrators-group writeable.</p>
1340<p>The popular Interix binary packages from http://www.interopsystems.com/ 1355<p>The popular Interix binary packages from http://www.interopsystems.com/
1341 use an older version of pkgsrc's pkg_* tools. Ideally, these should 1356 use an older version of pkgsrc's pkg_* tools. Ideally, these should
1342 NOT be used in conjunction with pkgsrc. If you choose to use them at 1357 NOT be used in conjunction with pkgsrc. If you choose to use them at
1343 the same time as the pkgsrc packages, ensure that you use the proper 1358 the same time as the pkgsrc packages, ensure that you use the proper
1344 pkg_* tools for each type of binary package.</p> 1359 pkg_* tools for each type of binary package.</p>
1345<p>The TERM setting used for DOS-type console windows (including those 1360<p>The TERM setting used for DOS-type console windows (including those
1346 invoked by the csh and ksh startup shortcuts) is "interix". Most systems 1361 invoked by the csh and ksh startup shortcuts) is "interix". Most systems
1347 don't have a termcap/terminfo entry for it, but the following .termcap 1362 don't have a termcap/terminfo entry for it, but the following .termcap
1348 entry provides adequate emulation in most cases:</p> 1363 entry provides adequate emulation in most cases:</p>
1349<pre class="programlisting"> 1364<pre class="programlisting">
1350interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi: 1365interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi:
1351 </pre> 1366 </pre>
1352</div> 1367</div>
1353<div class="sect3"> 1368<div class="sect3">
1354<div class="titlepage"><div><div><h4 class="title"> 1369<div class="titlepage"><div><div><h4 class="title">
1355<a name="platform.interix-limits"></a>3.3.4.4. Limitations of the Interix platform</h4></div></div></div> 1370<a name="platform.interix-limits"></a>3.3.5.4. Limitations of the Interix platform</h4></div></div></div>
1356<p>Though Interix suffices as a familiar and flexible substitute 1371<p>Though Interix suffices as a familiar and flexible substitute
1357 for a full Unix-like platform, it has some drawbacks that should 1372 for a full Unix-like platform, it has some drawbacks that should
1358 be noted for those desiring to make the most of Interix.</p> 1373 be noted for those desiring to make the most of Interix.</p>
1359<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 1374<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1360<li class="listitem"> 1375<li class="listitem">
1361<p><span class="strong"><strong>X11:</strong></span></p> 1376<p><span class="strong"><strong>X11:</strong></span></p>
1362<p>Interix comes with the standard set of X11R6 client libraries, 1377<p>Interix comes with the standard set of X11R6 client libraries,
1363 and can run X11 based applications, but it does 1378 and can run X11 based applications, but it does
1364 <span class="emphasis"><em>not</em></span> come with an X server. Some options are 1379 <span class="emphasis"><em>not</em></span> come with an X server. Some options are
1365 <a class="ulink" href="http://www.starnet.com/products/xwin32/" target="_top">StarNet X-Win32</a>, 1380 <a class="ulink" href="http://www.starnet.com/products/xwin32/" target="_top">StarNet X-Win32</a>,
1366 <a class="ulink" href="http://connectivity.hummingbird.com/products/nc/exceed/" target="_top">Hummingbird Exceed</a> 1381 <a class="ulink" href="http://connectivity.hummingbird.com/products/nc/exceed/" target="_top">Hummingbird Exceed</a>
1367 (available in a trimmed version for Interix from Interop Systems as the 1382 (available in a trimmed version for Interix from Interop Systems as the
1368 <a class="ulink" href="http://www.interopsystems.com/InteropXserver.htm" target="_top">Interop X Server</a>), 1383 <a class="ulink" href="http://www.interopsystems.com/InteropXserver.htm" target="_top">Interop X Server</a>),
@@ -1399,46 +1414,46 @@ interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@: @@ -1399,46 +1414,46 @@ interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:
1399</li> 1414</li>
1400<li class="listitem"> 1415<li class="listitem">
1401<p><span class="strong"><strong>Tape drives:</strong></span></p> 1416<p><span class="strong"><strong>Tape drives:</strong></span></p>
1402<p>Due to the same limitations as for CD-ROMs and SCSI devices, tape 1417<p>Due to the same limitations as for CD-ROMs and SCSI devices, tape
1403 drives are also not directly accessible in Interix. However, 1418 drives are also not directly accessible in Interix. However,
1404 support is in work to make tape drive access possible by using 1419 support is in work to make tape drive access possible by using
1405 Cygwin as a bridge (similarly to audio bridged via Cygwin's 1420 Cygwin as a bridge (similarly to audio bridged via Cygwin's
1406 esound server).</p> 1421 esound server).</p>
1407</li> 1422</li>
1408</ul></div> 1423</ul></div>
1409</div> 1424</div>
1410<div class="sect3"> 1425<div class="sect3">
1411<div class="titlepage"><div><div><h4 class="title"> 1426<div class="titlepage"><div><div><h4 class="title">
1412<a name="platform.interix-knownissues"></a>3.3.4.5. Known issues for pkgsrc on Interix</h4></div></div></div> 1427<a name="platform.interix-knownissues"></a>3.3.5.5. Known issues for pkgsrc on Interix</h4></div></div></div>
1413<p>It is not necessary, in general, to have a "root" user on the 1428<p>It is not necessary, in general, to have a "root" user on the
1414 Windows system; any member of the local Administrators group will 1429 Windows system; any member of the local Administrators group will
1415 suffice. However, some packages currently assume that the user 1430 suffice. However, some packages currently assume that the user
1416 named "root" is the privileged user. To accommodate these, you 1431 named "root" is the privileged user. To accommodate these, you
1417 may create such a user; make sure it is in the local group 1432 may create such a user; make sure it is in the local group
1418 Administrators (or your language equivalent).</p> 1433 Administrators (or your language equivalent).</p>
1419<p><span class="command"><strong>pkg_add</strong></span> creates directories of mode 1434<p><span class="command"><strong>pkg_add</strong></span> creates directories of mode
1420 0755, not 0775, in <code class="filename">$PKG_DBDIR</code>. For the 1435 0755, not 0775, in <code class="filename">$PKG_DBDIR</code>. For the
1421 time being, install packages as the local Administrator (or 1436 time being, install packages as the local Administrator (or
1422 your language equivalent), or run the following command after 1437 your language equivalent), or run the following command after
1423 installing a package to work around the issue:</p> 1438 installing a package to work around the issue:</p>
1424<pre class="screen"> 1439<pre class="screen">
1425<code class="prompt">#</code> <strong class="userinput"><code>chmod -R g+w $PKG_DBDIR</code></strong> 1440<code class="prompt">#</code> <strong class="userinput"><code>chmod -R g+w $PKG_DBDIR</code></strong>
1426 </pre> 1441 </pre>
1427</div> 1442</div>
1428</div> 1443</div>
1429<div class="sect2"> 1444<div class="sect2">
1430<div class="titlepage"><div><div><h3 class="title"> 1445<div class="titlepage"><div><div><h3 class="title">
1431<a name="irix"></a>3.3.5. IRIX</h3></div></div></div> 1446<a name="irix"></a>3.3.6. IRIX</h3></div></div></div>
1432<p>You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro 1447<p>You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro
1433 compiler (cc/c89). Please set the <code class="varname">CC</code> environment variable 1448 compiler (cc/c89). Please set the <code class="varname">CC</code> environment variable
1434 according to your preference. If you do not have a license for the MIPSpro 1449 according to your preference. If you do not have a license for the MIPSpro
1435 compiler suite, you can download a gcc tardist file from <a class="ulink" href="http://freeware.sgi.com/" target="_top">http://freeware.sgi.com/</a>.</p> 1450 compiler suite, you can download a gcc tardist file from <a class="ulink" href="http://freeware.sgi.com/" target="_top">http://freeware.sgi.com/</a>.</p>
1436<p>Please note that you will need IRIX 6.5.17 or higher, as this is the earliest 1451<p>Please note that you will need IRIX 6.5.17 or higher, as this is the earliest
1437 version of IRIX providing support for <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?if_indextoname+3+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">if_indextoname</span>(3)</span></a>, <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?if_nametoindex+3+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">if_nametoindex</span>(3)</span></a>, 1452 version of IRIX providing support for <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?if_indextoname+3+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">if_indextoname</span>(3)</span></a>, <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?if_nametoindex+3+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">if_nametoindex</span>(3)</span></a>,
1438 etc.</p> 1453 etc.</p>
1439<p>At this point in time, pkgsrc only supports one ABI at a time. That is, you cannot 1454<p>At this point in time, pkgsrc only supports one ABI at a time. That is, you cannot
1440 switch between the old 32-bit ABI, the new 32-bit ABI and the 64-bit ABI. If 1455 switch between the old 32-bit ABI, the new 32-bit ABI and the 64-bit ABI. If
1441 you start out using "abi=n32", that's what all your packages will be built 1456 you start out using "abi=n32", that's what all your packages will be built
1442 with.</p> 1457 with.</p>
1443<p>Therefore, please make sure that you have no conflicting 1458<p>Therefore, please make sure that you have no conflicting
1444 <code class="varname">CFLAGS</code> in your environment or the 1459 <code class="varname">CFLAGS</code> in your environment or the
@@ -1463,27 +1478,27 @@ PKGSRC_COMPILER= mipspro @@ -1463,27 +1478,27 @@ PKGSRC_COMPILER= mipspro
1463 1478
1464 in <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a>. Otherwise, pkgsrc will assume you 1479 in <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a>. Otherwise, pkgsrc will assume you
1465 are using gcc and may end up passing invalid flags to the compiler. Note that 1480 are using gcc and may end up passing invalid flags to the compiler. Note that
1466 bootstrap should create an appropriate <code class="filename">mk.conf.example</code> by 1481 bootstrap should create an appropriate <code class="filename">mk.conf.example</code> by
1467 default.</p> 1482 default.</p>
1468<p>If you have both the MIPSPro compiler chain installed as well as gcc, 1483<p>If you have both the MIPSPro compiler chain installed as well as gcc,
1469 but want to make sure that MIPSPro is used, please set your <code class="varname">PATH</code> 1484 but want to make sure that MIPSPro is used, please set your <code class="varname">PATH</code>
1470 to <span class="emphasis"><em>not</em></span> include the location of gcc (often 1485 to <span class="emphasis"><em>not</em></span> include the location of gcc (often
1471 <code class="filename">/usr/freeware/bin</code>), and (important) pass the 1486 <code class="filename">/usr/freeware/bin</code>), and (important) pass the
1472 '--preserve-path' flag.</p> 1487 '--preserve-path' flag.</p>
1473</div> 1488</div>
1474<div class="sect2"> 1489<div class="sect2">
1475<div class="titlepage"><div><div><h3 class="title"> 1490<div class="titlepage"><div><div><h3 class="title">
1476<a name="linux"></a>3.3.6. Linux</h3></div></div></div> 1491<a name="linux"></a>3.3.7. Linux</h3></div></div></div>
1477<p>Some versions of Linux (for example Debian GNU/Linux) need 1492<p>Some versions of Linux (for example Debian GNU/Linux) need
1478 either libtermcap or libcurses (libncurses). Installing the 1493 either libtermcap or libcurses (libncurses). Installing the
1479 distributions libncurses-dev package (or equivalent) should fix 1494 distributions libncurses-dev package (or equivalent) should fix
1480 the problem.</p> 1495 the problem.</p>
1481<p>pkgsrc supports both gcc (GNU Compiler Collection) and icc 1496<p>pkgsrc supports both gcc (GNU Compiler Collection) and icc
1482 (Intel C++ Compiler). gcc is the default. icc 8.0 and 8.1 on 1497 (Intel C++ Compiler). gcc is the default. icc 8.0 and 8.1 on
1483 i386 have been tested.</p> 1498 i386 have been tested.</p>
1484<p>To bootstrap using icc, assuming the default icc installation 1499<p>To bootstrap using icc, assuming the default icc installation
1485 directory:</p> 1500 directory:</p>
1486<pre class="programlisting"> 1501<pre class="programlisting">
1487env ICCBASE=/opt/intel/cc/10.1.008 ./bootstrap --compiler=icc 1502env ICCBASE=/opt/intel/cc/10.1.008 ./bootstrap --compiler=icc
1488 </pre> 1503 </pre>
1489<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> 1504<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
@@ -1506,50 +1521,50 @@ ICCBASE= /opt/intel/cc/10 @@ -1506,50 +1521,50 @@ ICCBASE= /opt/intel/cc/10
1506<p>pkgsrc uses the static linking method of the runtime libraries 1521<p>pkgsrc uses the static linking method of the runtime libraries
1507 provided by icc, so binaries can be run on other systems which do not 1522 provided by icc, so binaries can be run on other systems which do not
1508 have the shared libraries installed.</p> 1523 have the shared libraries installed.</p>
1509<p>Libtool, however, extracts a list of libraries from the 1524<p>Libtool, however, extracts a list of libraries from the
1510 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?ld+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">ld</span>(1)</span></a> command run when linking a C++ shared library and 1525 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?ld+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">ld</span>(1)</span></a> command run when linking a C++ shared library and
1511 records it, throwing away the -Bstatic and -Bdynamic options 1526 records it, throwing away the -Bstatic and -Bdynamic options
1512 interspersed between the libraries. This means that 1527 interspersed between the libraries. This means that
1513 libtool-linked C++ shared libraries will have a runtime 1528 libtool-linked C++ shared libraries will have a runtime
1514 dependency on the icc libraries until this is fixed in 1529 dependency on the icc libraries until this is fixed in
1515 libtool.</p> 1530 libtool.</p>
1516</div> 1531</div>
1517<div class="sect2"> 1532<div class="sect2">
1518<div class="titlepage"><div><div><h3 class="title"> 1533<div class="titlepage"><div><div><h3 class="title">
1519<a name="mirbsd"></a>3.3.7. MirBSD</h3></div></div></div> 1534<a name="mirbsd"></a>3.3.8. MirBSD</h3></div></div></div>
1520<p>pkgsrc has been tested on MirBSD #10-current (2011 and newer). 1535<p>pkgsrc has been tested on MirBSD #10-current (2011 and newer).
1521 Older versions might also work. Releases before #10 are not 1536 Older versions might also work. Releases before #10 are not
1522 supported.</p> 1537 supported.</p>
1523<p>The package tools of the (older) native ports tree, 1538<p>The package tools of the (older) native ports tree,
1524 <a class="ulink" href="//www.mirbsd.org/ports.htm" target="_top">MirPorts</a>, 1539 <a class="ulink" href="//www.mirbsd.org/ports.htm" target="_top">MirPorts</a>,
1525 have the same names as the ones used by pkgsrc. Care should be taken 1540 have the same names as the ones used by pkgsrc. Care should be taken
1526 that the right tools are used. When installing packages from source, 1541 that the right tools are used. When installing packages from source,
1527 use the <code class="filename">bmake</code> command for pkgsrc and 1542 use the <code class="filename">bmake</code> command for pkgsrc and
1528 <code class="filename">mmake</code> for MirPorts.</p> 1543 <code class="filename">mmake</code> for MirPorts.</p>
1529<p>pkgsrc and MirPorts use the same location for the package 1544<p>pkgsrc and MirPorts use the same location for the package
1530 database, <code class="filename">/var/db/pkg</code>. It is strongly recommended 1545 database, <code class="filename">/var/db/pkg</code>. It is strongly recommended
1531 to use <code class="filename">/usr/pkg/db</code> instead, so that the pkgsrc 1546 to use <code class="filename">/usr/pkg/db</code> instead, so that the pkgsrc
1532 tree is self-contained. This is also the default setting used in the 1547 tree is self-contained. This is also the default setting used in the
1533 binary package builds.</p> 1548 binary package builds.</p>
1534<p>Binary packages for MirBSD/i386 can be found on the pkgsrc ftp 1549<p>Binary packages for MirBSD/i386 can be found on the pkgsrc ftp
1535 server. The bootstrap kit there already contains the 1550 server. The bootstrap kit there already contains the
1536 <span class="command"><strong>pkgin</strong></span> package manager. See the 1551 <span class="command"><strong>pkgin</strong></span> package manager. See the
1537 <a class="ulink" href="https://www.mirbsd.org/pkgsrc.htm" target="_top">pkgsrc on MirOS</a> 1552 <a class="ulink" href="https://www.mirbsd.org/pkgsrc.htm" target="_top">pkgsrc on MirOS</a>
1538 page for more details.</p> 1553 page for more details.</p>
1539</div> 1554</div>
1540<div class="sect2"> 1555<div class="sect2">
1541<div class="titlepage"><div><div><h3 class="title"> 1556<div class="titlepage"><div><div><h3 class="title">
1542<a name="openbsd"></a>3.3.8. OpenBSD</h3></div></div></div> 1557<a name="openbsd"></a>3.3.9. OpenBSD</h3></div></div></div>
1543<p>OpenBSD 5.1 has been tested and supported, 1558<p>OpenBSD 5.1 has been tested and supported,
1544 other versions may work.</p> 1559 other versions may work.</p>
1545<p>Care should be taken so that the tools that this kit installs do not conflict 1560<p>Care should be taken so that the tools that this kit installs do not conflict
1546 with the OpenBSD userland tools. There are several steps:</p> 1561 with the OpenBSD userland tools. There are several steps:</p>
1547<div class="orderedlist"><ol class="orderedlist" type="1"> 1562<div class="orderedlist"><ol class="orderedlist" type="1">
1548<li class="listitem"><p>OpenBSD stores its ports pkg database in 1563<li class="listitem"><p>OpenBSD stores its ports pkg database in
1549 <code class="filename">/var/db/pkg</code>. It is therefore 1564 <code class="filename">/var/db/pkg</code>. It is therefore
1550 recommended that you choose a different location (e.g. 1565 recommended that you choose a different location (e.g.
1551 <code class="filename">/usr/pkgdb</code>) by 1566 <code class="filename">/usr/pkgdb</code>) by
1552 using the --pkgdbdir option to the bootstrap script.</p></li> 1567 using the --pkgdbdir option to the bootstrap script.</p></li>
1553<li class="listitem"> 1568<li class="listitem">
1554<p>If you do not intend to use the OpenBSD ports tools, it's probably a 1569<p>If you do not intend to use the OpenBSD ports tools, it's probably a
1555 good idea to move them out of the way to avoid confusion, e.g.</p> 1570 good idea to move them out of the way to avoid confusion, e.g.</p>
@@ -1570,59 +1585,59 @@ ICCBASE= /opt/intel/cc/10 @@ -1570,59 +1585,59 @@ ICCBASE= /opt/intel/cc/10
1570 of the file with:</p> 1585 of the file with:</p>
1571<pre class="programlisting"> 1586<pre class="programlisting">
1572.ifdef BSD_PKG_MK 1587.ifdef BSD_PKG_MK
1573# pkgsrc stuff, e.g. insert defaults/mk.conf or similar here 1588# pkgsrc stuff, e.g. insert defaults/mk.conf or similar here
1574.else 1589.else
1575# OpenBSD stuff 1590# OpenBSD stuff
1576.endif 1591.endif
1577 </pre> 1592 </pre>
1578</li> 1593</li>
1579</ol></div> 1594</ol></div>
1580</div> 1595</div>
1581<div class="sect2"> 1596<div class="sect2">
1582<div class="titlepage"><div><div><h3 class="title"> 1597<div class="titlepage"><div><div><h3 class="title">
1583<a name="solaris"></a>3.3.9. Solaris</h3></div></div></div> 1598<a name="solaris"></a>3.3.10. Solaris</h3></div></div></div>
1584<p>Solaris 2.6 through 10 are supported on both x86 and sparc. 1599<p>Solaris 2.6 through 10 are supported on both x86 and sparc.
1585 You will need a working C compiler. Both gcc 4.5.3 and 1600 You will need a working C compiler. Both gcc 4.5.3 and
1586 Sun WorkShop 5 have been tested.</p> 1601 Sun WorkShop 5 have been tested.</p>
1587<p>The following packages are required on Solaris 8 for the bootstrap 1602<p>The following packages are required on Solaris 8 for the bootstrap
1588 process and to build packages.</p> 1603 process and to build packages.</p>
1589<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 1604<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1590<li class="listitem"><p>SUNWsprot</p></li> 1605<li class="listitem"><p>SUNWsprot</p></li>
1591<li class="listitem"><p>SUNWarc</p></li> 1606<li class="listitem"><p>SUNWarc</p></li>
1592<li class="listitem"><p>SUNWbtool</p></li> 1607<li class="listitem"><p>SUNWbtool</p></li>
1593<li class="listitem"><p>SUNWtoo</p></li> 1608<li class="listitem"><p>SUNWtoo</p></li>
1594<li class="listitem"><p>SUNWlibm</p></li> 1609<li class="listitem"><p>SUNWlibm</p></li>
1595</ul></div> 1610</ul></div>
1596<p>Please note that the use of GNU binutils on Solaris is 1611<p>Please note that the use of GNU binutils on Solaris is
1597 <span class="emphasis"><em>not</em></span> supported, as of June 2006.</p> 1612 <span class="emphasis"><em>not</em></span> supported, as of June 2006.</p>
1598<p>Whichever compiler you use, please ensure the compiler tools and 1613<p>Whichever compiler you use, please ensure the compiler tools and
1599 your $prefix are in your <code class="varname">PATH</code>. This includes 1614 your $prefix are in your <code class="varname">PATH</code>. This includes
1600 <code class="filename">/usr/ccs/{bin,lib}</code> 1615 <code class="filename">/usr/ccs/{bin,lib}</code>
1601 and e.g. <code class="filename">/usr/pkg/{bin,sbin}</code>.</p> 1616 and e.g. <code class="filename">/usr/pkg/{bin,sbin}</code>.</p>
1602<div class="sect3"> 1617<div class="sect3">
1603<div class="titlepage"><div><div><h4 class="title"> 1618<div class="titlepage"><div><div><h4 class="title">
1604<a name="solaris-gcc-note"></a>3.3.9.1. If you are using gcc</h4></div></div></div> 1619<a name="solaris-gcc-note"></a>3.3.10.1. If you are using gcc</h4></div></div></div>
1605<p>It makes life much simpler if you only use the same gcc consistently 1620<p>It makes life much simpler if you only use the same gcc consistently
1606 for building all packages.</p> 1621 for building all packages.</p>
1607<p>It is recommended that an external gcc be used only for bootstrapping, 1622<p>It is recommended that an external gcc be used only for bootstrapping,
1608 then either build gcc from 1623 then either build gcc from
1609 <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/lang/gcc46/README.html" target="_top"><code class="filename">lang/gcc46</code></a> or install a binary gcc 1624 <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/lang/gcc46/README.html" target="_top"><code class="filename">lang/gcc46</code></a> or install a binary gcc
1610 package, then remove gcc used during bootstrapping.</p> 1625 package, then remove gcc used during bootstrapping.</p>
1611<p>Binary packages of gcc can be found through <a class="ulink" href="http://www.sunfreeware.com/" target="_top">http://www.sunfreeware.com/</a>.</p> 1626<p>Binary packages of gcc can be found through <a class="ulink" href="http://www.sunfreeware.com/" target="_top">http://www.sunfreeware.com/</a>.</p>
1612</div> 1627</div>
1613<div class="sect3"> 1628<div class="sect3">
1614<div class="titlepage"><div><div><h4 class="title"> 1629<div class="titlepage"><div><div><h4 class="title">
1615<a name="solaris-sun-workshop-note"></a>3.3.9.2. If you are using Sun WorkShop</h4></div></div></div> 1630<a name="solaris-sun-workshop-note"></a>3.3.10.2. If you are using Sun WorkShop</h4></div></div></div>
1616<p>You will need at least the following packages installed (from WorkShop 1631<p>You will need at least the following packages installed (from WorkShop
1617 5.0)</p> 1632 5.0)</p>
1618<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 1633<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1619<li class="listitem"><p>SPROcc 1634<li class="listitem"><p>SPROcc
1620 - Sun WorkShop Compiler C 5.0</p></li> 1635 - Sun WorkShop Compiler C 5.0</p></li>
1621<li class="listitem"><p>SPROcpl 1636<li class="listitem"><p>SPROcpl
1622 - Sun WorkShop Compiler C++ 5.0</p></li> 1637 - Sun WorkShop Compiler C++ 5.0</p></li>
1623<li class="listitem"><p>SPROild 1638<li class="listitem"><p>SPROild
1624 - Sun WorkShop Incremental Linker</p></li> 1639 - Sun WorkShop Incremental Linker</p></li>
1625<li class="listitem"><p>SPROlang 1640<li class="listitem"><p>SPROlang
1626 - Sun WorkShop Compilers common components</p></li> 1641 - Sun WorkShop Compilers common components</p></li>
1627</ul></div> 1642</ul></div>
1628<p>You should set the following variables in your 1643<p>You should set the following variables in your
@@ -1632,43 +1647,43 @@ CC= cc @@ -1632,43 +1647,43 @@ CC= cc
1632CXX= CC 1647CXX= CC
1633CPP= cc -E 1648CPP= cc -E
1634CXXCPP= CC -E 1649CXXCPP= CC -E
1635</pre> 1650</pre>
1636<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> 1651<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
1637<h3 class="title">Note</h3> 1652<h3 class="title">Note</h3>
1638<p>The <code class="varname">CPP</code> setting might break some 1653<p>The <code class="varname">CPP</code> setting might break some
1639 packages that use the C preprocessor for processing things other 1654 packages that use the C preprocessor for processing things other
1640 than C source code.</p> 1655 than C source code.</p>
1641</div> 1656</div>
1642</div> 1657</div>
1643<div class="sect3"> 1658<div class="sect3">
1644<div class="titlepage"><div><div><h4 class="title"> 1659<div class="titlepage"><div><div><h4 class="title">
1645<a name="solaris-sunpro-64"></a>3.3.9.3. Building 64-bit binaries with SunPro</h4></div></div></div> 1660<a name="solaris-sunpro-64"></a>3.3.10.3. Building 64-bit binaries with SunPro</h4></div></div></div>
1646<p>To build 64-bit packages, you just need to have the 1661<p>To build 64-bit packages, you just need to have the
1647 following lines in your <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a> file:</p> 1662 following lines in your <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a> file:</p>
1648<pre class="programlisting"> 1663<pre class="programlisting">
1649PKGSRC_COMPILER= sunpro 1664PKGSRC_COMPILER= sunpro
1650ABI= 64 1665ABI= 64
1651</pre> 1666</pre>
1652<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> 1667<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
1653<h3 class="title">Note</h3> 1668<h3 class="title">Note</h3>
1654<p>This setting has been tested for the SPARC 1669<p>This setting has been tested for the SPARC
1655 architecture. Intel and AMD machines need some more 1670 architecture. Intel and AMD machines need some more
1656 work.</p> 1671 work.</p>
1657</div> 1672</div>
1658</div> 1673</div>
1659<div class="sect3"> 1674<div class="sect3">
1660<div class="titlepage"><div><div><h4 class="title"> 1675<div class="titlepage"><div><div><h4 class="title">
1661<a name="plat.sunos.problems"></a>3.3.9.4. Common problems</h4></div></div></div> 1676<a name="plat.sunos.problems"></a>3.3.10.4. Common problems</h4></div></div></div>
1662<p>Sometimes, when using <span class="command"><strong>libtool</strong></span>, 1677<p>Sometimes, when using <span class="command"><strong>libtool</strong></span>,
1663 <code class="filename">/bin/ksh</code> crashes with a segmentation fault. 1678 <code class="filename">/bin/ksh</code> crashes with a segmentation fault.
1664 The workaround is to use another shell for the configure 1679 The workaround is to use another shell for the configure
1665 scripts, for example by installing <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/shells/bash/README.html" target="_top"><code class="filename">shells/bash</code></a> and adding the following lines 1680 scripts, for example by installing <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/shells/bash/README.html" target="_top"><code class="filename">shells/bash</code></a> and adding the following lines
1666 to your <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a>:</p> 1681 to your <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a>:</p>
1667<pre class="programlisting"> 1682<pre class="programlisting">
1668CONFIG_SHELL= ${LOCALBASE}/bin/bash 1683CONFIG_SHELL= ${LOCALBASE}/bin/bash
1669WRAPPER_SHELL= ${LOCALBASE}/bin/bash 1684WRAPPER_SHELL= ${LOCALBASE}/bin/bash
1670 </pre> 1685 </pre>
1671<p>Then, rebuild the <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/devel/libtool-base/README.html" target="_top"><code class="filename">devel/libtool-base</code></a> package.</p> 1686<p>Then, rebuild the <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/devel/libtool-base/README.html" target="_top"><code class="filename">devel/libtool-base</code></a> package.</p>
1672</div> 1687</div>
1673</div> 1688</div>
1674</div> 1689</div>
@@ -7682,67 +7697,67 @@ the name of the common tools. For exampl @@ -7682,67 +7697,67 @@ the name of the common tools. For exampl
7682.if exists(/usr/bin/bzcat) 7697.if exists(/usr/bin/bzcat)
7683TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat 7698TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
7684.elif exists(/usr/bin/bzip2) 7699.elif exists(/usr/bin/bzip2)
7685TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd 7700TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd
7686.endif 7701.endif
7687 7702
7688TOOLS_PLATFORM.true?= true # shell builtin 7703TOOLS_PLATFORM.true?= true # shell builtin
7689</pre> 7704</pre>
7690</div> 7705</div>
7691<div class="sect1"> 7706<div class="sect1">
7692<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 7707<div class="titlepage"><div><div><h2 class="title" style="clear: both">
7693<a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div> 7708<a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div>
7694<div class="qandaset"> 7709<div class="qandaset">
7695<a name="idp140459939576832"></a><dl> 7710<a name="idm77779760"></a><dl>
7696<dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a> 7711<dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a>
7697</dt> 7712</dt>
7698<dt>18.4.2. <a href="#tools.listall">How do I get a list of all available 7713<dt>18.4.2. <a href="#tools.listall">How do I get a list of all available
7699 tools?</a> 7714 tools?</a>
7700</dt> 7715</dt>
7701<dt>18.4.3. <a href="#tools.used">How can I get a list of all the tools that a 7716<dt>18.4.3. <a href="#tools.used">How can I get a list of all the tools that a
7702 package is using while being built? I want to know whether it 7717 package is using while being built? I want to know whether it
7703 uses sed or not.</a> 7718 uses sed or not.</a>
7704</dt> 7719</dt>
7705</dl> 7720</dl>
7706<table border="0" style="width: 100%;"> 7721<table border="0" style="width: 100%;">
7707<colgroup> 7722<colgroup>
7708<col align="left" width="1%"> 7723<col align="left" width="1%">
7709<col> 7724<col>
7710</colgroup> 7725</colgroup>
7711<tbody> 7726<tbody>
7712<tr class="question"> 7727<tr class="question">
7713<td align="left" valign="top"> 7728<td align="left" valign="top">
7714<a name="tools.new"></a><a name="idp140459939577472"></a><p><b>18.4.1.</b></p> 7729<a name="tools.new"></a><a name="idm77779376"></a><p><b>18.4.1.</b></p>
7715</td> 7730</td>
7716<td align="left" valign="top"><p>How do I add a new tool?</p></td> 7731<td align="left" valign="top"><p>How do I add a new tool?</p></td>
7717</tr> 7732</tr>
7718<tr class="answer"> 7733<tr class="answer">
7719<td align="left" valign="top"></td> 7734<td align="left" valign="top"></td>
7720<td align="left" valign="top"><p>TODO</p></td> 7735<td align="left" valign="top"><p>TODO</p></td>
7721</tr> 7736</tr>
7722<tr class="question"> 7737<tr class="question">
7723<td align="left" valign="top"> 7738<td align="left" valign="top">
7724<a name="tools.listall"></a><a name="idp140459939578752"></a><p><b>18.4.2.</b></p> 7739<a name="tools.listall"></a><a name="idm77778352"></a><p><b>18.4.2.</b></p>
7725</td> 7740</td>
7726<td align="left" valign="top"><p>How do I get a list of all available 7741<td align="left" valign="top"><p>How do I get a list of all available
7727 tools?</p></td> 7742 tools?</p></td>
7728</tr> 7743</tr>
7729<tr class="answer"> 7744<tr class="answer">
7730<td align="left" valign="top"></td> 7745<td align="left" valign="top"></td>
7731<td align="left" valign="top"><p>TODO</p></td> 7746<td align="left" valign="top"><p>TODO</p></td>
7732</tr> 7747</tr>
7733<tr class="question"> 7748<tr class="question">
7734<td align="left" valign="top"> 7749<td align="left" valign="top">
7735<a name="tools.used"></a><a name="idp140459939580048"></a><p><b>18.4.3.</b></p> 7750<a name="tools.used"></a><a name="idm77777200"></a><p><b>18.4.3.</b></p>
7736</td> 7751</td>
7737<td align="left" valign="top"><p>How can I get a list of all the tools that a 7752<td align="left" valign="top"><p>How can I get a list of all the tools that a
7738 package is using while being built? I want to know whether it 7753 package is using while being built? I want to know whether it
7739 uses sed or not.</p></td> 7754 uses sed or not.</p></td>
7740</tr> 7755</tr>
7741<tr class="answer"> 7756<tr class="answer">
7742<td align="left" valign="top"></td> 7757<td align="left" valign="top"></td>
7743<td align="left" valign="top"><p>Currently, you can't. (TODO: But I want to be able 7758<td align="left" valign="top"><p>Currently, you can't. (TODO: But I want to be able
7744 to do it.)</p></td> 7759 to do it.)</p></td>
7745</tr> 7760</tr>
7746</tbody> 7761</tbody>
7747</table> 7762</table>
7748</div> 7763</div>
@@ -9785,27 +9800,27 @@ place.

 @@ -9785,27 +9800,27 @@ place.

9785</li> 9800</li>
9786</ol></div> 9801</ol></div>
9787</div> 9802</div>
9788</div> 9803</div>
9789<div class="chapter"> 9804<div class="chapter">
9790<div class="titlepage"><div><div><h2 class="title"> 9805<div class="titlepage"><div><div><h2 class="title">
9791<a name="devfaq"></a>Chapter 22. Frequently Asked Questions</h2></div></div></div> 9806<a name="devfaq"></a>Chapter 22. Frequently Asked Questions</h2></div></div></div>
9792<p>This section contains the answers to questions that may 9807<p>This section contains the answers to questions that may
9793 arise when you are writing a package. If you don't find your 9808 arise when you are writing a package. If you don't find your
9794 question answered here, first have a look in the other chapters, 9809 question answered here, first have a look in the other chapters,
9795 and if you still don't have the answer, ask on the 9810 and if you still don't have the answer, ask on the
9796 <code class="literal">pkgsrc-users</code> mailing list.</p> 9811 <code class="literal">pkgsrc-users</code> mailing list.</p>
9797<div class="qandaset"> 9812<div class="qandaset">
9798<a name="idp140459940175040"></a><dl> 9813<a name="idm77224496"></a><dl>
9799<dt>22.1. <a href="#devfaq.makeflags">What is the difference between 9814<dt>22.1. <a href="#devfaq.makeflags">What is the difference between
9800 MAKEFLAGS, .MAKEFLAGS and 9815 MAKEFLAGS, .MAKEFLAGS and
9801 MAKE_FLAGS?</a> 9816 MAKE_FLAGS?</a>
9802</dt> 9817</dt>
9803<dt>22.2. <a href="#devfaq.make">What is the difference between 9818<dt>22.2. <a href="#devfaq.make">What is the difference between
9804 MAKE, GMAKE and 9819 MAKE, GMAKE and
9805 MAKE_PROGRAM?</a> 9820 MAKE_PROGRAM?</a>
9806</dt> 9821</dt>
9807<dt>22.3. <a href="#devfaq.cc">What is the difference between 9822<dt>22.3. <a href="#devfaq.cc">What is the difference between
9808 CC, PKG_CC and 9823 CC, PKG_CC and
9809 PKGSRC_COMPILER?</a> 9824 PKGSRC_COMPILER?</a>
9810</dt> 9825</dt>
9811<dt>22.4. <a href="#devfaq.bl3flags">What is the difference between 9826<dt>22.4. <a href="#devfaq.bl3flags">What is the difference between
@@ -9830,157 +9845,157 @@ place.

 @@ -9830,157 +9845,157 @@ place.

9830</dt> 9845</dt>
9831<dt>22.9. <a href="#devfaq.too-much-time">I have a little time to kill. What shall I 9846<dt>22.9. <a href="#devfaq.too-much-time">I have a little time to kill. What shall I
9832do?</a> 9847do?</a>
9833</dt> 9848</dt>
9834</dl> 9849</dl>
9835<table border="0" style="width: 100%;"> 9850<table border="0" style="width: 100%;">
9836<colgroup> 9851<colgroup>
9837<col align="left" width="1%"> 9852<col align="left" width="1%">
9838<col> 9853<col>
9839</colgroup> 9854</colgroup>
9840<tbody> 9855<tbody>
9841<tr class="question"> 9856<tr class="question">
9842<td align="left" valign="top"> 9857<td align="left" valign="top">
9843<a name="devfaq.makeflags"></a><a name="idp140459940175696"></a><p><b>22.1.</b></p> 9858<a name="devfaq.makeflags"></a><a name="idm77224112"></a><p><b>22.1.</b></p>
9844</td> 9859</td>
9845<td align="left" valign="top"><p>What is the difference between 9860<td align="left" valign="top"><p>What is the difference between
9846 <code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and 9861 <code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and
9847 <code class="varname">MAKE_FLAGS</code>?</p></td> 9862 <code class="varname">MAKE_FLAGS</code>?</p></td>
9848</tr> 9863</tr>
9849<tr class="answer"> 9864<tr class="answer">
9850<td align="left" valign="top"></td> 9865<td align="left" valign="top"></td>
9851<td align="left" valign="top"><p><code class="varname">MAKEFLAGS</code> are the flags passed 9866<td align="left" valign="top"><p><code class="varname">MAKEFLAGS</code> are the flags passed
9852 to the pkgsrc-internal invocations of <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a>, while 9867 to the pkgsrc-internal invocations of <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a>, while
9853 <code class="varname">MAKE_FLAGS</code> are the flags that are passed to 9868 <code class="varname">MAKE_FLAGS</code> are the flags that are passed to
9854 the <code class="varname">MAKE_PROGRAM</code> when building the 9869 the <code class="varname">MAKE_PROGRAM</code> when building the
9855 package. [FIXME: What is .MAKEFLAGS for?]</p></td> 9870 package. [FIXME: What is .MAKEFLAGS for?]</p></td>
9856</tr> 9871</tr>
9857<tr class="question"> 9872<tr class="question">
9858<td align="left" valign="top"> 9873<td align="left" valign="top">
9859<a name="devfaq.make"></a><a name="idp140459940180160"></a><p><b>22.2.</b></p> 9874<a name="devfaq.make"></a><a name="idm77220016"></a><p><b>22.2.</b></p>
9860</td> 9875</td>
9861<td align="left" valign="top"><p>What is the difference between 9876<td align="left" valign="top"><p>What is the difference between
9862 <code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and 9877 <code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and
9863 <code class="varname">MAKE_PROGRAM</code>?</p></td> 9878 <code class="varname">MAKE_PROGRAM</code>?</p></td>
9864</tr> 9879</tr>
9865<tr class="answer"> 9880<tr class="answer">
9866<td align="left" valign="top"></td> 9881<td align="left" valign="top"></td>
9867<td align="left" valign="top"><p><code class="varname">MAKE</code> is the path to the 9882<td align="left" valign="top"><p><code class="varname">MAKE</code> is the path to the
9868 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> program that is used in the pkgsrc 9883 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> program that is used in the pkgsrc
9869 infrastructure. <code class="varname">GMAKE</code> is the path to GNU 9884 infrastructure. <code class="varname">GMAKE</code> is the path to GNU
9870 Make, but you need to say <code class="varname">USE_TOOLS+=gmake</code> to 9885 Make, but you need to say <code class="varname">USE_TOOLS+=gmake</code> to
9871 use that. <code class="varname">MAKE_PROGRAM</code> is the path to the 9886 use that. <code class="varname">MAKE_PROGRAM</code> is the path to the
9872 Make program that is used for building the 9887 Make program that is used for building the
9873 package.</p></td> 9888 package.</p></td>
9874</tr> 9889</tr>
9875<tr class="question"> 9890<tr class="question">
9876<td align="left" valign="top"> 9891<td align="left" valign="top">
9877<a name="devfaq.cc"></a><a name="idp140459940185184"></a><p><b>22.3.</b></p> 9892<a name="devfaq.cc"></a><a name="idm77215664"></a><p><b>22.3.</b></p>
9878</td> 9893</td>
9879<td align="left" valign="top"><p>What is the difference between 9894<td align="left" valign="top"><p>What is the difference between
9880 <code class="varname">CC</code>, <code class="varname">PKG_CC</code> and 9895 <code class="varname">CC</code>, <code class="varname">PKG_CC</code> and
9881 <code class="varname">PKGSRC_COMPILER</code>?</p></td> 9896 <code class="varname">PKGSRC_COMPILER</code>?</p></td>
9882</tr> 9897</tr>
9883<tr class="answer"> 9898<tr class="answer">
9884<td align="left" valign="top"></td> 9899<td align="left" valign="top"></td>
9885<td align="left" valign="top"><p><code class="varname">CC</code> is the path to the real C 9900<td align="left" valign="top"><p><code class="varname">CC</code> is the path to the real C
9886 compiler, which can be configured by the pkgsrc user. 9901 compiler, which can be configured by the pkgsrc user.
9887 <code class="varname">PKG_CC</code> is the path to the compiler wrapper. 9902 <code class="varname">PKG_CC</code> is the path to the compiler wrapper.
9888 <code class="varname">PKGSRC_COMPILER</code> is <span class="emphasis"><em>not</em></span> a 9903 <code class="varname">PKGSRC_COMPILER</code> is <span class="emphasis"><em>not</em></span> a
9889 path to a compiler, but the type of compiler that should be 9904 path to a compiler, but the type of compiler that should be
9890 used. See <code class="filename">mk/compiler.mk</code> for more 9905 used. See <code class="filename">mk/compiler.mk</code> for more
9891 information about the latter variable.</p></td> 9906 information about the latter variable.</p></td>
9892</tr> 9907</tr>
9893<tr class="question"> 9908<tr class="question">
9894<td align="left" valign="top"> 9909<td align="left" valign="top">
9895<a name="devfaq.bl3flags"></a><a name="idp140459940190064"></a><p><b>22.4.</b></p> 9910<a name="devfaq.bl3flags"></a><a name="idm77211440"></a><p><b>22.4.</b></p>
9896</td> 9911</td>
9897<td align="left" valign="top"><p>What is the difference between 9912<td align="left" valign="top"><p>What is the difference between
9898 <code class="varname">BUILDLINK_LDFLAGS</code>, 9913 <code class="varname">BUILDLINK_LDFLAGS</code>,
9899 <code class="varname">BUILDLINK_LDADD</code> and 9914 <code class="varname">BUILDLINK_LDADD</code> and
9900 <code class="varname">BUILDLINK_LIBS</code>?</p></td> 9915 <code class="varname">BUILDLINK_LIBS</code>?</p></td>
9901</tr> 9916</tr>
9902<tr class="answer"> 9917<tr class="answer">
9903<td align="left" valign="top"></td> 9918<td align="left" valign="top"></td>
9904<td align="left" valign="top"><p>[FIXME]</p></td> 9919<td align="left" valign="top"><p>[FIXME]</p></td>
9905</tr> 9920</tr>
9906<tr class="question"> 9921<tr class="question">
9907<td align="left" valign="top"> 9922<td align="left" valign="top">
9908<a name="devfaq.bl3prefix"></a><a name="idp140459940192688"></a><p><b>22.5.</b></p> 9923<a name="devfaq.bl3prefix"></a><a name="idm77209264"></a><p><b>22.5.</b></p>
9909</td> 9924</td>
9910<td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var 9925<td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var
9911 VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span> 9926 VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span>
9912 say it's empty?</p></td> 9927 say it's empty?</p></td>
9913</tr> 9928</tr>
9914<tr class="answer"> 9929<tr class="answer">
9915<td align="left" valign="top"></td> 9930<td align="left" valign="top"></td>
9916<td align="left" valign="top"><p>For optimization reasons, some variables are only 9931<td align="left" valign="top"><p>For optimization reasons, some variables are only
9917 available in the <span class="quote">&#8220;<span class="quote">wrapper</span>&#8221;</span> phase and later. To 9932 available in the <span class="quote">&#8220;<span class="quote">wrapper</span>&#8221;</span> phase and later. To
9918 <span class="quote">&#8220;<span class="quote">simulate</span>&#8221;</span> the wrapper phase, append 9933 <span class="quote">&#8220;<span class="quote">simulate</span>&#8221;</span> the wrapper phase, append
9919 <span class="command"><strong>PKG_PHASE=wrapper</strong></span> to the above 9934 <span class="command"><strong>PKG_PHASE=wrapper</strong></span> to the above
9920 command.</p></td> 9935 command.</p></td>
9921</tr> 9936</tr>
9922<tr class="question"> 9937<tr class="question">
9923<td align="left" valign="top"> 9938<td align="left" valign="top">
9924<a name="devfaq.master_sites"></a><a name="idp140459940196560"></a><p><b>22.6.</b></p> 9939<a name="devfaq.master_sites"></a><a name="idm77206192"></a><p><b>22.6.</b></p>
9925</td> 9940</td>
9926<td align="left" valign="top"><p>What does 9941<td align="left" valign="top"><p>What does
9927 <code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I 9942 <code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I
9928 don't understand the <code class="literal">:=</code> inside 9943 don't understand the <code class="literal">:=</code> inside
9929 it.</p></td> 9944 it.</p></td>
9930</tr> 9945</tr>
9931<tr class="answer"> 9946<tr class="answer">
9932<td align="left" valign="top"></td> 9947<td align="left" valign="top"></td>
9933<td align="left" valign="top"><p>The <code class="literal">:=</code> is not really an 9948<td align="left" valign="top"><p>The <code class="literal">:=</code> is not really an
9934 assignment operator, like you might expect at first sight. 9949 assignment operator, like you might expect at first sight.
9935 Instead, it is a degenerate form of 9950 Instead, it is a degenerate form of
9936 <code class="literal">${LIST:<em class="replaceable"><code>old_string</code></em>=<em class="replaceable"><code>new_string</code></em>}</code>, 9951 <code class="literal">${LIST:<em class="replaceable"><code>old_string</code></em>=<em class="replaceable"><code>new_string</code></em>}</code>,
9937 which is documented in the <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> man page and which you 9952 which is documented in the <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> man page and which you
9938 may have seen as in <code class="literal">${SRCS:.c=.o}</code>. In the 9953 may have seen as in <code class="literal">${SRCS:.c=.o}</code>. In the
9939 case of <code class="varname">MASTER_SITE_*</code>, 9954 case of <code class="varname">MASTER_SITE_*</code>,
9940 <em class="replaceable"><code>old_string</code></em> is the empty string and 9955 <em class="replaceable"><code>old_string</code></em> is the empty string and
9941 <em class="replaceable"><code>new_string</code></em> is 9956 <em class="replaceable"><code>new_string</code></em> is
9942 <code class="literal">package/</code>. That's where the 9957 <code class="literal">package/</code>. That's where the
9943 <code class="literal">:</code> and the <code class="literal">=</code> fall 9958 <code class="literal">:</code> and the <code class="literal">=</code> fall
9944 together.</p></td> 9959 together.</p></td>
9945</tr> 9960</tr>
9946<tr class="question"> 9961<tr class="question">
9947<td align="left" valign="top"> 9962<td align="left" valign="top">
9948<a name="devfaq.mailinglists"></a><a name="idp140459940206176"></a><p><b>22.7.</b></p> 9963<a name="devfaq.mailinglists"></a><a name="idm77198128"></a><p><b>22.7.</b></p>
9949</td> 9964</td>
9950<td align="left" valign="top"><p>Which mailing lists are there for package 9965<td align="left" valign="top"><p>Which mailing lists are there for package
9951 developers?</p></td> 9966 developers?</p></td>
9952</tr> 9967</tr>
9953<tr class="answer"> 9968<tr class="answer">
9954<td align="left" valign="top"></td> 9969<td align="left" valign="top"></td>
9955<td align="left" valign="top"><div class="variablelist"><dl class="variablelist"> 9970<td align="left" valign="top"><div class="variablelist"><dl class="variablelist">
9956<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#tech-pkg" target="_top">tech-pkg</a></span></dt> 9971<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#tech-pkg" target="_top">tech-pkg</a></span></dt>
9957<dd><p>This is a list for technical discussions related 9972<dd><p>This is a list for technical discussions related
9958 to pkgsrc development, e.g. soliciting feedback for changes to 9973 to pkgsrc development, e.g. soliciting feedback for changes to
9959 pkgsrc infrastructure, proposed new features, questions related 9974 pkgsrc infrastructure, proposed new features, questions related
9960 to porting pkgsrc to a new platform, advice for maintaining a 9975 to porting pkgsrc to a new platform, advice for maintaining a
9961 package, patches that affect many packages, help requests moved 9976 package, patches that affect many packages, help requests moved
9962 from pkgsrc-users when an infrastructure bug is found, 9977 from pkgsrc-users when an infrastructure bug is found,
9963 etc.</p></dd> 9978 etc.</p></dd>
9964<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#pkgsrc-bugs" target="_top">pkgsrc-bugs</a></span></dt> 9979<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#pkgsrc-bugs" target="_top">pkgsrc-bugs</a></span></dt>
9965<dd><p>All bug reports in category "pkg" sent with 9980<dd><p>All bug reports in category "pkg" sent with
9966 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?send-pr+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">send-pr</span>(1)</span></a> appear here. Please do not report your bugs here 9981 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?send-pr+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">send-pr</span>(1)</span></a> appear here. Please do not report your bugs here
9967 directly; use one of the other mailing 9982 directly; use one of the other mailing
9968 lists.</p></dd> 9983 lists.</p></dd>
9969</dl></div></td> 9984</dl></div></td>
9970</tr> 9985</tr>
9971<tr class="question"> 9986<tr class="question">
9972<td align="left" valign="top"> 9987<td align="left" valign="top">
9973<a name="devfaq.documentation"></a><a name="idp140459940211088"></a><p><b>22.8.</b></p> 9988<a name="devfaq.documentation"></a><a name="idm77194288"></a><p><b>22.8.</b></p>
9974</td> 9989</td>
9975<td align="left" valign="top"><p>Where is the pkgsrc 9990<td align="left" valign="top"><p>Where is the pkgsrc
9976 documentation?</p></td> 9991 documentation?</p></td>
9977</tr> 9992</tr>
9978<tr class="answer"> 9993<tr class="answer">
9979<td align="left" valign="top"></td> 9994<td align="left" valign="top"></td>
9980<td align="left" valign="top"> 9995<td align="left" valign="top">
9981<p>There are many places where you can find 9996<p>There are many places where you can find
9982 documentation about pkgsrc:</p> 9997 documentation about pkgsrc:</p>
9983<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 9998<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
9984<li class="listitem"><p>The pkgsrc guide (this document) is a collection 9999<li class="listitem"><p>The pkgsrc guide (this document) is a collection
9985 of chapters that explain large parts of pkgsrc, but some 10000 of chapters that explain large parts of pkgsrc, but some
9986 chapters tend to be outdated. Which ones they are is hard to 10001 chapters tend to be outdated. Which ones they are is hard to
@@ -10008,27 +10023,27 @@ do? @@ -10008,27 +10023,27 @@ do?
10008 documented</span>&#8221;</span>, that is the documentation exists only in the 10023 documented</span>&#8221;</span>, that is the documentation exists only in the
10009 mind of the developer who wrote the code. To get this 10024 mind of the developer who wrote the code. To get this
10010 information, use the <span class="command"><strong>cvs annotate</strong></span> command 10025 information, use the <span class="command"><strong>cvs annotate</strong></span> command
10011 to see who has written it and ask on the 10026 to see who has written it and ask on the
10012 <code class="literal">tech-pkg</code> mailing list, so that others can 10027 <code class="literal">tech-pkg</code> mailing list, so that others can
10013 find your questions later (see above). To be sure that the 10028 find your questions later (see above). To be sure that the
10014 developer in charge reads the mail, you may CC him or 10029 developer in charge reads the mail, you may CC him or
10015 her.</p></li> 10030 her.</p></li>
10016</ul></div> 10031</ul></div>
10017</td> 10032</td>
10018</tr> 10033</tr>
10019<tr class="question"> 10034<tr class="question">
10020<td align="left" valign="top"> 10035<td align="left" valign="top">
10021<a name="devfaq.too-much-time"></a><a name="idp140459940219968"></a><p><b>22.9.</b></p> 10036<a name="devfaq.too-much-time"></a><a name="idm77179568"></a><p><b>22.9.</b></p>
10022</td> 10037</td>
10023<td align="left" valign="top"><p>I have a little time to kill. What shall I 10038<td align="left" valign="top"><p>I have a little time to kill. What shall I
10024do?</p></td> 10039do?</p></td>
10025</tr> 10040</tr>
10026<tr class="answer"> 10041<tr class="answer">
10027<td align="left" valign="top"></td> 10042<td align="left" valign="top"></td>
10028<td align="left" valign="top"> 10043<td align="left" valign="top">
10029<p>This is not really an FAQ yet, but here's the answer 10044<p>This is not really an FAQ yet, but here's the answer
10030anyway.</p> 10045anyway.</p>
10031<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 10046<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
10032<li class="listitem"><p>Run <span class="command"><strong>pkg_chk -N</strong></span> (from the 10047<li class="listitem"><p>Run <span class="command"><strong>pkg_chk -N</strong></span> (from the
10033 <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkg_chk/README.html" target="_top"><code class="filename">pkgtools/pkg_chk</code></a> package). It 10048 <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkg_chk/README.html" target="_top"><code class="filename">pkgtools/pkg_chk</code></a> package). It
10034 will tell you about newer versions of installed packages that are 10049 will tell you about newer versions of installed packages that are

cvs diff -r1.166 -r1.167 pkgsrc/doc/pkgsrc.txt (expand / switch to unified diff)

--- pkgsrc/doc/pkgsrc.txt 2013/08/21 10:11:44 1.166
+++ pkgsrc/doc/pkgsrc.txt 2013/08/22 13:55:29 1.167
@@ -54,32 +54,33 @@ I. The pkgsrc user's guide @@ -54,32 +54,33 @@ I. The pkgsrc user's guide
54 54
55 2.2.1. Via tar files 55 2.2.1. Via tar files
56 2.2.2. Via CVS 56 2.2.2. Via CVS
57 57
58 3. Using pkgsrc on systems other than NetBSD 58 3. Using pkgsrc on systems other than NetBSD
59 59
60 3.1. Binary distribution 60 3.1. Binary distribution
61 3.2. Bootstrapping pkgsrc 61 3.2. Bootstrapping pkgsrc
62 3.3. Platform-specific notes 62 3.3. Platform-specific notes
63 63
64 3.3.1. Cygwin 64 3.3.1. Cygwin
65 3.3.2. Darwin (Mac OS X) 65 3.3.2. Darwin (Mac OS X)
66 3.3.3. FreeBSD 66 3.3.3. FreeBSD
67 3.3.4. Interix 67 3.3.4. GNU/kFreeBSD
68 3.3.5. IRIX 68 3.3.5. Interix
69 3.3.6. Linux 69 3.3.6. IRIX
70 3.3.7. MirBSD 70 3.3.7. Linux
71 3.3.8. OpenBSD 71 3.3.8. MirBSD
72 3.3.9. Solaris 72 3.3.9. OpenBSD
 73 3.3.10. Solaris
73 74
74 4. Using pkgsrc 75 4. Using pkgsrc
75 76
76 4.1. Using binary packages 77 4.1. Using binary packages
77 78
78 4.1.1. Finding binary packages 79 4.1.1. Finding binary packages
79 4.1.2. Installing binary packages 80 4.1.2. Installing binary packages
80 4.1.3. Deinstalling packages 81 4.1.3. Deinstalling packages
81 4.1.4. Getting information about installed packages 82 4.1.4. Getting information about installed packages
82 4.1.5. Checking for security vulnerabilities in installed packages 83 4.1.5. Checking for security vulnerabilities in installed packages
83 4.1.6. Finding if newer versions of your installed packages are in 84 4.1.6. Finding if newer versions of your installed packages are in
84 pkgsrc 85 pkgsrc
85 4.1.7. Other administrative functions 86 4.1.7. Other administrative functions
@@ -586,26 +587,28 @@ Table 1.1. Platforms supported by pkgsrc @@ -586,26 +587,28 @@ Table 1.1. Platforms supported by pkgsrc
586|DragonFlyBSD | Oct 2004 | 587|DragonFlyBSD | Oct 2004 |
587|---------------------------------------------+------------------| 588|---------------------------------------------+------------------|
588|OSF/1 | Nov 2004 | 589|OSF/1 | Nov 2004 |
589|---------------------------------------------+------------------| 590|---------------------------------------------+------------------|
590|HP-UX | Apr 2007 | 591|HP-UX | Apr 2007 |
591|---------------------------------------------+------------------| 592|---------------------------------------------+------------------|
592|Haiku | Sep 2010 | 593|Haiku | Sep 2010 |
593|---------------------------------------------+------------------| 594|---------------------------------------------+------------------|
594|MirBSD | Jan 2011 | 595|MirBSD | Jan 2011 |
595|---------------------------------------------+------------------| 596|---------------------------------------------+------------------|
596|Minix3 | Nov 2011 | 597|Minix3 | Nov 2011 |
597|---------------------------------------------+------------------| 598|---------------------------------------------+------------------|
598|Cygwin | Mar 2013 | 599|Cygwin | Mar 2013 |
 600|---------------------------------------------+------------------|
 601|GNU/kFreeBSD | Jul 2013 |
599+----------------------------------------------------------------+ 602+----------------------------------------------------------------+
600 603
601 604
6021.2. Overview 6051.2. Overview
603 606
604This document is divided into three parts. The first, The pkgsrc user's guide, 607This document is divided into three parts. The first, The pkgsrc user's guide,
605describes how one can use one of the packages in the Package Collection, either 608describes how one can use one of the packages in the Package Collection, either
606by installing a precompiled binary package, or by building one's own copy using 609by installing a precompiled binary package, or by building one's own copy using
607the NetBSD package system. The second part, The pkgsrc developer's guide, 610the NetBSD package system. The second part, The pkgsrc developer's guide,
608explains how to prepare a package so it can be easily built by other NetBSD 611explains how to prepare a package so it can be easily built by other NetBSD
609users without knowing about the package's building details. The third part, The 612users without knowing about the package's building details. The third part, The
610pkgsrc infrastructure internals is intended for those who want to understand 613pkgsrc infrastructure internals is intended for those who want to understand
611how pkgsrc is implemented. 614how pkgsrc is implemented.
@@ -707,32 +710,33 @@ Table of Contents @@ -707,32 +710,33 @@ Table of Contents
707 710
708 2.2.1. Via tar files 711 2.2.1. Via tar files
709 2.2.2. Via CVS 712 2.2.2. Via CVS
710 713
7113. Using pkgsrc on systems other than NetBSD 7143. Using pkgsrc on systems other than NetBSD
712 715
713 3.1. Binary distribution 716 3.1. Binary distribution
714 3.2. Bootstrapping pkgsrc 717 3.2. Bootstrapping pkgsrc
715 3.3. Platform-specific notes 718 3.3. Platform-specific notes
716 719
717 3.3.1. Cygwin 720 3.3.1. Cygwin
718 3.3.2. Darwin (Mac OS X) 721 3.3.2. Darwin (Mac OS X)
719 3.3.3. FreeBSD 722 3.3.3. FreeBSD
720 3.3.4. Interix 723 3.3.4. GNU/kFreeBSD
721 3.3.5. IRIX 724 3.3.5. Interix
722 3.3.6. Linux 725 3.3.6. IRIX
723 3.3.7. MirBSD 726 3.3.7. Linux
724 3.3.8. OpenBSD 727 3.3.8. MirBSD
725 3.3.9. Solaris 728 3.3.9. OpenBSD
 729 3.3.10. Solaris
726 730
7274. Using pkgsrc 7314. Using pkgsrc
728 732
729 4.1. Using binary packages 733 4.1. Using binary packages
730 734
731 4.1.1. Finding binary packages 735 4.1.1. Finding binary packages
732 4.1.2. Installing binary packages 736 4.1.2. Installing binary packages
733 4.1.3. Deinstalling packages 737 4.1.3. Deinstalling packages
734 4.1.4. Getting information about installed packages 738 4.1.4. Getting information about installed packages
735 4.1.5. Checking for security vulnerabilities in installed packages 739 4.1.5. Checking for security vulnerabilities in installed packages
736 4.1.6. Finding if newer versions of your installed packages are in 740 4.1.6. Finding if newer versions of your installed packages are in
737 pkgsrc 741 pkgsrc
738 4.1.7. Other administrative functions 742 4.1.7. Other administrative functions
@@ -990,32 +994,33 @@ later updates will try to merge your cha @@ -990,32 +994,33 @@ later updates will try to merge your cha
990others. See the CVS manual, chapter "update" for details. 994others. See the CVS manual, chapter "update" for details.
991 995
992Chapter 3. Using pkgsrc on systems other than NetBSD 996Chapter 3. Using pkgsrc on systems other than NetBSD
993 997
994Table of Contents 998Table of Contents
995 999
9963.1. Binary distribution 10003.1. Binary distribution
9973.2. Bootstrapping pkgsrc 10013.2. Bootstrapping pkgsrc
9983.3. Platform-specific notes 10023.3. Platform-specific notes
999 1003
1000 3.3.1. Cygwin 1004 3.3.1. Cygwin
1001 3.3.2. Darwin (Mac OS X) 1005 3.3.2. Darwin (Mac OS X)
1002 3.3.3. FreeBSD 1006 3.3.3. FreeBSD
1003 3.3.4. Interix 1007 3.3.4. GNU/kFreeBSD
1004 3.3.5. IRIX 1008 3.3.5. Interix
1005 3.3.6. Linux 1009 3.3.6. IRIX
1006 3.3.7. MirBSD 1010 3.3.7. Linux
1007 3.3.8. OpenBSD 1011 3.3.8. MirBSD
1008 3.3.9. Solaris 1012 3.3.9. OpenBSD
 1013 3.3.10. Solaris
1009 1014
10103.1. Binary distribution 10153.1. Binary distribution
1011 1016
1012See Section 4.1, "Using binary packages". 1017See Section 4.1, "Using binary packages".
1013 1018
10143.2. Bootstrapping pkgsrc 10193.2. Bootstrapping pkgsrc
1015 1020
1016pkgsrc can be bootstrapped for use in two different modes: privileged and 1021pkgsrc can be bootstrapped for use in two different modes: privileged and
1017unprivileged one. In unprivileged mode in contrast to privileged one all 1022unprivileged one. In unprivileged mode in contrast to privileged one all
1018programs are installed under one particular user and cannot utilise privileged 1023programs are installed under one particular user and cannot utilise privileged
1019operations (packages don't create special users and all special file 1024operations (packages don't create special users and all special file
1020permissions like setuid are ignored). 1025permissions like setuid are ignored).
1021 1026
@@ -1096,45 +1101,52 @@ with the FreeBSD userland tools. There a @@ -1096,45 +1101,52 @@ with the FreeBSD userland tools. There a
1096 2. If you do not intend to use the FreeBSD ports tools, it's probably a good 1101 2. If you do not intend to use the FreeBSD ports tools, it's probably a good
1097 idea to move them out of the way to avoid confusion, e.g. 1102 idea to move them out of the way to avoid confusion, e.g.
1098 1103
1099 # cd /usr/sbin 1104 # cd /usr/sbin
1100 # mv pkg_add pkg_add.orig 1105 # mv pkg_add pkg_add.orig
1101 # mv pkg_create pkg_create.orig 1106 # mv pkg_create pkg_create.orig
1102 # mv pkg_delete pkg_delete.orig 1107 # mv pkg_delete pkg_delete.orig
1103 # mv pkg_info pkg_info.orig 1108 # mv pkg_info pkg_info.orig
1104 1109
1105 1110
1106 3. An example mk.conf file will be placed in /etc/mk.conf.example file when 1111 3. An example mk.conf file will be placed in /etc/mk.conf.example file when
1107 you use the bootstrap script. 1112 you use the bootstrap script.
1108 1113
11093.3.4. Interix 11143.3.4. GNU/kFreeBSD
 1115
 1116Debian GNU/kFreeBSD is the only GNU/kFreeBSD distribution now. Debian GNU/
 1117kFreeBSD 7.0 or later is tested and supported.
 1118
 1119You should install ncurses (libncurses and libncurses-dev) packages.
 1120
 11213.3.5. Interix
1110 1122
1111Interix is a POSIX-compatible subsystem for the Windows NT kernel, providing a 1123Interix is a POSIX-compatible subsystem for the Windows NT kernel, providing a
1112Unix-like environment with a tighter kernel integration than available with 1124Unix-like environment with a tighter kernel integration than available with
1113Cygwin. It is part of the Windows Services for Unix package, available for free 1125Cygwin. It is part of the Windows Services for Unix package, available for free
1114for any licensed copy of Windows 2000, XP (not including XP Home), or 2003. SFU 1126for any licensed copy of Windows 2000, XP (not including XP Home), or 2003. SFU
1115can be downloaded from http://www.microsoft.com/windows/sfu/. 1127can be downloaded from http://www.microsoft.com/windows/sfu/.
1116 1128
1117Services for Unix 3.5 has been tested. 3.0 or 3.1 may work, but are not 1129Services for Unix 3.5 has been tested. 3.0 or 3.1 may work, but are not
1118officially supported. (The main difference in 3.0/3.1 is lack of pthreads, but 1130officially supported. (The main difference in 3.0/3.1 is lack of pthreads, but
1119other parts of libc may also be lacking.) 1131other parts of libc may also be lacking.)
1120 1132
1121Services for Unix Applications (aka SUA) is an integrated component of Windows 1133Services for Unix Applications (aka SUA) is an integrated component of Windows
1122Server 2003 R2 (5.2), Windows Vista and Windows Server 2008 (6.0), Windows 7 1134Server 2003 R2 (5.2), Windows Vista and Windows Server 2008 (6.0), Windows 7
1123and Windows Server 2008 R2 (6.1). As of this writing, the SUA's Interix 6.0 1135and Windows Server 2008 R2 (6.1). As of this writing, the SUA's Interix 6.0
1124(32bit) and 6.1 (64bit) subsystems have been tested. Other versions may work as 1136(32bit) and 6.1 (64bit) subsystems have been tested. Other versions may work as
1125well. The Interix 5.x subsystem has not yet been tested with pkgsrc. 1137well. The Interix 5.x subsystem has not yet been tested with pkgsrc.
1126 1138
11273.3.4.1. When installing Interix/SFU 11393.3.5.1. When installing Interix/SFU
1128 1140
1129At an absolute minimum, the following packages must be installed from the 1141At an absolute minimum, the following packages must be installed from the
1130Windows Services for Unix 3.5 distribution in order to use pkgsrc: 1142Windows Services for Unix 3.5 distribution in order to use pkgsrc:
1131 1143
1132 * Utilities -> Base Utilities 1144 * Utilities -> Base Utilities
1133 1145
1134 * Interix GNU Components -> (all) 1146 * Interix GNU Components -> (all)
1135 1147
1136 * Remote Connectivity 1148 * Remote Connectivity
1137 1149
1138 * Interix SDK 1150 * Interix SDK
1139 1151
1140When using pkgsrc on Interix, DO NOT install the Utilities subcomponent "UNIX 1152When using pkgsrc on Interix, DO NOT install the Utilities subcomponent "UNIX
@@ -1158,75 +1170,75 @@ PSXRUN.EXE, and PSXSS.EXE (899522 or new @@ -1158,75 +1170,75 @@ PSXRUN.EXE, and PSXSS.EXE (899522 or new
1158available from Microsoft through a support contract; however, Debian Interix 1170available from Microsoft through a support contract; however, Debian Interix
1159Port has made most Interix hotfixes available for personal use from http:// 1171Port has made most Interix hotfixes available for personal use from http://
1160www.debian-interix.net/hotfixes/. 1172www.debian-interix.net/hotfixes/.
1161 1173
1162In addition to the hotfix noted above, it may be necessary to disable Data 1174In addition to the hotfix noted above, it may be necessary to disable Data
1163Execution Prevention entirely to make Interix functional. This may happen only 1175Execution Prevention entirely to make Interix functional. This may happen only
1164with certain types of CPUs; the cause is not fully understood at this time. If 1176with certain types of CPUs; the cause is not fully understood at this time. If
1165gcc or other applications still segfault repeatedly after installing one of the 1177gcc or other applications still segfault repeatedly after installing one of the
1166hotfixes note above, the following option can be added to the appropriate 1178hotfixes note above, the following option can be added to the appropriate
1167"boot.ini" line on the Windows boot drive: /NoExecute=AlwaysOff (WARNING, this 1179"boot.ini" line on the Windows boot drive: /NoExecute=AlwaysOff (WARNING, this
1168will disable DEP completely, which may be a security risk if applications are 1180will disable DEP completely, which may be a security risk if applications are
1169often run as a user in the Administrators group!) 1181often run as a user in the Administrators group!)
1170 1182
11713.3.4.2. What to do if Interix/SFU is already installed 11833.3.5.2. What to do if Interix/SFU is already installed
1172 1184
1173If SFU is already installed and you wish to alter these settings to work with 1185If SFU is already installed and you wish to alter these settings to work with
1174pkgsrc, note the following things. 1186pkgsrc, note the following things.
1175 1187
1176 * To uninstall UNIX Perl, use Add/Remove Programs, select Microsoft Windows 1188 * To uninstall UNIX Perl, use Add/Remove Programs, select Microsoft Windows
1177 Services for UNIX, then click Change. In the installer, choose Add or 1189 Services for UNIX, then click Change. In the installer, choose Add or
1178 Remove, then uncheck Utilities->UNIX Perl. 1190 Remove, then uncheck Utilities->UNIX Perl.
1179 1191
1180 * To enable case-sensitivity for the file system, run REGEDIT.EXE, and change 1192 * To enable case-sensitivity for the file system, run REGEDIT.EXE, and change
1181 the following registry key: 1193 the following registry key:
1182 1194
1183 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel 1195 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel
1184 1196
1185 Set the DWORD value "obcaseinsensitive" to 0; then reboot. 1197 Set the DWORD value "obcaseinsensitive" to 0; then reboot.
1186 1198
1187 * To enable setuid binaries (optional), run REGEDIT.EXE, and change the 1199 * To enable setuid binaries (optional), run REGEDIT.EXE, and change the
1188 following registry key: 1200 following registry key:
1189 1201
1190 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Services for UNIX 1202 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Services for UNIX
1191 1203
1192 Set the DWORD value "EnableSetuidBinaries" to 1; then reboot. 1204 Set the DWORD value "EnableSetuidBinaries" to 1; then reboot.
1193 1205
11943.3.4.3. Important notes for using pkgsrc 12063.3.5.3. Important notes for using pkgsrc
1195 1207
1196The package manager (either the pkgsrc "su" user, or the user running 1208The package manager (either the pkgsrc "su" user, or the user running
1197"pkg_add") must be a member of the local Administrators group. Such a user must 1209"pkg_add") must be a member of the local Administrators group. Such a user must
1198also be used to run the bootstrap. This is slightly relaxed from the normal 1210also be used to run the bootstrap. This is slightly relaxed from the normal
1199pkgsrc requirement of "root". 1211pkgsrc requirement of "root".
1200 1212
1201The package manager should use a umask of 002. "make install" will 1213The package manager should use a umask of 002. "make install" will
1202automatically complain if this is not the case. This ensures that directories 1214automatically complain if this is not the case. This ensures that directories
1203written in /var/db/pkg are Administrators-group writeable. 1215written in /var/db/pkg are Administrators-group writeable.
1204 1216
1205The popular Interix binary packages from http://www.interopsystems.com/ use an 1217The popular Interix binary packages from http://www.interopsystems.com/ use an
1206older version of pkgsrc's pkg_* tools. Ideally, these should NOT be used in 1218older version of pkgsrc's pkg_* tools. Ideally, these should NOT be used in
1207conjunction with pkgsrc. If you choose to use them at the same time as the 1219conjunction with pkgsrc. If you choose to use them at the same time as the
1208pkgsrc packages, ensure that you use the proper pkg_* tools for each type of 1220pkgsrc packages, ensure that you use the proper pkg_* tools for each type of
1209binary package. 1221binary package.
1210 1222
1211The TERM setting used for DOS-type console windows (including those invoked by 1223The TERM setting used for DOS-type console windows (including those invoked by
1212the csh and ksh startup shortcuts) is "interix". Most systems don't have a 1224the csh and ksh startup shortcuts) is "interix". Most systems don't have a
1213termcap/terminfo entry for it, but the following .termcap entry provides 1225termcap/terminfo entry for it, but the following .termcap entry provides
1214adequate emulation in most cases: 1226adequate emulation in most cases:
1215 1227
1216interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi: 1228interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi:
1217 1229
1218 1230
12193.3.4.4. Limitations of the Interix platform 12313.3.5.4. Limitations of the Interix platform
1220 1232
1221Though Interix suffices as a familiar and flexible substitute for a full 1233Though Interix suffices as a familiar and flexible substitute for a full
1222Unix-like platform, it has some drawbacks that should be noted for those 1234Unix-like platform, it has some drawbacks that should be noted for those
1223desiring to make the most of Interix. 1235desiring to make the most of Interix.
1224 1236
1225 * X11: 1237 * X11:
1226 1238
1227 Interix comes with the standard set of X11R6 client libraries, and can run 1239 Interix comes with the standard set of X11R6 client libraries, and can run
1228 X11 based applications, but it does not come with an X server. Some options 1240 X11 based applications, but it does not come with an X server. Some options
1229 are StarNet X-Win32, Hummingbird Exceed (available in a trimmed version for 1241 are StarNet X-Win32, Hummingbird Exceed (available in a trimmed version for
1230 Interix from Interop Systems as the Interop X Server), and the free X11 1242 Interix from Interop Systems as the Interop X Server), and the free X11
1231 server included with Cygwin. 1243 server included with Cygwin.
1232 1244
@@ -1250,43 +1262,43 @@ desiring to make the most of Interix. @@ -1250,43 +1262,43 @@ desiring to make the most of Interix.
1250 1262
1251 Direct device access is not currently supported in Interix, so it is not 1263 Direct device access is not currently supported in Interix, so it is not
1252 currently possible to access CD/DVD drives, USB devices, or SCSI devices 1264 currently possible to access CD/DVD drives, USB devices, or SCSI devices
1253 through non-filesystem means. Among other things, this makes it impossible 1265 through non-filesystem means. Among other things, this makes it impossible
1254 to use Interix directly for CD/DVD burning. 1266 to use Interix directly for CD/DVD burning.
1255 1267
1256 * Tape drives: 1268 * Tape drives:
1257 1269
1258 Due to the same limitations as for CD-ROMs and SCSI devices, tape drives 1270 Due to the same limitations as for CD-ROMs and SCSI devices, tape drives
1259 are also not directly accessible in Interix. However, support is in work to 1271 are also not directly accessible in Interix. However, support is in work to
1260 make tape drive access possible by using Cygwin as a bridge (similarly to 1272 make tape drive access possible by using Cygwin as a bridge (similarly to
1261 audio bridged via Cygwin's esound server). 1273 audio bridged via Cygwin's esound server).
1262 1274
12633.3.4.5. Known issues for pkgsrc on Interix 12753.3.5.5. Known issues for pkgsrc on Interix
1264 1276
1265It is not necessary, in general, to have a "root" user on the Windows system; 1277It is not necessary, in general, to have a "root" user on the Windows system;
1266any member of the local Administrators group will suffice. However, some 1278any member of the local Administrators group will suffice. However, some
1267packages currently assume that the user named "root" is the privileged user. To 1279packages currently assume that the user named "root" is the privileged user. To
1268accommodate these, you may create such a user; make sure it is in the local 1280accommodate these, you may create such a user; make sure it is in the local
1269group Administrators (or your language equivalent). 1281group Administrators (or your language equivalent).
1270 1282
1271pkg_add creates directories of mode 0755, not 0775, in $PKG_DBDIR. For the time 1283pkg_add creates directories of mode 0755, not 0775, in $PKG_DBDIR. For the time
1272being, install packages as the local Administrator (or your language 1284being, install packages as the local Administrator (or your language
1273equivalent), or run the following command after installing a package to work 1285equivalent), or run the following command after installing a package to work
1274around the issue: 1286around the issue:
1275 1287
1276# chmod -R g+w $PKG_DBDIR 1288# chmod -R g+w $PKG_DBDIR
1277 1289
1278 1290
12793.3.5. IRIX 12913.3.6. IRIX
1280 1292
1281You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro 1293You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro
1282compiler (cc/c89). Please set the CC environment variable according to your 1294compiler (cc/c89). Please set the CC environment variable according to your
1283preference. If you do not have a license for the MIPSpro compiler suite, you 1295preference. If you do not have a license for the MIPSpro compiler suite, you
1284can download a gcc tardist file from http://freeware.sgi.com/. 1296can download a gcc tardist file from http://freeware.sgi.com/.
1285 1297
1286Please note that you will need IRIX 6.5.17 or higher, as this is the earliest 1298Please note that you will need IRIX 6.5.17 or higher, as this is the earliest
1287version of IRIX providing support for if_indextoname(3), if_nametoindex(3), 1299version of IRIX providing support for if_indextoname(3), if_nametoindex(3),
1288etc. 1300etc.
1289 1301
1290At this point in time, pkgsrc only supports one ABI at a time. That is, you 1302At this point in time, pkgsrc only supports one ABI at a time. That is, you
1291cannot switch between the old 32-bit ABI, the new 32-bit ABI and the 64-bit 1303cannot switch between the old 32-bit ABI, the new 32-bit ABI and the 64-bit
1292ABI. If you start out using "abi=n32", that's what all your packages will be 1304ABI. If you start out using "abi=n32", that's what all your packages will be
@@ -1310,27 +1322,27 @@ If you are using SGI's MIPSPro compiler, @@ -1310,27 +1322,27 @@ If you are using SGI's MIPSPro compiler,
1310 1322
1311PKGSRC_COMPILER= mipspro 1323PKGSRC_COMPILER= mipspro
1312 1324
1313 1325
1314in mk.conf. Otherwise, pkgsrc will assume you are using gcc and may end up 1326in mk.conf. Otherwise, pkgsrc will assume you are using gcc and may end up
1315passing invalid flags to the compiler. Note that bootstrap should create an 1327passing invalid flags to the compiler. Note that bootstrap should create an
1316appropriate mk.conf.example by default. 1328appropriate mk.conf.example by default.
1317 1329
1318If you have both the MIPSPro compiler chain installed as well as gcc, but want 1330If you have both the MIPSPro compiler chain installed as well as gcc, but want
1319to make sure that MIPSPro is used, please set your PATH to not include the 1331to make sure that MIPSPro is used, please set your PATH to not include the
1320location of gcc (often /usr/freeware/bin), and (important) pass the 1332location of gcc (often /usr/freeware/bin), and (important) pass the
1321'--preserve-path' flag. 1333'--preserve-path' flag.
1322 1334
13233.3.6. Linux 13353.3.7. Linux
1324 1336
1325Some versions of Linux (for example Debian GNU/Linux) need either libtermcap or 1337Some versions of Linux (for example Debian GNU/Linux) need either libtermcap or
1326libcurses (libncurses). Installing the distributions libncurses-dev package (or 1338libcurses (libncurses). Installing the distributions libncurses-dev package (or
1327equivalent) should fix the problem. 1339equivalent) should fix the problem.
1328 1340
1329pkgsrc supports both gcc (GNU Compiler Collection) and icc (Intel C++ 1341pkgsrc supports both gcc (GNU Compiler Collection) and icc (Intel C++
1330Compiler). gcc is the default. icc 8.0 and 8.1 on i386 have been tested. 1342Compiler). gcc is the default. icc 8.0 and 8.1 on i386 have been tested.
1331 1343
1332To bootstrap using icc, assuming the default icc installation directory: 1344To bootstrap using icc, assuming the default icc installation directory:
1333 1345
1334env ICCBASE=/opt/intel/cc/10.1.008 ./bootstrap --compiler=icc 1346env ICCBASE=/opt/intel/cc/10.1.008 ./bootstrap --compiler=icc
1335 1347
1336 1348
@@ -1352,46 +1364,46 @@ The pkgsrc default for ICCBASE is /opt/i @@ -1352,46 +1364,46 @@ The pkgsrc default for ICCBASE is /opt/i
1352directory for icc 8.0. If you are using a more recent version, be sure to set 1364directory for icc 8.0. If you are using a more recent version, be sure to set
1353the correct path explicitly. 1365the correct path explicitly.
1354 1366
1355pkgsrc uses the static linking method of the runtime libraries provided by icc, 1367pkgsrc uses the static linking method of the runtime libraries provided by icc,
1356so binaries can be run on other systems which do not have the shared libraries 1368so binaries can be run on other systems which do not have the shared libraries
1357installed. 1369installed.
1358 1370
1359Libtool, however, extracts a list of libraries from the ld(1) command run when 1371Libtool, however, extracts a list of libraries from the ld(1) command run when
1360linking a C++ shared library and records it, throwing away the -Bstatic and 1372linking a C++ shared library and records it, throwing away the -Bstatic and
1361-Bdynamic options interspersed between the libraries. This means that 1373-Bdynamic options interspersed between the libraries. This means that
1362libtool-linked C++ shared libraries will have a runtime dependency on the icc 1374libtool-linked C++ shared libraries will have a runtime dependency on the icc
1363libraries until this is fixed in libtool. 1375libraries until this is fixed in libtool.
1364 1376
13653.3.7. MirBSD 13773.3.8. MirBSD
1366 1378
1367pkgsrc has been tested on MirBSD #10-current (2011 and newer). Older versions 1379pkgsrc has been tested on MirBSD #10-current (2011 and newer). Older versions
1368might also work. Releases before #10 are not supported. 1380might also work. Releases before #10 are not supported.
1369 1381
1370The package tools of the (older) native ports tree, MirPorts, have the same 1382The package tools of the (older) native ports tree, MirPorts, have the same
1371names as the ones used by pkgsrc. Care should be taken that the right tools are 1383names as the ones used by pkgsrc. Care should be taken that the right tools are
1372used. When installing packages from source, use the bmake command for pkgsrc 1384used. When installing packages from source, use the bmake command for pkgsrc
1373and mmake for MirPorts. 1385and mmake for MirPorts.
1374 1386
1375pkgsrc and MirPorts use the same location for the package database, /var/db/ 1387pkgsrc and MirPorts use the same location for the package database, /var/db/
1376pkg. It is strongly recommended to use /usr/pkg/db instead, so that the pkgsrc 1388pkg. It is strongly recommended to use /usr/pkg/db instead, so that the pkgsrc
1377tree is self-contained. This is also the default setting used in the binary 1389tree is self-contained. This is also the default setting used in the binary
1378package builds. 1390package builds.
1379 1391
1380Binary packages for MirBSD/i386 can be found on the pkgsrc ftp server. The 1392Binary packages for MirBSD/i386 can be found on the pkgsrc ftp server. The
1381bootstrap kit there already contains the pkgin package manager. See the pkgsrc 1393bootstrap kit there already contains the pkgin package manager. See the pkgsrc
1382on MirOS page for more details. 1394on MirOS page for more details.
1383 1395
13843.3.8. OpenBSD 13963.3.9. OpenBSD
1385 1397
1386OpenBSD 5.1 has been tested and supported, other versions may work. 1398OpenBSD 5.1 has been tested and supported, other versions may work.
1387 1399
1388Care should be taken so that the tools that this kit installs do not conflict 1400Care should be taken so that the tools that this kit installs do not conflict
1389with the OpenBSD userland tools. There are several steps: 1401with the OpenBSD userland tools. There are several steps:
1390 1402
1391 1. OpenBSD stores its ports pkg database in /var/db/pkg. It is therefore 1403 1. OpenBSD stores its ports pkg database in /var/db/pkg. It is therefore
1392 recommended that you choose a different location (e.g. /usr/pkgdb) by using 1404 recommended that you choose a different location (e.g. /usr/pkgdb) by using
1393 the --pkgdbdir option to the bootstrap script. 1405 the --pkgdbdir option to the bootstrap script.
1394 1406
1395 2. If you do not intend to use the OpenBSD ports tools, it's probably a good 1407 2. If you do not intend to use the OpenBSD ports tools, it's probably a good
1396 idea to move them out of the way to avoid confusion, e.g. 1408 idea to move them out of the way to avoid confusion, e.g.
1397 1409
@@ -1404,100 +1416,100 @@ with the OpenBSD userland tools. There a @@ -1404,100 +1416,100 @@ with the OpenBSD userland tools. There a
1404 1416
1405 3. An example mk.conf file will be placed in /etc/mk.conf.example file when 1417 3. An example mk.conf file will be placed in /etc/mk.conf.example file when
1406 you use the bootstrap script. OpenBSD's make program uses mk.conf as well. 1418 you use the bootstrap script. OpenBSD's make program uses mk.conf as well.
1407 You can work around this by enclosing all the pkgsrc-specific parts of the 1419 You can work around this by enclosing all the pkgsrc-specific parts of the
1408 file with: 1420 file with:
1409 1421
1410 .ifdef BSD_PKG_MK 1422 .ifdef BSD_PKG_MK
1411 # pkgsrc stuff, e.g. insert defaults/mk.conf or similar here 1423 # pkgsrc stuff, e.g. insert defaults/mk.conf or similar here
1412 .else 1424 .else
1413 # OpenBSD stuff 1425 # OpenBSD stuff
1414 .endif 1426 .endif
1415 1427
1416 1428
14173.3.9. Solaris 14293.3.10. Solaris
1418 1430
1419Solaris 2.6 through 10 are supported on both x86 and sparc. You will need a 1431Solaris 2.6 through 10 are supported on both x86 and sparc. You will need a
1420working C compiler. Both gcc 4.5.3 and Sun WorkShop 5 have been tested. 1432working C compiler. Both gcc 4.5.3 and Sun WorkShop 5 have been tested.
1421 1433
1422The following packages are required on Solaris 8 for the bootstrap process and 1434The following packages are required on Solaris 8 for the bootstrap process and
1423to build packages. 1435to build packages.
1424 1436
1425 * SUNWsprot 1437 * SUNWsprot
1426 1438
1427 * SUNWarc 1439 * SUNWarc
1428 1440
1429 * SUNWbtool 1441 * SUNWbtool
1430 1442
1431 * SUNWtoo 1443 * SUNWtoo
1432 1444
1433 * SUNWlibm 1445 * SUNWlibm
1434 1446
1435Please note that the use of GNU binutils on Solaris is not supported, as of 1447Please note that the use of GNU binutils on Solaris is not supported, as of
1436June 2006. 1448June 2006.
1437 1449
1438Whichever compiler you use, please ensure the compiler tools and your $prefix 1450Whichever compiler you use, please ensure the compiler tools and your $prefix
1439are in your PATH. This includes /usr/ccs/{bin,lib} and e.g. /usr/pkg/ 1451are in your PATH. This includes /usr/ccs/{bin,lib} and e.g. /usr/pkg/
1440{bin,sbin}. 1452{bin,sbin}.
1441 1453
14423.3.9.1. If you are using gcc 14543.3.10.1. If you are using gcc
1443 1455
1444It makes life much simpler if you only use the same gcc consistently for 1456It makes life much simpler if you only use the same gcc consistently for
1445building all packages. 1457building all packages.
1446 1458
1447It is recommended that an external gcc be used only for bootstrapping, then 1459It is recommended that an external gcc be used only for bootstrapping, then
1448either build gcc from lang/gcc46 or install a binary gcc package, then remove 1460either build gcc from lang/gcc46 or install a binary gcc package, then remove
1449gcc used during bootstrapping. 1461gcc used during bootstrapping.
1450 1462
1451Binary packages of gcc can be found through http://www.sunfreeware.com/. 1463Binary packages of gcc can be found through http://www.sunfreeware.com/.
1452 1464
14533.3.9.2. If you are using Sun WorkShop 14653.3.10.2. If you are using Sun WorkShop
1454 1466
1455You will need at least the following packages installed (from WorkShop 5.0) 1467You will need at least the following packages installed (from WorkShop 5.0)
1456 1468
1457 * SPROcc - Sun WorkShop Compiler C 5.0 1469 * SPROcc - Sun WorkShop Compiler C 5.0
1458 1470
1459 * SPROcpl - Sun WorkShop Compiler C++ 5.0 1471 * SPROcpl - Sun WorkShop Compiler C++ 5.0
1460 1472
1461 * SPROild - Sun WorkShop Incremental Linker 1473 * SPROild - Sun WorkShop Incremental Linker
1462 1474
1463 * SPROlang - Sun WorkShop Compilers common components 1475 * SPROlang - Sun WorkShop Compilers common components
1464 1476
1465You should set the following variables in your mk.conf file: 1477You should set the following variables in your mk.conf file:
1466 1478
1467CC= cc 1479CC= cc
1468CXX= CC 1480CXX= CC
1469CPP= cc -E 1481CPP= cc -E
1470CXXCPP= CC -E 1482CXXCPP= CC -E
1471 1483
1472Note 1484Note
1473 1485
1474The CPP setting might break some packages that use the C preprocessor for 1486The CPP setting might break some packages that use the C preprocessor for
1475processing things other than C source code. 1487processing things other than C source code.
1476 1488
14773.3.9.3. Building 64-bit binaries with SunPro 14893.3.10.3. Building 64-bit binaries with SunPro
1478 1490
1479To build 64-bit packages, you just need to have the following lines in your 1491To build 64-bit packages, you just need to have the following lines in your
1480mk.conf file: 1492mk.conf file:
1481 1493
1482PKGSRC_COMPILER= sunpro 1494PKGSRC_COMPILER= sunpro
1483ABI= 64 1495ABI= 64
1484 1496
1485Note 1497Note
1486 1498
1487This setting has been tested for the SPARC architecture. Intel and AMD machines 1499This setting has been tested for the SPARC architecture. Intel and AMD machines
1488need some more work. 1500need some more work.
1489 1501
14903.3.9.4. Common problems 15023.3.10.4. Common problems
1491 1503
1492Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The 1504Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The
1493workaround is to use another shell for the configure scripts, for example by 1505workaround is to use another shell for the configure scripts, for example by
1494installing shells/bash and adding the following lines to your mk.conf: 1506installing shells/bash and adding the following lines to your mk.conf:
1495 1507
1496CONFIG_SHELL= ${LOCALBASE}/bin/bash 1508CONFIG_SHELL= ${LOCALBASE}/bin/bash
1497WRAPPER_SHELL= ${LOCALBASE}/bin/bash 1509WRAPPER_SHELL= ${LOCALBASE}/bin/bash
1498 1510
1499 1511
1500Then, rebuild the devel/libtool-base package. 1512Then, rebuild the devel/libtool-base package.
1501 1513
1502Chapter 4. Using pkgsrc 1514Chapter 4. Using pkgsrc
1503 1515