summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/pkgsrc.html967
-rw-r--r--doc/pkgsrc.txt90
2 files changed, 623 insertions, 434 deletions
diff --git a/doc/pkgsrc.html b/doc/pkgsrc.html
index 3f78c1b404c..ed10fa42c66 100644
--- a/doc/pkgsrc.html
+++ b/doc/pkgsrc.html
@@ -1,7 +1,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
- "HTML Tidy for NetBSD (vers 1 September 2005), see www.w3.org" />
+ "HTML Tidy for NetBSD (vers 1st August 2004), see www.w3.org" />
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
@@ -15,12 +15,12 @@
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084"
alink="#0000FF">
- <div class="book" lang="en">
+ <div class="book" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h1 class="title"><a name="the-pkgsrc-guide"></a>The
- pkgsrc guide</h1>
+ <h1 class="title"><a name="the-pkgsrc-guide" id=
+ "the-pkgsrc-guide"></a>The pkgsrc guide</h1>
</div>
<div>
@@ -692,8 +692,8 @@ alink="#0000FF">
</dl>
</dd>
- <dt><span class="chapter"><a href="#fixes">15. Notes on
- fixes for packages</a></span></dt>
+ <dt><span class="chapter"><a href="#fixes">15. Making
+ your package work</a></span></dt>
<dd>
<dl>
@@ -792,8 +792,8 @@ alink="#0000FF">
</dd>
<dt><span class="sect1"><a href=
- "#building-considerations">15.4. Building
- considerations</a></span></dt>
+ "#fixes-build">15.4. Building the
+ package</a></span></dt>
<dd>
<dl>
@@ -979,11 +979,11 @@ alink="#0000FF">
</dl>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="introduction" id=
"introduction"></a>Chapter&nbsp;1.&nbsp;What is
pkgsrc?</h2>
</div>
@@ -1008,11 +1008,12 @@ alink="#0000FF">
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "introduction-section" id=
"introduction-section"></a>1.1.&nbsp;Introduction</h2>
</div>
</div>
@@ -1145,12 +1146,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "overview"></a>1.2.&nbsp;Overview</h2>
+ "overview" id="overview"></a>1.2.&nbsp;Overview</h2>
</div>
</div>
</div>
@@ -1191,11 +1192,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "terminology" id=
"terminology"></a>1.3.&nbsp;Terminology</h2>
</div>
</div>
@@ -1290,11 +1292,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "typography" id=
"typography"></a>1.4.&nbsp;Typography</h2>
</div>
</div>
@@ -1310,11 +1313,11 @@ alink="#0000FF">
</div>
</div>
- <div class="part" lang="en">
+ <div class="part" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h1 class="title"><a name=
+ <h1 class="title"><a name="users-guide" id=
"users-guide"></a>Part&nbsp;I.&nbsp;The pkgsrc user's
guide</h1>
</div>
@@ -1594,11 +1597,11 @@ alink="#0000FF">
</dl>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="getting" id=
"getting"></a>Chapter&nbsp;2.&nbsp;Where to get
pkgsrc</h2>
</div>
@@ -1624,12 +1627,13 @@ alink="#0000FF">
file, via SUP, or via CVS. All three ways are described
here.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "as-tar-file"></a>2.1.&nbsp;As tar file</h2>
+ "as-tar-file" id="as-tar-file"></a>2.1.&nbsp;As tar
+ file</h2>
</div>
</div>
</div>
@@ -1642,12 +1646,12 @@ alink="#0000FF">
class="filename">/usr/pkgsrc</code>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "via-sup"></a>2.2.&nbsp;Via SUP</h2>
+ "via-sup" id="via-sup"></a>2.2.&nbsp;Via SUP</h2>
</div>
</div>
</div>
@@ -1669,12 +1673,12 @@ alink="#0000FF">
<em class="replaceable"><code>/path/to/your/supfile</code></em></strong></span>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "via-cvs"></a>2.3.&nbsp;Via CVS</h2>
+ "via-cvs" id="via-cvs"></a>2.3.&nbsp;Via CVS</h2>
</div>
</div>
</div>
@@ -1717,11 +1721,11 @@ alink="#0000FF">
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="platforms" id=
"platforms"></a>Chapter&nbsp;3.&nbsp;Using pkgsrc on
systems other than NetBSD</h2>
</div>
@@ -1767,11 +1771,12 @@ alink="#0000FF">
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "bootstrapping-pkgsrc" id=
"bootstrapping-pkgsrc"></a>3.1.&nbsp;Bootstrapping
pkgsrc</h2>
</div>
@@ -1838,7 +1843,7 @@ alink="#0000FF">
</pre>
<p>See <a href="#getting" title=
- "Chapter&nbsp;2.&nbsp;Where to get pkgsrc">Chapter&nbsp;2,
+ "Chapter&nbsp;2.&nbsp;Where to get pkgsrc">Chapter 2,
<i>Where to get pkgsrc</i></a> for other ways to get
pkgsrc before bootstrapping. The given
<span><strong class="command">bootstrap</strong></span>
@@ -1873,11 +1878,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "platform-specific-notes" id=
"platform-specific-notes"></a>3.2.&nbsp;Platform-specific
notes</h2>
</div>
@@ -1887,11 +1893,11 @@ alink="#0000FF">
<p>Here are some platform-specific notes you should be
aware of.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="darwin" id=
"darwin"></a>3.2.1.&nbsp;Darwin (Mac OS X)</h3>
</div>
</div>
@@ -1932,13 +1938,13 @@ alink="#0000FF">
be case-sensitive, and HFS+ is not.</p>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
- "platform.osx-image"></a>3.2.1.1.&nbsp;Using a
- disk image</h4>
+ <h4 class="title"><a name="platform.osx-image"
+ id="platform.osx-image"></a>3.2.1.1.&nbsp;Using
+ a disk image</h4>
</div>
</div>
</div>
@@ -1958,12 +1964,12 @@ alink="#0000FF">
<p>That's it!</p>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
- "platform.osx-ufs"></a>3.2.1.2.&nbsp;Using a
+ <h4 class="title"><a name="platform.osx-ufs"
+ id="platform.osx-ufs"></a>3.2.1.2.&nbsp;Using a
UFS partition</h4>
</div>
</div>
@@ -2025,11 +2031,11 @@ alink="#0000FF">
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="freebsd" id=
"freebsd"></a>3.2.2.&nbsp;FreeBSD</h3>
</div>
</div>
@@ -2087,11 +2093,11 @@ alink="#0000FF">
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="interix" id=
"interix"></a>3.2.3.&nbsp;Interix</h3>
</div>
</div>
@@ -2112,11 +2118,12 @@ alink="#0000FF">
officially supported. (The main difference in 3.0/3.1
is lack of pthreads.)</p>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a name=
+ "platform.interix-sfu-install" id=
"platform.interix-sfu-install"></a>3.2.3.1.&nbsp;When
installing Interix/SFU</h4>
</div>
@@ -2179,11 +2186,12 @@ alink="#0000FF">
"_top">http://www.duh.org/interix/hotfixes.php</a>.</p>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a name=
+ "platform.interix-sfu-postinstall" id=
"platform.interix-sfu-postinstall"></a>3.2.3.2.&nbsp;What
to do if Interix/SFU is already installed</h4>
</div>
@@ -2233,11 +2241,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a name=
+ "platform.interix-notes" id=
"platform.interix-notes"></a>3.2.3.3.&nbsp;Important
notes for using pkgsrc</h4>
</div>
@@ -2276,11 +2285,12 @@ alink="#0000FF">
</pre>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a name=
+ "platform.interix-limits" id=
"platform.interix-limits"></a>3.2.3.4.&nbsp;Limitations
of the Interix platform</h4>
</div>
@@ -2389,11 +2399,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a name=
+ "platform.interix-knownissues" id=
"platform.interix-knownissues"></a>3.2.3.5.&nbsp;Known
issues for pkgsrc on Interix</h4>
</div>
@@ -2421,11 +2432,11 @@ alink="#0000FF">
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="irix" id=
"irix"></a>3.2.4.&nbsp;IRIX</h3>
</div>
</div>
@@ -2509,11 +2520,11 @@ alink="#0000FF">
pass the '--preserve-path' flag.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="linux" id=
"linux"></a>3.2.5.&nbsp;Linux</h3>
</div>
</div>
@@ -2590,11 +2601,11 @@ alink="#0000FF">
libtool.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="openbsd" id=
"openbsd"></a>3.2.6.&nbsp;OpenBSD</h3>
</div>
</div>
@@ -2663,11 +2674,11 @@ alink="#0000FF">
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="solaris" id=
"solaris"></a>3.2.7.&nbsp;Solaris</h3>
</div>
</div>
@@ -2708,13 +2719,13 @@ alink="#0000FF">
<span class="emphasis"><em>not</em></span>
supported.</p>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
- "solaris-gcc-note"></a>3.2.7.1.&nbsp;If you are
- using gcc</h4>
+ <h4 class="title"><a name="solaris-gcc-note"
+ id="solaris-gcc-note"></a>3.2.7.1.&nbsp;If you
+ are using gcc</h4>
</div>
</div>
</div>
@@ -2739,11 +2750,12 @@ alink="#0000FF">
"_top">http://www.sun.com/bigadmin/common/freewareSearch.html</a>.</p>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a name=
+ "solaris-sun-workshop-note" id=
"solaris-sun-workshop-note"></a>3.2.7.2.&nbsp;If
you are using Sun WorkShop</h4>
</div>
@@ -2806,11 +2818,11 @@ alink="#0000FF">
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="using" id=
"using"></a>Chapter&nbsp;4.&nbsp;Using pkgsrc</h2>
</div>
</div>
@@ -2864,11 +2876,12 @@ alink="#0000FF">
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "getting-started" id=
"getting-started"></a>4.1.&nbsp;Working with binary
packages</h2>
</div>
@@ -2879,11 +2892,12 @@ alink="#0000FF">
install a precompiled binary package that someone else
already prepared for your type of machine.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "where-to-get-binary-packages" id=
"where-to-get-binary-packages"></a>4.1.1.&nbsp;Where
to get binary packages</h3>
</div>
@@ -2920,11 +2934,12 @@ alink="#0000FF">
documentation for the exact location.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "how-to-use-binary-packages" id=
"how-to-use-binary-packages"></a>4.1.2.&nbsp;How
to use binary packages</h3>
</div>
@@ -2994,11 +3009,11 @@ alink="#0000FF">
just installed program.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="a-word-of-warning" id=
"a-word-of-warning"></a>4.1.3.&nbsp;A word of
warning</h3>
</div>
@@ -3017,11 +3032,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "building-packages-from-source" id=
"building-packages-from-source"></a>4.2.&nbsp;Building
packages from source</h2>
</div>
@@ -3034,11 +3050,11 @@ alink="#0000FF">
&#8220;The pkgsrc developer's guide&#8221;</a> for
instructions how to create your own packages.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="requirements" id=
"requirements"></a>4.2.1.&nbsp;Requirements</h3>
</div>
</div>
@@ -3054,12 +3070,12 @@ alink="#0000FF">
required, too.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "fetching-distfiles"></a>4.2.2.&nbsp;Fetching
+ <h3 class="title"><a name="fetching-distfiles"
+ id="fetching-distfiles"></a>4.2.2.&nbsp;Fetching
distfiles</h3>
</div>
</div>
@@ -3097,11 +3113,12 @@ alink="#0000FF">
"filename">/usr/pkgsrc/distfiles</code>.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "how-to-build-and-install" id=
"how-to-build-and-install"></a>4.2.3.&nbsp;How to
build and install</h3>
</div>
@@ -3149,8 +3166,8 @@ alink="#0000FF">
<p>Taking the figlet utility as an example, we can
install it on our system by building as shown in
<a href="#logs" title=
- "Appendix&nbsp;B.&nbsp;Build logs">Appendix&nbsp;B,
- <i>Build logs</i></a>.</p>
+ "Appendix&nbsp;B.&nbsp;Build logs">Appendix B, <i>Build
+ logs</i></a>.</p>
<p>The program is installed under the default root of
the packages tree - <code xmlns=
@@ -3288,11 +3305,12 @@ alink="#0000FF">
"varname">LOCALBASE</code>.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "selecting-the-compiler" id=
"selecting-the-compiler"></a>4.2.4.&nbsp;Selecting
the compiler</h3>
</div>
@@ -3378,11 +3396,11 @@ alink="#0000FF">
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="configuring" id=
"configuring"></a>Chapter&nbsp;5.&nbsp;Configuring
pkgsrc</h2>
</div>
@@ -3411,11 +3429,12 @@ alink="#0000FF">
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "general-configuration" id=
"general-configuration"></a>5.1.&nbsp;General
configuration</h2>
</div>
@@ -3497,11 +3516,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "variables-affecting-build" id=
"variables-affecting-build"></a>5.2.&nbsp;Variables
affecting the build process</h2>
</div>
@@ -3573,11 +3593,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "developer-advanced-settings" id=
"developer-advanced-settings"></a>5.3.&nbsp;Developer/advanced
settings</h2>
</div>
@@ -3624,11 +3645,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "selecting-build-options" id=
"selecting-build-options"></a>5.4.&nbsp;Selecting
Build Options</h2>
</div>
@@ -3725,11 +3747,11 @@ alink="#0000FF">
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="binary" id=
"binary"></a>Chapter&nbsp;6.&nbsp;Creating binary
packages</h2>
</div>
@@ -3800,11 +3822,12 @@ alink="#0000FF">
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "building-a-single-binary-package" id=
"building-a-single-binary-package"></a>6.1.&nbsp;Building
a single binary package</h2>
</div>
@@ -3842,7 +3865,7 @@ alink="#0000FF">
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">/usr/pkgsrc/packages</code>, in the form of a
gzipped tar file. See <a href="#logs.package" title=
- "B.2.&nbsp;Packaging figlet">Section&nbsp;B.2,
+ "B.2.&nbsp;Packaging figlet">Section B.2,
&#8220;Packaging figlet&#8221;</a> for a continuation of
the above <a xmlns=
"http://www.w3.org/TR/xhtml1/transitional" href=
@@ -3851,16 +3874,17 @@ alink="#0000FF">
"filename">misc/figlet</code></a> example.</p>
<p>See <a href="#submit" title=
- "Chapter&nbsp;17.&nbsp;Submitting and Committing">Chapter&nbsp;17,
- <i>Submitting and Committing</i></a> for information on
- how to submit such a binary package.</p>
+ "Chapter&nbsp;17.&nbsp;Submitting and Committing">Chapter
+ 17, <i>Submitting and Committing</i></a> for information
+ on how to submit such a binary package.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "settings-for-creationg-of-binary-packages" id=
"settings-for-creationg-of-binary-packages"></a>6.2.&nbsp;Settings
for creation of binary packages</h2>
</div>
@@ -3872,13 +3896,13 @@ alink="#0000FF">
&#8220;Other helpful targets&#8221;</a>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "bulkbuild"></a>6.3.&nbsp;Doing a bulk build of all
- packages</h2>
+ "bulkbuild" id="bulkbuild"></a>6.3.&nbsp;Doing a
+ bulk build of all packages</h2>
</div>
</div>
</div>
@@ -3897,21 +3921,22 @@ alink="#0000FF">
sure to not actually compile on NFS storage, as this
slows things down a lot.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="binary.configuration"
+ id=
"binary.configuration"></a>6.3.1.&nbsp;Configuration</h3>
</div>
</div>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
+ <h4 class="title"><a name="binary.mk.conf" id=
"binary.mk.conf"></a>6.3.1.1.&nbsp;/etc/mk.conf</h4>
</div>
</div>
@@ -3940,11 +3965,11 @@ alink="#0000FF">
</pre>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
+ <h4 class="title"><a name="build.conf" id=
"build.conf"></a>6.3.1.2.&nbsp;<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional"
class="filename">build.conf</code></h4>
@@ -3971,11 +3996,11 @@ alink="#0000FF">
update</strong></span>.</p>
</div>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
+ <h4 class="title"><a name="pre-build.local" id=
"pre-build.local"></a>6.3.1.3.&nbsp;<code xmlns="http://www.w3.org/TR/xhtml1/transitional"
class="filename">pre-build.local</code></h4>
</div>
@@ -4011,11 +4036,12 @@ alink="#0000FF">
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "other-environmental-considerations" id=
"other-environmental-considerations"></a>6.3.2.&nbsp;Other
environmental considerations</h3>
</div>
@@ -4057,11 +4083,11 @@ alink="#0000FF">
warned! :)</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="operation" id=
"operation"></a>6.3.3.&nbsp;Operation</h3>
</div>
</div>
@@ -4106,11 +4132,11 @@ alink="#0000FF">
class="filename">build.conf</code> file.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="what-it-does" id=
"what-it-does"></a>6.3.4.&nbsp;What it does</h3>
</div>
</div>
@@ -4170,11 +4196,12 @@ alink="#0000FF">
these broken package builds later.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "disk-space-requirements" id=
"disk-space-requirements"></a>6.3.5.&nbsp;Disk
space requirements</h3>
</div>
@@ -4213,13 +4240,13 @@ alink="#0000FF">
recompiling.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "setting-up-a-sandbox"></a>6.3.6.&nbsp;Setting up
- a sandbox for chrooted builds</h3>
+ <h3 class="title"><a name="setting-up-a-sandbox"
+ id="setting-up-a-sandbox"></a>6.3.6.&nbsp;Setting
+ up a sandbox for chrooted builds</h3>
</div>
</div>
</div>
@@ -4430,11 +4457,12 @@ alink="#0000FF">
(wherever that points/mounts to/from).</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "building-a-partial-set" id=
"building-a-partial-set"></a>6.3.7.&nbsp;Building
a partial set of packages</h3>
</div>
@@ -4484,11 +4512,11 @@ alink="#0000FF">
needed.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="bulk-upload" id=
"bulk-upload"></a>6.3.8.&nbsp;Uploading results
of a bulk build</h3>
</div>
@@ -4634,11 +4662,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "creating-cdroms" id=
"creating-cdroms"></a>6.4.&nbsp;Creating a multiple
CD-ROM packages collection</h2>
</div>
@@ -4659,11 +4688,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
all the dependencies for a given package on the same CD
as that package.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="cdpack-example" id=
"cdpack-example"></a>6.4.1.&nbsp;Example of
cdpack</h3>
</div>
@@ -4729,11 +4758,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="faq" id=
"faq"></a>Chapter&nbsp;7.&nbsp;Frequently Asked
Questions</h2>
</div>
@@ -4812,11 +4841,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
for in the previous chapters, and it contains items for
both pkgsrc users and developers.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "mailing-list-pointers" id=
"mailing-list-pointers"></a>7.1.&nbsp;Are there any
mailing lists for pkg-related discussion?</h2>
</div>
@@ -4871,11 +4901,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"_top">http://mail-index.NetBSD.org/</a>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "pkgviews-docs" id=
"pkgviews-docs"></a>7.2.&nbsp;Where's the pkgviews
documentation?</h2>
</div>
@@ -4888,11 +4919,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"filename">pkgsrc/mk/buildlink3/PKGVIEWS_UG</code>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "faq-pkgtools" id=
"faq-pkgtools"></a>7.3.&nbsp;Utilities for package
management (pkgtools)</h2>
</div>
@@ -5147,11 +5179,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "non-root-pkgsrc" id=
"non-root-pkgsrc"></a>7.4.&nbsp;How to use pkgsrc
as non-root</h2>
</div>
@@ -5189,11 +5222,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
finer tuning of the tree layout.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "resume-transfers" id=
"resume-transfers"></a>7.5.&nbsp;How to resume
transfers when fetching distfiles?</h2>
</div>
@@ -5232,11 +5266,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "XFree86-from-pkgsrc" id=
"XFree86-from-pkgsrc"></a>7.6.&nbsp;How can I
install/use XFree86 from pkgsrc?</h2>
</div>
@@ -5257,11 +5292,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "x.org-from-pkgsrc" id=
"x.org-from-pkgsrc"></a>7.7.&nbsp;How can I
install/use X.org from pkgsrc?</h2>
</div>
@@ -5282,11 +5318,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "fetch-behind-firewall" id=
"fetch-behind-firewall"></a>7.8.&nbsp;How to fetch
files from behind a firewall</h2>
</div>
@@ -5307,13 +5344,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "passive-ftp"></a>7.9.&nbsp;How do I tell
- <span><strong class="command">make
+ "passive-ftp" id="passive-ftp"></a>7.9.&nbsp;How do
+ I tell <span><strong class="command">make
fetch</strong></span> to do passive FTP?</h2>
</div>
</div>
@@ -5358,11 +5395,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
active transfers.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "fetching-all-distfiles" id=
"fetching-all-distfiles"></a>7.10.&nbsp;How to
fetch all distfiles at once</h2>
</div>
@@ -5433,11 +5471,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "tmac.andoc-missing" id=
"tmac.andoc-missing"></a>7.11.&nbsp;What does
&#8220;<span class="quote">Don't know how to make
/usr/share/tmac/tmac.andoc</span>&#8221; mean?</h2>
@@ -5469,11 +5508,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
class="filename">/etc/mk.conf</code>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "bsd.own.mk-missing" id=
"bsd.own.mk-missing"></a>7.12.&nbsp;What does
&#8220;<span class="quote">Could not find
bsd.own.mk</span>&#8221; mean?</h2>
@@ -5502,11 +5542,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
-r</strong></span>).</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "using-sudo-with-pkgsrc" id=
"using-sudo-with-pkgsrc"></a>7.13.&nbsp;Using
'sudo' with pkgsrc</h2>
</div>
@@ -5537,13 +5578,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "faq.conf"></a>7.14.&nbsp;How do I change the
- location of configuration files?</h2>
+ "faq.conf" id="faq.conf"></a>7.14.&nbsp;How do I
+ change the location of configuration files?</h2>
</div>
</div>
</div>
@@ -5581,11 +5622,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
rebuild and reinstall any affected packages.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "audit-packages" id=
"audit-packages"></a>7.15.&nbsp;Automated security
checks</h2>
</div>
@@ -5651,11 +5693,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="part" lang="en">
+ <div class="part" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h1 class="title"><a name=
+ <h1 class="title"><a name="developers-guide" id=
"developers-guide"></a>Part&nbsp;II.&nbsp;The pkgsrc
developer's guide</h1>
</div>
@@ -5818,8 +5860,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
<dt><span class="sect2"><a href=
"#updating-buildlink-depends">11.2.2. Updating
<code class=
- "varname">BUILDLINK_DEPENDS.<em class="replaceable"><code>pkg</code></em></code>
- in <code xmlns=
+ "varname">BUILDLINK_DEPENDS.<em class="replaceable">
+ <code>pkg</code></em></code> in <code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">buildlink3.mk</code>
files</a></span></dt>
@@ -5960,8 +6002,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</dl>
</dd>
- <dt><span class="chapter"><a href="#fixes">15. Notes on
- fixes for packages</a></span></dt>
+ <dt><span class="chapter"><a href="#fixes">15. Making
+ your package work</a></span></dt>
<dd>
<dl>
@@ -6059,9 +6101,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</dl>
</dd>
- <dt><span class="sect1"><a href=
- "#building-considerations">15.4. Building
- considerations</a></span></dt>
+ <dt><span class="sect1"><a href="#fixes-build">15.4.
+ Building the package</a></span></dt>
<dd>
<dl>
@@ -6184,11 +6225,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</dl>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="components" id=
"components"></a>Chapter&nbsp;8.&nbsp;Package
components - files, directories and contents</h2>
</div>
@@ -6234,11 +6275,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
of files involved which are described in the following
sections.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "components.Makefile" id=
"components.Makefile"></a>8.1.&nbsp;<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">Makefile</code></h2>
@@ -6554,11 +6596,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "components.distinfo" id=
"components.distinfo"></a>8.2.&nbsp;<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">distinfo</code></h2>
@@ -6607,11 +6650,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
information is not lost.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "components.patches" id=
"components.patches"></a>8.3.&nbsp;patches/*</h2>
</div>
</div>
@@ -6715,11 +6759,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
after pkgsrc patches are applied</em></span>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "other-mandatory-files" id=
"other-mandatory-files"></a>8.4.&nbsp;Other
mandatory files</h2>
</div>
@@ -6759,11 +6804,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "components.optional" id=
"components.optional"></a>8.5.&nbsp;Optional
files</h2>
</div>
@@ -6847,12 +6893,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "work-dir"></a>8.6.&nbsp;<code xmlns=
+ "work-dir" id="work-dir"></a>8.6.&nbsp;<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">work*</code></h2>
</div>
@@ -6875,11 +6921,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
<code class="varname">OBJMACHINE</code> is set.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "files-dir" id=
"files-dir"></a>8.7.&nbsp;<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">files/*</code></h2>
@@ -6900,11 +6947,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="makefile" id=
"makefile"></a>Chapter&nbsp;9.&nbsp;Programming in
<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
@@ -6989,11 +7036,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"filename">Makefile</code>s, including the pitfalls that
come along with them.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "makefile.variables" id=
"makefile.variables"></a>9.1.&nbsp;<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">Makefile</code> variables</h2>
@@ -7097,11 +7145,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</ul>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "makefile.variables.names" id=
"makefile.variables.names"></a>9.1.1.&nbsp;Naming
conventions</h3>
</div>
@@ -7137,11 +7186,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "makefile.code" id=
"makefile.code"></a>9.2.&nbsp;Code snippets</h2>
</div>
</div>
@@ -7152,11 +7202,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
appropriate here, you should test your code and add it
here.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="adding-to-list" id=
"adding-to-list"></a>9.2.1.&nbsp;Adding things to
a list</h3>
</div>
@@ -7182,11 +7232,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
are correctly interpreted in both lists.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "converting-internal-to-external" id=
"converting-internal-to-external"></a>9.2.2.&nbsp;Converting
an internal list into an external list</h3>
</div>
@@ -7207,11 +7258,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"varname">""</code> is explained below.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "passing-variable-to-shell" id=
"passing-variable-to-shell"></a>9.2.3.&nbsp;Passing
variables to a shell command</h3>
</div>
@@ -7269,11 +7321,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
there is no example for it.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="quoting-guideline" id=
"quoting-guideline"></a>9.2.4.&nbsp;Quoting
guideline</h3>
</div>
@@ -7394,11 +7446,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "bsd-make-bug-workaround" id=
"bsd-make-bug-workaround"></a>9.2.5.&nbsp;Workaround
for a bug in BSD Make</h3>
</div>
@@ -7425,11 +7478,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="plist" id=
"plist"></a>Chapter&nbsp;10.&nbsp;PLIST issues</h2>
</div>
</div>
@@ -7490,12 +7543,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">PLIST</code> file (or files, see below!).</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "rcs-id"></a>10.1.&nbsp;RCS ID</h2>
+ "rcs-id" id="rcs-id"></a>10.1.&nbsp;RCS ID</h2>
</div>
</div>
</div>
@@ -7508,11 +7561,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "automatic-plist-generation" id=
"automatic-plist-generation"></a>10.2.&nbsp;Semi-automatic
<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
@@ -7530,11 +7584,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
information on this target.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "print-PLIST" id=
"print-PLIST"></a>10.3.&nbsp;Tweaking output of
<span><strong class="command">make
print-PLIST</strong></span></h2>
@@ -7578,11 +7633,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "plist.misc" id=
"plist.misc"></a>10.4.&nbsp;Variable substitution
in PLIST</h2>
</div>
@@ -7707,11 +7763,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
&#8220;<span class="quote">somevalue</span>&#8221;.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "manpage-compression" id=
"manpage-compression"></a>10.5.&nbsp;Man page
compression</h2>
</div>
@@ -7736,11 +7793,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
class="filename">PLIST</code> itself.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "using-PLIST_SRC" id=
"using-PLIST_SRC"></a>10.6.&nbsp;Changing PLIST
source with <code class=
"varname">PLIST_SRC</code></h2>
@@ -7760,11 +7818,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
things is important.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "platform-specific-plist" id=
"platform-specific-plist"></a>10.7.&nbsp;Platform-specific
and differing PLISTs</h2>
</div>
@@ -7811,11 +7870,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "faq.common-dirs" id=
"faq.common-dirs"></a>10.8.&nbsp;Sharing
directories between packages</h2>
</div>
@@ -7903,11 +7963,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="buildlink" id=
"buildlink"></a>Chapter&nbsp;11.&nbsp;Buildlink
methodology</h2>
</div>
@@ -8006,11 +8066,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
buildlink3 is designed to insulate the package build from
non-system-supplied software.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "converting-to-buildlink3" id=
"converting-to-buildlink3"></a>11.1.&nbsp;Converting
packages to use buildlink3</h2>
</div>
@@ -8179,11 +8240,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
complete description of how to use them properly.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "creating-buildlink3.mk" id=
"creating-buildlink3.mk"></a>11.2.&nbsp;Writing
<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
@@ -8227,12 +8289,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"prompt">%</code> createbuildlink &gt;buildlink3.mk</code></strong>
</pre>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "anatomy-of-bl3"></a>11.2.1.&nbsp;Anatomy of a
+ <h3 class="title"><a name="anatomy-of-bl3" id=
+ "anatomy-of-bl3"></a>11.2.1. Anatomy of a
buildlink3.mk file</h3>
</div>
</div>
@@ -8349,9 +8411,9 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"varname">BUILDLINK_INCDIRS.<em class=
"replaceable"><code>pkg</code></em></code> and
<code class=
- "varname">BUILDLINK_LIBDIRS.<em class="replaceable"><code>pkg</code></em></code>
- (not shown above) are lists of subdirectories of
- <code xmlns=
+ "varname">BUILDLINK_LIBDIRS.<em class="replaceable">
+ <code>pkg</code></em></code> (not shown above)
+ are lists of subdirectories of <code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">${BUILDLINK_PREFIX.<em class=
"replaceable"><code>pkg</code></em>}</code> to
@@ -8488,15 +8550,16 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
included.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
- "updating-buildlink-depends"></a>11.2.2.&nbsp;Updating
+ "updating-buildlink-depends" id=
+ "updating-buildlink-depends"></a>11.2.2. Updating
<code class=
- "varname">BUILDLINK_DEPENDS.<em class="replaceable"><code>pkg</code></em></code>
- in <code xmlns=
+ "varname">BUILDLINK_DEPENDS.<em class="replaceable">
+ <code>pkg</code></em></code> in <code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">buildlink3.mk</code> files</h3>
</div>
@@ -8547,21 +8610,21 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
want to cause unneeded package deletions and rebuilds.
In many cases, new versions of packages work just fine
with older dependencies. See <a href="#dependencies"
- title=
- "15.1.4.&nbsp;Handling dependencies">Section&nbsp;15.1.4,
- &#8220;Handling dependencies&#8221;</a> for more
- information about dependencies on other packages,
+ title="15.1.4.&nbsp;Handling dependencies">Section
+ 15.1.4, &#8220;Handling dependencies&#8221;</a> for
+ more information about dependencies on other packages,
including the <code class=
"varname">BUILDLINK_RECOMMENDED</code> and <code class=
"varname">RECOMMENDED</code> definitions.</p>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "writing-builtin.mk" id=
"writing-builtin.mk"></a>11.3.&nbsp;Writing
<code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
@@ -8616,11 +8679,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</ol>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="anatomy-of-builtin.mk"
+ id=
"anatomy-of-builtin.mk"></a>11.3.1.&nbsp;Anatomy
of a <code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
@@ -8747,11 +8811,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"replaceable"><code>pkg</code></em></code>).</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "native-or-pkgsrc-preference" id=
"native-or-pkgsrc-preference"></a>11.3.2.&nbsp;Global
preferences for native or pkgsrc software</h3>
</div>
@@ -8795,11 +8860,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="pkginstall" id=
"pkginstall"></a>Chapter&nbsp;12.&nbsp;The pkginstall
framework</h2>
</div>
@@ -8935,14 +9000,14 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
by means of the installation scripts, which are
automatically generated by pkginstall.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "files-and-dirs-outside-prefix"></a>12.1.&nbsp;Files
- and directories outside the installation
- prefix</h2>
+ "files-and-dirs-outside-prefix" id=
+ "files-and-dirs-outside-prefix"></a>12.1. Files and
+ directories outside the installation prefix</h2>
</div>
</div>
</div>
@@ -8975,12 +9040,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"filename">Makefile</code>. The rest of this section
describes these variables.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "dirs-outside-prefix"></a>12.1.1.&nbsp;Directory
+ <h3 class="title"><a name="dirs-outside-prefix"
+ id="dirs-outside-prefix"></a>12.1.1. Directory
manipulation</h3>
</div>
</div>
@@ -9025,12 +9090,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "files-outside-prefix"></a>12.1.2.&nbsp;File
+ <h3 class="title"><a name="files-outside-prefix"
+ id="files-outside-prefix"></a>12.1.2. File
manipulation</h3>
</div>
</div>
@@ -9092,13 +9157,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "conf-files"></a>12.2.&nbsp;Configuration
- files</h2>
+ "conf-files" id="conf-files"></a>12.2.
+ Configuration files</h2>
</div>
</div>
</div>
@@ -9117,12 +9182,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
This ensures that administrators never lose any custom
changes they may have made.</p>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "conf-files-sysconfdir"></a>12.2.1.&nbsp;How
+ <h3 class="title"><a name="conf-files-sysconfdir"
+ id="conf-files-sysconfdir"></a>12.2.1. How
<code class="varname">PKG_SYSCONFDIR</code> is
set</h3>
</div>
@@ -9242,18 +9307,18 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">OWN_DIRS</code>. See <a href=
"#dirs-outside-prefix" title=
- "12.1.1.&nbsp;Directory manipulation">Section&nbsp;12.1.1,
+ "12.1.1.&nbsp;Directory manipulation">Section 12.1.1,
&#8220;Directory manipulation&#8221;</a> what this
means.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "conf-files-configure"></a>12.2.2.&nbsp;Telling
- the software where configuration files are</h3>
+ <h3 class="title"><a name="conf-files-configure"
+ id="conf-files-configure"></a>12.2.2. Telling the
+ software where configuration files are</h3>
</div>
</div>
</div>
@@ -9276,12 +9341,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
unfortunately).</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "conf-files-patching"></a>12.2.3.&nbsp;Patching
+ <h3 class="title"><a name="conf-files-patching"
+ id="conf-files-patching"></a>12.2.3. Patching
installations</h3>
</div>
</div>
@@ -9318,7 +9383,7 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
the variables <code class="varname">CONF_FILES</code>
and <code class="varname">CONF_FILES_PERMS</code> are
used. Check out <a href="#files-outside-prefix" title=
- "12.1.2.&nbsp;File manipulation">Section&nbsp;12.1.2,
+ "12.1.2.&nbsp;File manipulation">Section 12.1.2,
&#8220;File manipulation&#8221;</a> for information
about their syntax and their purpose. Here is an
example, taken from the <a xmlns=
@@ -9336,12 +9401,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
outside it.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "conf-files-disable"></a>12.2.4.&nbsp;Disabling
+ <h3 class="title"><a name="conf-files-disable"
+ id="conf-files-disable"></a>12.2.4. Disabling
handling of configuration files</h3>
</div>
</div>
@@ -9354,13 +9419,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "rcd-scripts"></a>12.3.&nbsp;System startup
- scripts</h2>
+ "rcd-scripts" id="rcd-scripts"></a>12.3. System
+ startup scripts</h2>
</div>
</div>
</div>
@@ -9371,8 +9436,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
same rules described in <a href=
"#files-and-dirs-outside-prefix" title=
"12.1.&nbsp;Files and directories outside the installation prefix">
- Section&nbsp;12.1, &#8220;Files and directories outside
- the installation prefix&#8221;</a> apply, and the same
+ Section 12.1, &#8220;Files and directories outside the
+ installation prefix&#8221;</a> apply, and the same
solutions can be used. However, pkginstall provides a
special mechanism to handle these files.</p>
@@ -9441,12 +9506,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</ol>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "rcd-scripts-disable"></a>12.3.1.&nbsp;Disabling
+ <h3 class="title"><a name="rcd-scripts-disable"
+ id="rcd-scripts-disable"></a>12.3.1. Disabling
handling of system startup scripts</h3>
</div>
</div>
@@ -9463,13 +9528,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "users-and-groups"></a>12.4.&nbsp;System users and
- groups</h2>
+ "users-and-groups" id="users-and-groups"></a>12.4.
+ System users and groups</h2>
</div>
</div>
</div>
@@ -9513,12 +9578,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
numeric identifier is optional.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "shells"></a>12.5.&nbsp;System shells</h2>
+ "shells" id="shells"></a>12.5. System shells</h2>
</div>
</div>
</div>
@@ -9546,13 +9611,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
PKG_SHELL= ${PREFIX}/bin/zsh
</pre>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "shells-disable"></a>12.5.1.&nbsp;Disabling
- handling of configuration files</h3>
+ <h3 class="title"><a name="shells-disable" id=
+ "shells-disable"></a>12.5.1. Disabling handling
+ of configuration files</h3>
</div>
</div>
</div>
@@ -9566,11 +9631,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="options" id=
"options"></a>Chapter&nbsp;13.&nbsp;Options
handling</h2>
</div>
@@ -9606,11 +9671,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
sets of options will be built into a package or to allow a
set of global default options apply.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "global-default-options" id=
"global-default-options"></a>13.1.&nbsp;Global
default options</h2>
</div>
@@ -9625,11 +9691,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
class="filename">/etc/mk.conf</code>.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "converting-to-options" id=
"converting-to-options"></a>13.2.&nbsp;Converting
packages to use <code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
@@ -9769,8 +9836,9 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
<p><code class=
"varname">PKG_OPTIONS_LEGACY_VARS</code> is a list
of &#8220;<span class="quote"><em class=
- "replaceable"><code>USE_VARIABLE</code></em>:<em class="replaceable"><code>option</code></em></span>&#8221;
- pairs that map legacy <code xmlns=
+ "replaceable"><code>USE_VARIABLE</code></em>:<em class="replaceable">
+ <code>option</code></em></span>&#8221; pairs that
+ map legacy <code xmlns=
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">/etc/mk.conf</code> variables to their
option counterparts. Pairs should be added with
@@ -9784,9 +9852,10 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
<p><code class=
"varname">PKG_OPTIONS_LEGACY_OPTS</code> is a list
of &#8220;<span class="quote"><em class=
- "replaceable"><code>old-option</code></em>:<em class="replaceable"><code>new-option</code></em></span>&#8221;
- pairs that map options that have been renamed to
- their new counterparts. Pairs should be added with
+ "replaceable"><code>old-option</code></em>:<em class="replaceable">
+ <code>new-option</code></em></span>&#8221; pairs
+ that map options that have been renamed to their
+ new counterparts. Pairs should be added with
&#8220;<span class="quote">+=</span>&#8221; to keep
the listing of global legacy options. A warning
will be issued if the user uses a legacy
@@ -9851,11 +9920,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "option-names" id=
"option-names"></a>13.3.&nbsp;Option Names</h2>
</div>
</div>
@@ -9892,11 +9962,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="build" id=
"build"></a>Chapter&nbsp;14.&nbsp;The build
process</h2>
</div>
@@ -9932,11 +10002,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">pkgsrc/mk/bsd.pkg.mk</code>.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "build.prefix" id=
"build.prefix"></a>14.1.&nbsp;Program location</h2>
</div>
</div>
@@ -10117,11 +10188,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "main-targets" id=
"main-targets"></a>14.2.&nbsp;Main targets</h2>
</div>
</div>
@@ -10393,11 +10465,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "build.helpful-targets" id=
"build.helpful-targets"></a>14.3.&nbsp;Other
helpful targets</h2>
</div>
@@ -10933,13 +11006,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
- "fixes"></a>Chapter&nbsp;15.&nbsp;Notes on fixes for
- packages</h2>
+ <h2 class="title"><a name="fixes" id=
+ "fixes"></a>Chapter&nbsp;15.&nbsp;Making your package
+ work</h2>
</div>
</div>
</div>
@@ -11041,9 +11114,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</dl>
</dd>
- <dt><span class="sect1"><a href=
- "#building-considerations">15.4. Building
- considerations</a></span></dt>
+ <dt><span class="sect1"><a href="#fixes-build">15.4.
+ Building the package</a></span></dt>
<dd>
<dl>
@@ -11129,22 +11201,24 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "general-operation" id=
"general-operation"></a>15.1.&nbsp;General
operation</h2>
</div>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "pulling-vars-from-etc-mk.conf" id=
"pulling-vars-from-etc-mk.conf"></a>15.1.1.&nbsp;How
to pull in variables from /etc/mk.conf</h3>
</div>
@@ -11208,11 +11282,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
interested in optimization for the current CPU.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "where-to-install-documentation" id=
"where-to-install-documentation"></a>15.1.2.&nbsp;Where
to install documentation</h3>
</div>
@@ -11228,11 +11303,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
package).</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="restricted-packages"
+ id=
"restricted-packages"></a>15.1.3.&nbsp;Restricted
packages</h3>
</div>
@@ -11307,11 +11383,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
binary packages!</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="dependencies" id=
"dependencies"></a>15.1.4.&nbsp;Handling
dependencies</h3>
</div>
@@ -11485,8 +11561,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
<code class="varname">RECOMMENDED</code>, see
<a href="#security-handling" title=
"15.1.8.&nbsp;Handling packages with security problems">
- Section&nbsp;15.1.8, &#8220;Handling packages
- with security problems&#8221;</a> for more
+ Section 15.1.8, &#8220;Handling packages with
+ security problems&#8221;</a> for more
information.</p>
</li>
@@ -11562,11 +11638,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"filename">devel/gettext-m4</code></a> package.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="conflicts" id=
"conflicts"></a>15.1.5.&nbsp;Handling conflicts
with other packages</h3>
</div>
@@ -11614,11 +11690,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"quote">Xaw3d-1.3</span>&#8221;.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="not-building-packages"
+ id=
"not-building-packages"></a>15.1.6.&nbsp;Packages
that cannot or should not be built</h3>
</div>
@@ -11647,11 +11724,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
message.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="undeletable-packages"
+ id=
"undeletable-packages"></a>15.1.7.&nbsp;Packages
which should not be deleted, once installed</h3>
</div>
@@ -11672,11 +11750,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
is used.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="security-handling" id=
"security-handling"></a>15.1.8.&nbsp;Handling
packages with security problems</h3>
</div>
@@ -11711,11 +11789,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
handled semi-automatically by a weekly cron job.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="compiler-bugs" id=
"compiler-bugs"></a>15.1.9.&nbsp;How to handle
compiler bugs</h3>
</div>
@@ -11738,12 +11816,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
number of examples!</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
- "bumping-pkgrevision"></a>15.1.10.&nbsp;How to
+ <h3 class="title"><a name="bumping-pkgrevision"
+ id="bumping-pkgrevision"></a>15.1.10.&nbsp;How to
handle incrementing versions when fixing an
existing package</h3>
</div>
@@ -11779,11 +11857,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "portability-of-packages" id=
"portability-of-packages"></a>15.1.11.&nbsp;Portability
of packages</h3>
</div>
@@ -11796,11 +11875,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
portable. There are some particular details you should
pay attention to while working on pkgsrc.</p>
- <div class="sect3" lang="en">
+ <div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h4 class="title"><a name=
+ <h4 class="title"><a name="install-scripts" id=
"install-scripts"></a>15.1.11.1.&nbsp;${INSTALL},
${INSTALL_DATA_DIR}, ...</h4>
</div>
@@ -11821,22 +11900,23 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "downloading-issues" id=
"downloading-issues"></a>15.2.&nbsp;Possible
downloading issues</h2>
</div>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="no-plain-download" id=
"no-plain-download"></a>15.2.1.&nbsp;Packages
whose distfiles aren't available for plain
downloading</h3>
@@ -11906,11 +11986,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
with them.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "modified-distfiles-same-name" id=
"modified-distfiles-same-name"></a>15.2.2.&nbsp;How
to handle modified distfiles with the 'old'
name</h3>
@@ -11948,22 +12029,23 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "configuration-gotchas" id=
"configuration-gotchas"></a>15.3.&nbsp;Configuration
gotchas</h2>
</div>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="fixes.libtool" id=
"fixes.libtool"></a>15.3.1.&nbsp;Shared libraries
- libtool</h3>
</div>
@@ -12188,11 +12270,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="using-libtool" id=
"using-libtool"></a>15.3.2.&nbsp;Using libtool on
GNU packages that already support libtool</h3>
</div>
@@ -12271,11 +12353,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="autoconf-automake" id=
"autoconf-automake"></a>15.3.3.&nbsp;GNU
Autoconf/Automake</h3>
</div>
@@ -12328,61 +12410,127 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "building-considerations"></a>15.4.&nbsp;Building
- considerations</h2>
+ "fixes-build" id=
+ "fixes-build"></a>15.4.&nbsp;Building the
+ package</h2>
</div>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="cpp-defines" id=
"cpp-defines"></a>15.4.1.&nbsp;CPP defines</h3>
</div>
</div>
</div>
- <p>To port an application to NetBSD, it's usually
- necessary for the compiler to be able to judge the
- system on which it's compiling, and we use definitions
- so that the C pre-processor can do this.</p>
+ <p>Sometimes you need to compile different code
+ depending on the target platform. The C preprocessor
+ has a set of predefined macros that can be queried by
+ using <code class="varname">#ifdef FOO</code> or
+ <code class="varname">#if defined(FOO)</code>. Among
+ these macros are usually ones that describe the target
+ CPU and operating system. Depending of which of the
+ macros are defined, you can write code that uses
+ features unique to a specific platform. The best way to
+ handle these differences is to use the GNU autotools
+ (automake, autoconf, etc.) to check for specific
+ features (like the existence of a header file, a
+ function or a library).</p>
+
+ <p>If that is not possible you can use the predefined
+ macros below to configure your code to the platform it
+ runs on. Almost every operating system, hardware
+ architecture and compiler has its own macro. For
+ example, if the macros <code class=
+ "varname">__GNUC__</code>, <code class=
+ "varname">__i386__</code> and <code class=
+ "varname">__NetBSD__</code> are all defined, you know
+ that you are using NetBSD on an Intel CPU, and your
+ compiler is GCC.</p>
+
+ <div class="sect3" lang="en" xml:lang="en">
+ <div class="titlepage">
+ <div>
+ <div>
+ <h4 class="title"><a name=
+ "fixes-build-cpp-opsys" id=
+ "fixes-build-cpp-opsys"></a>15.4.1.1.&nbsp;CPP
+ defines for operating systems</h4>
+ </div>
+ </div>
+ </div>
- <p>To test whether you are working on a 4.4 BSD-derived
- system, you should use the BSD definition, which is
- defined in <code xmlns=
- "http://www.w3.org/TR/xhtml1/transitional" class=
- "filename">&lt;sys/param.h&gt;</code> on said
- systems.</p>
- <pre class="programlisting">
+ <p>To distinguish between 4.4 BSD-derived systems and
+ the rest of the world, you should use the following
+ code.</p>
+ <pre class="programlisting">
#include &lt;sys/param.h&gt;
-</pre>
-
- <p>and then you can surround the BSD-specific parts of
- your package's C/C++ code using this conditional:</p>
- <pre class="programlisting">
#if (defined(BSD) &amp;&amp; BSD &gt;= 199306)
- ...
+ /* your BSD-specific code goes here */
+ #else
+ /* non-BSD-specific code */
#endif
</pre>
- <p>Please use the &#8220;<span class=
- "quote">__NetBSD__</span>&#8221; definition sparingly -
- it should only apply to features of NetBSD that are not
- present in other 4.4-lite-derived BSDs.</p>
+ <p>If this distinction is not fine enough, you can
+ also use the following defines.</p>
+ <pre class="programlisting">
+ FreeBSD __FreeBSD__
+ Linux linux, __linux, __linux__
+ NetBSD __NetBSD__
+ OpenBSD __OpenBSD__
+ Solaris sun, __sun (GCC and SunPro), __sun__ (only GCC)
+</pre>
+ </div>
+
+ <div class="sect3" lang="en" xml:lang="en">
+ <div class="titlepage">
+ <div>
+ <div>
+ <h4 class="title"><a name="fixes-build-cpp-cpu"
+ id="fixes-build-cpp-cpu"></a>15.4.1.2.&nbsp;CPP
+ defines for CPUs</h4>
+ </div>
+ </div>
+ </div>
+ <pre class="programlisting">
+ i386 i386, __i386, __i386__
+ MIPS __mips
+ SPARC sparc, __sparc
+</pre>
+ </div>
+
+ <div class="sect3" lang="en" xml:lang="en">
+ <div class="titlepage">
+ <div>
+ <div>
+ <h4 class="title"><a name=
+ "fixes-build-cpp-compiler" id=
+ "fixes-build-cpp-compiler"></a>15.4.1.3.&nbsp;CPP
+ defines for compilers</h4>
+ </div>
+ </div>
+ </div>
+ <pre class="programlisting">
+ GCC __GNUC__ (major version), __GNUC_MINOR__
+</pre>
+ </div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="cpp-list" id=
"cpp-list"></a>15.4.2.&nbsp;Getting a list of CPP
defines</h3>
</div>
@@ -12399,22 +12547,23 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "package-specific-actions" id=
"package-specific-actions"></a>15.5.&nbsp;Package
specific actions</h2>
</div>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="user-interaction" id=
"user-interaction"></a>15.5.1.&nbsp;User
interaction</h3>
</div>
@@ -12461,11 +12610,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="handling-licenses" id=
"handling-licenses"></a>15.5.2.&nbsp;Handling
licenses</h3>
</div>
@@ -12560,11 +12709,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
pkgsrc that a fee has been paid.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "installing-score-files" id=
"installing-score-files"></a>15.5.3.&nbsp;Installing
score files</h3>
</div>
@@ -12599,11 +12749,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
these correctly.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="perl-scripts" id=
"perl-scripts"></a>15.5.4.&nbsp;Packages
containing perl scripts</h3>
</div>
@@ -12618,11 +12768,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"varname">WRKSRC</code>, that you want adjusted.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="hardcoded-paths" id=
"hardcoded-paths"></a>15.5.5.&nbsp;Packages with
hardcoded paths to other interpreters</h3>
</div>
@@ -12647,11 +12797,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="perl-modules" id=
"perl-modules"></a>15.5.6.&nbsp;Packages
installing perl modules</h3>
</div>
@@ -12696,11 +12846,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"filename">PLIST</code>.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="faq.info-files" id=
"faq.info-files"></a>15.5.7.&nbsp;Packages
installing info files</h3>
</div>
@@ -12800,11 +12950,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
error.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="gconf2-data-files" id=
"gconf2-data-files"></a>15.5.8.&nbsp;Packages
installing GConf2 data files</h3>
</div>
@@ -12889,11 +13039,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "scrollkeeper-data-files" id=
"scrollkeeper-data-files"></a>15.5.9.&nbsp;Packages
installing scrollkeeper data files</h3>
</div>
@@ -12939,11 +13090,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="x11-fonts" id=
"x11-fonts"></a>15.5.10.&nbsp;Packages installing
X11 fonts</h3>
</div>
@@ -12980,11 +13131,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
them.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="gtk2-modules" id=
"gtk2-modules"></a>15.5.11.&nbsp;Packages
installing GTK2 modules</h3>
</div>
@@ -13054,11 +13205,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="sgml-xml-data" id=
"sgml-xml-data"></a>15.5.12.&nbsp;Packages
installing SGML or XML data</h3>
</div>
@@ -13118,11 +13269,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="mime-database" id=
"mime-database"></a>15.5.13.&nbsp;Packages
installing extensions to the MIME database</h3>
</div>
@@ -13185,11 +13336,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="intltool" id=
"intltool"></a>15.5.14.&nbsp;Packages using
intltool</h3>
</div>
@@ -13210,11 +13361,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
appeared since it was released.</p>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="startup-scripts" id=
"startup-scripts"></a>15.5.15.&nbsp;Packages
installing startup scripts</h3>
</div>
@@ -13235,11 +13386,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "feedback-to-author" id=
"feedback-to-author"></a>15.6.&nbsp;Feedback to the
author</h2>
</div>
@@ -13259,11 +13411,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="debug" id=
"debug"></a>Chapter&nbsp;16.&nbsp;Debugging</h2>
</div>
</div>
@@ -13475,11 +13627,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="chapter" lang="en">
+ <div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="submit" id=
"submit"></a>Chapter&nbsp;17.&nbsp;Submitting and
Committing</h2>
</div>
@@ -13511,11 +13663,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "submitting-your-package" id=
"submitting-your-package"></a>17.1.&nbsp;Submitting
your packages</h2>
</div>
@@ -13580,11 +13733,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "general-notes-for-changes" id=
"general-notes-for-changes"></a>17.2.&nbsp;General
notes when adding, updating, or removing
packages</h2>
@@ -13633,11 +13787,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
"filename">pkgsrc/doc/CHANGES</code>!</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "committing-importing" id=
"committing-importing"></a>17.3.&nbsp;Committing:
Importing a package into CVS</h2>
</div>
@@ -13682,11 +13837,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
consistent tag.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "updating-package" id=
"updating-package"></a>17.4.&nbsp;Updating a
package to a newer version</h2>
</div>
@@ -13733,11 +13889,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
preferred above new and possibly untested features.</p>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "moving-package" id=
"moving-package"></a>17.5.&nbsp;Moving a package in
pkgsrc</h2>
</div>
@@ -13826,11 +13983,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</div>
</div>
- <div class="appendix" lang="en">
+ <div class="appendix" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="examples" id=
"examples"></a>Appendix&nbsp;A.&nbsp;A simple example
package: bison</h2>
</div>
@@ -13875,21 +14032,22 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
present in the tree is beyond us, but it's useful for the
purposes of this exercise.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "example-files" id=
"example-files"></a>A.1.&nbsp;files</h2>
</div>
</div>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="example-Makefile" id=
"example-Makefile"></a>A.1.1.&nbsp;Makefile</h3>
</div>
</div>
@@ -13913,11 +14071,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="example-descr" id=
"example-descr"></a>A.1.2.&nbsp;DESCR</h3>
</div>
</div>
@@ -13930,11 +14088,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h3 class="title"><a name=
+ <h3 class="title"><a name="example-plist" id=
"example-plist"></a>A.1.3.&nbsp;PLIST</h3>
</div>
</div>
@@ -13948,11 +14106,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong>
</pre>
</div>
- <div class="sect2" lang="en">
+ <div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name=
+ "checking-package-with-pkglint" id=
"checking-package-with-pkglint"></a>A.1.4.&nbsp;Checking
a package with <span><strong class=
"command">pkglint</strong></span></h3>
@@ -13983,11 +14142,12 @@ looks fine.
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "steps-for-b-i-p" id=
"steps-for-b-i-p"></a>A.2.&nbsp;Steps for building,
installing, packaging</h2>
</div>
@@ -14015,8 +14175,8 @@ looks fine.
"http://www.w3.org/TR/xhtml1/transitional" class=
"filename">PLIST</code> (see <a href="#components" title=
"Chapter&nbsp;8.&nbsp;Package components - files, directories and contents">
- Chapter&nbsp;8, <i>Package components - files, directories
- and contents</i></a>) then continue with fetching the
+ Chapter 8, <i>Package components - files, directories and
+ contents</i></a>) then continue with fetching the
distfile:</p>
<pre class="screen">
<code class="prompt">#</code> <strong class=
@@ -14141,11 +14301,11 @@ Creating gzip'd tar ball in '/u/pkgsrc/lang/bison/bison-1.25.tgz'
</div>
</div>
- <div class="appendix" lang="en">
+ <div class="appendix" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="logs" id=
"logs"></a>Appendix&nbsp;B.&nbsp;Build logs</h2>
</div>
</div>
@@ -14163,11 +14323,12 @@ Creating gzip'd tar ball in '/u/pkgsrc/lang/bison/bison-1.25.tgz'
</dl>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "logs.building" id=
"logs.building"></a>B.1.&nbsp;Building figlet</h2>
</div>
</div>
@@ -14266,11 +14427,12 @@ cp figlet.6 /usr/pkg/man/man6
</pre>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "logs.package" id=
"logs.package"></a>B.2.&nbsp;Packaging figlet</h2>
</div>
</div>
@@ -14289,11 +14451,11 @@ Registering depends:.
</div>
</div>
- <div class="appendix" lang="en">
+ <div class="appendix" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="ftp-layout" id=
"ftp-layout"></a>Appendix&nbsp;C.&nbsp;Layout of the
FTP server's package archive</h2>
</div>
@@ -14368,8 +14530,8 @@ Registering depends:.
<ol type="1">
<li>
<p>Run bulk build, see <a href="#bulkbuild" title=
- "6.3.&nbsp;Doing a bulk build of all packages">Section&nbsp;6.3,
- &#8220;Doing a bulk build of all
+ "6.3.&nbsp;Doing a bulk build of all packages">Section
+ 6.3, &#8220;Doing a bulk build of all
packages&#8221;</a></p>
</li>
@@ -14392,11 +14554,11 @@ Registering depends:.
</div>
</div>
- <div class="appendix" lang="en">
+ <div class="appendix" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
- <h2 class="title"><a name=
+ <h2 class="title"><a name="editing" id=
"editing"></a>Appendix&nbsp;D.&nbsp;Editing guidelines
for the pkgsrc guide</h2>
</div>
@@ -14418,12 +14580,12 @@ Registering depends:.
<p>This section contains information on editing the pkgsrc
guide itself.</p>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
- "targets"></a>D.1.&nbsp;Targets</h2>
+ "targets" id="targets"></a>D.1.&nbsp;Targets</h2>
</div>
</div>
</div>
@@ -14475,11 +14637,12 @@ Registering depends:.
</div>
</div>
- <div class="sect1" lang="en">
+ <div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name=
+ "procedure" id=
"procedure"></a>D.2.&nbsp;Procedure</h2>
</div>
</div>
diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt
index 890475895aa..6da7d985a3e 100644
--- a/doc/pkgsrc.txt
+++ b/doc/pkgsrc.txt
@@ -199,7 +199,7 @@ II. The pkgsrc developer's guide
14.2. Main targets
14.3. Other helpful targets
- 15. Notes on fixes for packages
+ 15. Making your package work
15.1. General operation
@@ -228,7 +228,7 @@ II. The pkgsrc developer's guide
15.3.2. Using libtool on GNU packages that already support libtool
15.3.3. GNU Autoconf/Automake
- 15.4. Building considerations
+ 15.4. Building the package
15.4.1. CPP defines
15.4.2. Getting a list of CPP defines
@@ -2150,7 +2150,7 @@ Table of Contents
11.2. Writing buildlink3.mk files
11.2.1. Anatomy of a buildlink3.mk file
- 11.2.2. Updating BUILDLINK_DEPENDS.pkg in buildlink3.mk files
+ 11.2.2. Updating BUILDLINK_DEPENDS. pkg in buildlink3.mk files
11.3. Writing builtin.mk files
@@ -2192,7 +2192,7 @@ Table of Contents
14.2. Main targets
14.3. Other helpful targets
-15. Notes on fixes for packages
+15. Making your package work
15.1. General operation
@@ -2220,7 +2220,7 @@ Table of Contents
15.3.2. Using libtool on GNU packages that already support libtool
15.3.3. GNU Autoconf/Automake
- 15.4. Building considerations
+ 15.4. Building the package
15.4.1. CPP defines
15.4.2. Getting a list of CPP defines
@@ -3139,8 +3139,8 @@ dependency on pkg is added. Several important variables are set in the section:
is selected by setting BUILDLINK_DEPMETHOD.pkg to "build". By default, the
full dependency is used.
- * BUILDLINK_INCDIRS.pkg and BUILDLINK_LIBDIRS.pkg (not shown above) are lists
- of subdirectories of ${BUILDLINK_PREFIX.pkg} to add to the header and
+ * BUILDLINK_INCDIRS.pkg and BUILDLINK_LIBDIRS. pkg (not shown above) are
+ lists of subdirectories of ${BUILDLINK_PREFIX.pkg} to add to the header and
library search paths. These default to "include" and "lib" respectively.
* BUILDLINK_CPPFLAGS.pkg (not shown above) is the list of preprocessor flags
@@ -3179,7 +3179,7 @@ dependencies. Including these buildlink3.mk files means that the headers and
libraries for these dependencies are also symlinked into ${BUILDLINK_DIR}
whenever the pkg buildlink3.mk file is included.
-11.2.2. Updating BUILDLINK_DEPENDS.pkg in buildlink3.mk files
+11.2.2. Updating BUILDLINK_DEPENDS. pkg in buildlink3.mk files
There are two situations that require increasing the dependency listed in
BUILDLINK_DEPENDS.pkg after a package update:
@@ -3198,9 +3198,9 @@ settle for an older one which will not contain the necessary shared libraries.
Please take careful consideration before adjusting BUILDLINK_DEPENDS.pkg as we
don't want to cause unneeded package deletions and rebuilds. In many cases, new
-versions of packages work just fine with older dependencies. See
-Section 15.1.4, "Handling dependencies" for more information about dependencies
-on other packages, including the BUILDLINK_RECOMMENDED and RECOMMENDED
+versions of packages work just fine with older dependencies. See Section
+15.1.4, "Handling dependencies" for more information about dependencies on
+other packages, including the BUILDLINK_RECOMMENDED and RECOMMENDED
definitions.
11.3. Writing builtin.mk files
@@ -3514,9 +3514,9 @@ original copies available.
Once the required configuration files are in place (i.e., under the examples
hierarchy), the pkginstall framework can use them as master copies during the
package installation to update what is in ${PKG_SYSCONFDIR}. To achieve this,
-the variables CONF_FILES and CONF_FILES_PERMS are used. Check out
-Section 12.1.2, "File manipulation" for information about their syntax and
-their purpose. Here is an example, taken from the mail/mutt package:
+the variables CONF_FILES and CONF_FILES_PERMS are used. Check out Section
+12.1.2, "File manipulation" for information about their syntax and their
+purpose. Here is an example, taken from the mail/mutt package:
EGDIR= ${PREFIX}/share/doc/mutt/samples
CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc
@@ -3713,14 +3713,14 @@ supported by the package, and any default options settings if needed.
6. PKG_SUGGESTED_OPTIONS is a list of build options which are enabled by
default.
- 7. PKG_OPTIONS_LEGACY_VARS is a list of "USE_VARIABLE:option" pairs that map
+ 7. PKG_OPTIONS_LEGACY_VARS is a list of "USE_VARIABLE: option" pairs that map
legacy /etc/mk.conf variables to their option counterparts. Pairs should be
added with "+=" to keep the listing of global legacy variables. A warning
will be issued if the user uses a legacy variable.
- 8. PKG_OPTIONS_LEGACY_OPTS is a list of "old-option:new-option" pairs that map
- options that have been renamed to their new counterparts. Pairs should be
- added with "+=" to keep the listing of global legacy options. A warning
+ 8. PKG_OPTIONS_LEGACY_OPTS is a list of "old-option: new-option" pairs that
+ map options that have been renamed to their new counterparts. Pairs should
+ be added with "+=" to keep the listing of global legacy options. A warning
will be issued if the user uses a legacy option.
9. PKG_LEGACY_OPTIONS is a list of options implied by deprecated variables
@@ -4218,7 +4218,7 @@ bulk-install
Beware that this target may deinstall all packages installed on a system!
-Chapter 15. Notes on fixes for packages
+Chapter 15. Making your package work
Table of Contents
@@ -4248,7 +4248,7 @@ Table of Contents
15.3.2. Using libtool on GNU packages that already support libtool
15.3.3. GNU Autoconf/Automake
-15.4. Building considerations
+15.4. Building the package
15.4.1. CPP defines
15.4.2. Getting a list of CPP defines
@@ -4783,28 +4783,54 @@ automake sequence. This is prevented by touching various files in the configure
stage. If this causes problems with your package you can set AUTOMAKE_OVERRIDE=
NO in the package Makefile.
-15.4. Building considerations
+15.4. Building the package
15.4.1. CPP defines
-To port an application to NetBSD, it's usually necessary for the compiler to be
-able to judge the system on which it's compiling, and we use definitions so
-that the C pre-processor can do this.
+Sometimes you need to compile different code depending on the target platform.
+The C preprocessor has a set of predefined macros that can be queried by using
+#ifdef FOO or #if defined(FOO). Among these macros are usually ones that
+describe the target CPU and operating system. Depending of which of the macros
+are defined, you can write code that uses features unique to a specific
+platform. The best way to handle these differences is to use the GNU autotools
+(automake, autoconf, etc.) to check for specific features (like the existence
+of a header file, a function or a library).
-To test whether you are working on a 4.4 BSD-derived system, you should use the
-BSD definition, which is defined in <sys/param.h> on said systems.
+If that is not possible you can use the predefined macros below to configure
+your code to the platform it runs on. Almost every operating system, hardware
+architecture and compiler has its own macro. For example, if the macros
+__GNUC__, __i386__ and __NetBSD__ are all defined, you know that you are using
+NetBSD on an Intel CPU, and your compiler is GCC.
- #include <sys/param.h>
+15.4.1.1. CPP defines for operating systems
-and then you can surround the BSD-specific parts of your package's C/C++ code
-using this conditional:
+To distinguish between 4.4 BSD-derived systems and the rest of the world, you
+should use the following code.
+ #include <sys/param.h>
#if (defined(BSD) && BSD >= 199306)
- ...
+ /* your BSD-specific code goes here */
+ #else
+ /* non-BSD-specific code */
#endif
-Please use the "__NetBSD__" definition sparingly - it should only apply to
-features of NetBSD that are not present in other 4.4-lite-derived BSDs.
+If this distinction is not fine enough, you can also use the following defines.
+
+ FreeBSD __FreeBSD__
+ Linux linux, __linux, __linux__
+ NetBSD __NetBSD__
+ OpenBSD __OpenBSD__
+ Solaris sun, __sun (GCC and SunPro), __sun__ (only GCC)
+
+15.4.1.2. CPP defines for CPUs
+
+ i386 i386, __i386, __i386__
+ MIPS __mips
+ SPARC sparc, __sparc
+
+15.4.1.3. CPP defines for compilers
+
+ GCC __GNUC__ (major version), __GNUC_MINOR__
15.4.2. Getting a list of CPP defines