diff options
author | dillo <dillo> | 2005-12-06 20:02:34 +0000 |
---|---|---|
committer | dillo <dillo> | 2005-12-06 20:02:34 +0000 |
commit | 6c10fa801551f2bdc35f67c396586314a4281c35 (patch) | |
tree | 335ffc05a07bea93f957cb28b620cb928cafc784 /doc | |
parent | 4e48b1e8632513f4417f41d56dafaf833f0f03b0 (diff) | |
download | pkgsrc-6c10fa801551f2bdc35f67c396586314a4281c35.tar.gz |
Regenerate (no PKGBASE in PKG_OPTIONS_VAR).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/pkgsrc.html | 1029 | ||||
-rw-r--r-- | doc/pkgsrc.txt | 76 |
2 files changed, 526 insertions, 579 deletions
diff --git a/doc/pkgsrc.html b/doc/pkgsrc.html index 801d2cfce81..7d247fedae6 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 1st August 2004), see www.w3.org" /> + "HTML Tidy for NetBSD (vers 1 September 2005), 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" xml:lang="en"> + <div class="book" lang="en"> <div class="titlepage"> <div> <div> - <h1 class="title"><a name="the-pkgsrc-guide" id= - "the-pkgsrc-guide"></a>The pkgsrc guide</h1> + <h1 class="title"><a name="the-pkgsrc-guide"></a>The + pkgsrc guide</h1> </div> <div> @@ -1059,11 +1059,11 @@ alink="#0000FF"> </dl> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="introduction" id= + <h2 class="title"><a name= "introduction"></a>Chapter 1. What is pkgsrc?</h2> </div> @@ -1088,12 +1088,11 @@ alink="#0000FF"> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "introduction-section" id= "introduction-section"></a>1.1. Introduction</h2> </div> </div> @@ -1226,12 +1225,12 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "overview" id="overview"></a>1.2. Overview</h2> + "overview"></a>1.2. Overview</h2> </div> </div> </div> @@ -1272,12 +1271,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "terminology" id= "terminology"></a>1.3. Terminology</h2> </div> </div> @@ -1372,12 +1370,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "typography" id= "typography"></a>1.4. Typography</h2> </div> </div> @@ -1393,11 +1390,11 @@ alink="#0000FF"> </div> </div> - <div class="part" lang="en" xml:lang="en"> + <div class="part" lang="en"> <div class="titlepage"> <div> <div> - <h1 class="title"><a name="users-guide" id= + <h1 class="title"><a name= "users-guide"></a>Part I. The pkgsrc user's guide</h1> </div> @@ -1680,11 +1677,11 @@ alink="#0000FF"> </dl> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="getting" id= + <h2 class="title"><a name= "getting"></a>Chapter 2. Where to get pkgsrc and how to keep it up-to-date</h2> </div> @@ -1713,13 +1710,12 @@ alink="#0000FF"> file, via SUP, or via CVS. All three ways are described here.</p> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "as-tar-file" id="as-tar-file"></a>2.1. As tar - file</h2> + "as-tar-file"></a>2.1. As tar file</h2> </div> </div> </div> @@ -1732,12 +1728,12 @@ alink="#0000FF"> class="filename">/usr/pkgsrc</code>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "via-sup" id="via-sup"></a>2.2. Via SUP</h2> + "via-sup"></a>2.2. Via SUP</h2> </div> </div> </div> @@ -1759,12 +1755,12 @@ alink="#0000FF"> <em class="replaceable"><code>/path/to/your/supfile</code></em></strong></span>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "via-cvs" id="via-cvs"></a>2.3. Via CVS</h2> + "via-cvs"></a>2.3. Via CVS</h2> </div> </div> </div> @@ -1806,12 +1802,11 @@ alink="#0000FF"> all work is done relatively within the pkgsrc tree.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "uptodate-cvs" id= "uptodate-cvs"></a>2.4. Keeping pkgsrc up-to-date via CVS</h2> </div> @@ -1844,11 +1839,11 @@ alink="#0000FF"> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="platforms" id= + <h2 class="title"><a name= "platforms"></a>Chapter 3. Using pkgsrc on systems other than NetBSD</h2> </div> @@ -1894,12 +1889,11 @@ alink="#0000FF"> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "bootstrapping-pkgsrc" id= "bootstrapping-pkgsrc"></a>3.1. Bootstrapping pkgsrc</h2> </div> @@ -1967,7 +1961,7 @@ alink="#0000FF"> <p>See <a href="#getting" title= "Chapter 2. Where to get pkgsrc and how to keep it up-to-date"> - Chapter 2, <i>Where to get pkgsrc and how to keep it + Chapter 2, <i>Where to get pkgsrc and how to keep it up-to-date</i></a> for other ways to get pkgsrc before bootstrapping. The given <span><strong class= "command">bootstrap</strong></span> command will use the @@ -1986,7 +1980,10 @@ alink="#0000FF"> set of packages is available for supported platforms. An up-to-date list of these can be found on <a href= "http://www.pkgsrc.org/" target= - "_top">www.pkgsrc.org</a>.</p> + "_top">www.pkgsrc.org</a>. Note that this only works for + privileged builds that install into <code xmlns= + "http://www.w3.org/TR/xhtml1/transitional" class= + "filename">/usr/pkg</code>.</p> <div class="note" style= "margin-left: 0.5in; margin-right: 0.5in;"> @@ -2002,12 +1999,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Platform-specific notes</h2> </div> @@ -2017,11 +2013,11 @@ alink="#0000FF"> <p>Here are some platform-specific notes you should be aware of.</p> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="darwin" id= + <h3 class="title"><a name= "darwin"></a>3.2.1. Darwin (Mac OS X)</h3> </div> </div> @@ -2062,13 +2058,13 @@ alink="#0000FF"> be case-sensitive, and HFS+ is not.</p> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a name="platform.osx-image" - id="platform.osx-image"></a>3.2.1.1. Using - a disk image</h4> + <h4 class="title"><a name= + "platform.osx-image"></a>3.2.1.1. Using a + disk image</h4> </div> </div> </div> @@ -2088,12 +2084,12 @@ alink="#0000FF"> <p>That's it!</p> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a name="platform.osx-ufs" - id="platform.osx-ufs"></a>3.2.1.2. Using a + <h4 class="title"><a name= + "platform.osx-ufs"></a>3.2.1.2. Using a UFS partition</h4> </div> </div> @@ -2155,11 +2151,11 @@ alink="#0000FF"> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="freebsd" id= + <h3 class="title"><a name= "freebsd"></a>3.2.2. FreeBSD</h3> </div> </div> @@ -2217,11 +2213,11 @@ alink="#0000FF"> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="interix" id= + <h3 class="title"><a name= "interix"></a>3.2.3. Interix</h3> </div> </div> @@ -2242,12 +2238,11 @@ alink="#0000FF"> officially supported. (The main difference in 3.0/3.1 is lack of pthreads.)</p> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" 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. When installing Interix/SFU</h4> </div> @@ -2310,12 +2305,11 @@ alink="#0000FF"> "_top">http://www.duh.org/interix/hotfixes.php</a>.</p> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" 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. What to do if Interix/SFU is already installed</h4> </div> @@ -2365,12 +2359,11 @@ alink="#0000FF"> </div> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name= - "platform.interix-notes" id= "platform.interix-notes"></a>3.2.3.3. Important notes for using pkgsrc</h4> </div> @@ -2409,12 +2402,11 @@ alink="#0000FF"> </pre> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name= - "platform.interix-limits" id= "platform.interix-limits"></a>3.2.3.4. Limitations of the Interix platform</h4> </div> @@ -2527,12 +2519,11 @@ alink="#0000FF"> </div> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a name= - "platform.interix-knownissues" id= "platform.interix-knownissues"></a>3.2.3.5. Known issues for pkgsrc on Interix</h4> </div> @@ -2560,11 +2551,11 @@ alink="#0000FF"> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="irix" id= + <h3 class="title"><a name= "irix"></a>3.2.4. IRIX</h3> </div> </div> @@ -2648,11 +2639,11 @@ alink="#0000FF"> pass the '--preserve-path' flag.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="linux" id= + <h3 class="title"><a name= "linux"></a>3.2.5. Linux</h3> </div> </div> @@ -2729,11 +2720,11 @@ alink="#0000FF"> libtool.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="openbsd" id= + <h3 class="title"><a name= "openbsd"></a>3.2.6. OpenBSD</h3> </div> </div> @@ -2802,11 +2793,11 @@ alink="#0000FF"> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="solaris" id= + <h3 class="title"><a name= "solaris"></a>3.2.7. Solaris</h3> </div> </div> @@ -2847,13 +2838,13 @@ alink="#0000FF"> <span class="emphasis"><em>not</em></span> supported.</p> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a name="solaris-gcc-note" - id="solaris-gcc-note"></a>3.2.7.1. If you - are using gcc</h4> + <h4 class="title"><a name= + "solaris-gcc-note"></a>3.2.7.1. If you are + using gcc</h4> </div> </div> </div> @@ -2878,12 +2869,11 @@ alink="#0000FF"> "_top">http://www.sun.com/bigadmin/common/freewareSearch.html</a>.</p> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" 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. If you are using Sun WorkShop</h4> </div> @@ -2946,11 +2936,11 @@ alink="#0000FF"> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="using" id= + <h2 class="title"><a name= "using"></a>Chapter 4. Using pkgsrc</h2> </div> </div> @@ -3004,12 +2994,11 @@ alink="#0000FF"> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "getting-started" id= "getting-started"></a>4.1. Working with binary packages</h2> </div> @@ -3020,12 +3009,11 @@ alink="#0000FF"> install a precompiled binary package that someone else already prepared for your type of machine.</p> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Where to get binary packages</h3> </div> @@ -3062,12 +3050,11 @@ alink="#0000FF"> documentation for the exact location.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. How to use binary packages</h3> </div> @@ -3137,11 +3124,11 @@ alink="#0000FF"> just installed program.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="a-word-of-warning" id= + <h3 class="title"><a name= "a-word-of-warning"></a>4.1.3. A word of warning</h3> </div> @@ -3160,12 +3147,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Building packages from source</h2> </div> @@ -3178,11 +3164,11 @@ alink="#0000FF"> “The pkgsrc developer's guide”</a> for instructions how to create your own packages.</p> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="requirements" id= + <h3 class="title"><a name= "requirements"></a>4.2.1. Requirements</h3> </div> </div> @@ -3198,12 +3184,12 @@ alink="#0000FF"> required, too.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="fetching-distfiles" - id="fetching-distfiles"></a>4.2.2. Fetching + <h3 class="title"><a name= + "fetching-distfiles"></a>4.2.2. Fetching distfiles</h3> </div> </div> @@ -3241,12 +3227,11 @@ alink="#0000FF"> "filename">/usr/pkgsrc/distfiles</code>.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. How to build and install</h3> </div> @@ -3294,8 +3279,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 B. Build logs">Appendix B, <i>Build - logs</i></a>.</p> + "Appendix B. 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= @@ -3433,12 +3418,11 @@ alink="#0000FF"> "varname">LOCALBASE</code>.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "selecting-the-compiler" id= "selecting-the-compiler"></a>4.2.4. Selecting the compiler</h3> </div> @@ -3524,11 +3508,11 @@ alink="#0000FF"> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="configuring" id= + <h2 class="title"><a name= "configuring"></a>Chapter 5. Configuring pkgsrc</h2> </div> @@ -3557,12 +3541,11 @@ alink="#0000FF"> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "general-configuration" id= "general-configuration"></a>5.1. General configuration</h2> </div> @@ -3644,12 +3627,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Variables affecting the build process</h2> </div> @@ -3721,12 +3703,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Developer/advanced settings</h2> </div> @@ -3804,12 +3785,11 @@ alink="#0000FF"> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Selecting Build Options</h2> </div> @@ -3906,11 +3886,11 @@ alink="#0000FF"> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="binary" id= + <h2 class="title"><a name= "binary"></a>Chapter 6. Creating binary packages</h2> </div> @@ -3981,12 +3961,11 @@ alink="#0000FF"> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Building a single binary package</h2> </div> @@ -4024,7 +4003,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. Packaging figlet">Section B.2, + "B.2. Packaging figlet">Section B.2, “Packaging figlet”</a> for a continuation of the above <a xmlns= "http://www.w3.org/TR/xhtml1/transitional" href= @@ -4033,17 +4012,16 @@ alink="#0000FF"> "filename">misc/figlet</code></a> example.</p> <p>See <a href="#submit" title= - "Chapter 17. Submitting and Committing">Chapter - 17, <i>Submitting and Committing</i></a> for information - on how to submit such a binary package.</p> + "Chapter 17. 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" xml:lang="en"> + <div class="sect1" 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. Settings for creation of binary packages</h2> </div> @@ -4055,13 +4033,13 @@ alink="#0000FF"> “Other helpful targets”</a>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "bulkbuild" id="bulkbuild"></a>6.3. Doing a - bulk build of all packages</h2> + "bulkbuild"></a>6.3. Doing a bulk build of all + packages</h2> </div> </div> </div> @@ -4069,10 +4047,13 @@ alink="#0000FF"> <p>If you want to get a full set of precompiled binary packages, this section describes how to get them. Beware that the bulk build will remove all currently installed - packages from your system! Having an FTP server - configured either on the machine doing the bulk builds or - on a nearby NFS server can help to make the packages - available to everyone. See <a href= + packages from your system!</p> + + <p>Having an FTP server configured either on the machine + doing the bulk builds or on a nearby NFS server can help + to make the packages available to other machines that can + then save time by installing only the binary packages. + See <a href= "http://netbsd.gw.com/cgi-bin/man-cgi?ftpd+8+NetBSD-current"> <span class="citerefentry"><span class= "refentrytitle">ftpd</span>(8)</span></a> for more @@ -4080,23 +4061,51 @@ alink="#0000FF"> sure to not actually compile on NFS storage, as this slows things down a lot.</p> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="binary.configuration" - id= + <h3 class="title"><a name= "binary.configuration"></a>6.3.1. Configuration</h3> </div> </div> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a name="binary.mk.conf" id= - "binary.mk.conf"></a>6.3.1.1. /etc/mk.conf</h4> + <h4 class="title"><a name= + "binary.bulk.build.conf"></a>6.3.1.1. <code xmlns="http://www.w3.org/TR/xhtml1/transitional" + class="filename">build.conf</code></h4> + </div> + </div> + </div> + + <p>The <code xmlns= + "http://www.w3.org/TR/xhtml1/transitional" class= + "filename">build.conf</code> file is the main + configuration file for bulk builds. You can configure + how your copy of pkgsrc is kept up to date, how the + distfiles are downloaded, how the packages are built + and how the report is generated. You can find an + annotated example file in <code xmlns= + "http://www.w3.org/TR/xhtml1/transitional" class= + "filename">pkgsrc/mk/bulk/build.conf-example</code>. + To use it, copy <code xmlns= + "http://www.w3.org/TR/xhtml1/transitional" class= + "filename">build.conf-example</code> to <code xmlns= + "http://www.w3.org/TR/xhtml1/transitional" class= + "filename">build.conf</code> and edit it, following + the comments in that file.</p> + </div> + + <div class="sect3" lang="en"> + <div class="titlepage"> + <div> + <div> + <h4 class="title"><a name= + "binary.mk.conf"></a>6.3.1.2. /etc/mk.conf</h4> </div> </div> </div> @@ -4122,44 +4131,49 @@ alink="#0000FF"> PKG_DEVELOPER?= yes _ACCEPTABLE= yes </pre> - </div> - <div class="sect3" lang="en" xml:lang="en"> - <div class="titlepage"> - <div> - <div> - <h4 class="title"><a name="build.conf" id= - "build.conf"></a>6.3.1.2. <code xmlns= - "http://www.w3.org/TR/xhtml1/transitional" - class="filename">build.conf</code></h4> - </div> - </div> - </div> - - <p>In <code xmlns= - "http://www.w3.org/TR/xhtml1/transitional" class= - "filename">pkgsrc/mk/bulk</code>, copy <code xmlns= - "http://www.w3.org/TR/xhtml1/transitional" class= - "filename">build.conf-example</code> to <code xmlns= + <p>Some options that are especially useful for bulk + builds can be found at the top lines of the file + <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= - "filename">build.conf</code> and edit it, following - the comments in that file. This is the config file - that determines where log files are generated after - the build, where to mail the build report to, where - your pkgsrc tree is located and the user to which - user to <a href= - "http://netbsd.gw.com/cgi-bin/man-cgi?su+8+NetBSD-current"> - <span class="citerefentry"><span class= - "refentrytitle">su</span>(8)</span></a> to do a - <span><strong class="command">cvs - update</strong></span>.</p> + "filename">mk/bulk/bsd.bulk-pkg.mk</code>. The most + useful options of these are briefly described + here.</p> + + <div class="itemizedlist"> + <ul type="disc"> + <li> + <p>If you are on a slow machine, you may want + to set <code class= + "varname">USE_BULK_BROKEN_CHECK</code> to + “<span class= + "quote">no</span>”.</p> + </li> + + <li> + <p>If you are doing bulk builds from a + read-only copy of pkgsrc, you have to set + <code class="varname">BULKFILESDIR</code> to + the directory where all log files are created. + Otherwise the log files are created in the + pkgsrc directory.</p> + </li> + + <li> + <p>Another important variable is <code class= + "varname">BULK_PREREQ</code>, which is a list + of packages that should be always available + while building other packages.</p> + </li> + </ul> + </div> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a name="pre-build.local" id= + <h4 class="title"><a name= "pre-build.local"></a>6.3.1.3. <code xmlns="http://www.w3.org/TR/xhtml1/transitional" class="filename">pre-build.local</code></h4> </div> @@ -4195,12 +4209,11 @@ alink="#0000FF"> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "other-environmental-considerations" id= "other-environmental-considerations"></a>6.3.2. Other environmental considerations</h3> </div> @@ -4242,11 +4255,11 @@ alink="#0000FF"> warned! :)</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="operation" id= + <h3 class="title"><a name= "operation"></a>6.3.3. Operation</h3> </div> </div> @@ -4291,11 +4304,11 @@ alink="#0000FF"> class="filename">build.conf</code> file.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="what-it-does" id= + <h3 class="title"><a name= "what-it-does"></a>6.3.4. What it does</h3> </div> </div> @@ -4355,12 +4368,11 @@ alink="#0000FF"> these broken package builds later.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "disk-space-requirements" id= "disk-space-requirements"></a>6.3.5. Disk space requirements</h3> </div> @@ -4399,13 +4411,13 @@ alink="#0000FF"> recompiling.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="setting-up-a-sandbox" - id="setting-up-a-sandbox"></a>6.3.6. Setting - up a sandbox for chrooted builds</h3> + <h3 class="title"><a name= + "setting-up-a-sandbox"></a>6.3.6. Setting up + a sandbox for chrooted builds</h3> </div> </div> </div> @@ -4575,7 +4587,7 @@ alink="#0000FF"> "http://www.w3.org/TR/xhtml1/transitional" class= "filename">/etc/mk.conf</code>, see <a href= "#binary.mk.conf" title= - "6.3.1.1. /etc/mk.conf">Section 6.3.1.1, + "6.3.1.2. /etc/mk.conf">Section 6.3.1.2, “/etc/mk.conf”</a>.</p> </li> @@ -4616,12 +4628,11 @@ alink="#0000FF"> (wherever that points/mounts to/from).</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Building a partial set of packages</h3> </div> @@ -4671,11 +4682,11 @@ alink="#0000FF"> needed.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="bulk-upload" id= + <h3 class="title"><a name= "bulk-upload"></a>6.3.8. Uploading results of a bulk build</h3> </div> @@ -4821,12 +4832,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "creating-cdroms" id= "creating-cdroms"></a>6.4. Creating a multiple CD-ROM packages collection</h2> </div> @@ -4847,11 +4857,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" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="cdpack-example" id= + <h3 class="title"><a name= "cdpack-example"></a>6.4.1. Example of cdpack</h3> </div> @@ -4917,11 +4927,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="faq" id= + <h2 class="title"><a name= "faq"></a>Chapter 7. Frequently Asked Questions</h2> </div> @@ -5000,12 +5010,11 @@ 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" xml:lang="en"> + <div class="sect1" 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. Are there any mailing lists for pkg-related discussion?</h2> </div> @@ -5060,12 +5069,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "_top">http://mail-index.NetBSD.org/</a>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "pkgviews-docs" id= "pkgviews-docs"></a>7.2. Where's the pkgviews documentation?</h2> </div> @@ -5078,12 +5086,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "filename">pkgsrc/mk/buildlink3/PKGVIEWS_UG</code>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "faq-pkgtools" id= "faq-pkgtools"></a>7.3. Utilities for package management (pkgtools)</h2> </div> @@ -5338,12 +5345,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. How to use pkgsrc as non-root</h2> </div> @@ -5381,12 +5387,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> finer tuning of the tree layout.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "resume-transfers" id= "resume-transfers"></a>7.5. How to resume transfers when fetching distfiles?</h2> </div> @@ -5425,12 +5430,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. How can I install/use XFree86 from pkgsrc?</h2> </div> @@ -5451,12 +5455,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. How can I install/use X.org from pkgsrc?</h2> </div> @@ -5477,12 +5480,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. How to fetch files from behind a firewall</h2> </div> @@ -5503,13 +5505,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "passive-ftp" id="passive-ftp"></a>7.9. How do - I tell <span><strong class="command">make + "passive-ftp"></a>7.9. How do I tell + <span><strong class="command">make fetch</strong></span> to do passive FTP?</h2> </div> </div> @@ -5554,12 +5556,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> active transfers.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. How to fetch all distfiles at once</h2> </div> @@ -5630,12 +5631,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. What does “<span class="quote">Don't know how to make /usr/share/tmac/tmac.andoc</span>” mean?</h2> @@ -5667,12 +5667,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> class="filename">/etc/mk.conf</code>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. What does “<span class="quote">Could not find bsd.own.mk</span>” mean?</h2> @@ -5701,12 +5700,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> -r</strong></span>).</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Using 'sudo' with pkgsrc</h2> </div> @@ -5737,13 +5735,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "faq.conf" id="faq.conf"></a>7.14. How do I - change the location of configuration files?</h2> + "faq.conf"></a>7.14. How do I change the + location of configuration files?</h2> </div> </div> </div> @@ -5781,12 +5779,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> rebuild and reinstall any affected packages.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "audit-packages" id= "audit-packages"></a>7.15. Automated security checks</h2> </div> @@ -5859,11 +5856,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="part" lang="en" xml:lang="en"> + <div class="part" lang="en"> <div class="titlepage"> <div> <div> - <h1 class="title"><a name="developers-guide" id= + <h1 class="title"><a name= "developers-guide"></a>Part II. The pkgsrc developer's guide</h1> </div> @@ -6026,8 +6023,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> @@ -6461,11 +6458,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </dl> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="components" id= + <h2 class="title"><a name= "components"></a>Chapter 8. Package components - files, directories and contents</h2> </div> @@ -6511,12 +6508,11 @@ 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" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "components.Makefile" id= "components.Makefile"></a>8.1. <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">Makefile</code></h2> @@ -6832,12 +6828,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "components.distinfo" id= "components.distinfo"></a>8.2. <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">distinfo</code></h2> @@ -6886,12 +6881,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> information is not lost.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "components.patches" id= "components.patches"></a>8.3. patches/*</h2> </div> </div> @@ -6995,12 +6989,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> after pkgsrc patches are applied</em></span>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Other mandatory files</h2> </div> @@ -7040,12 +7033,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "components.optional" id= "components.optional"></a>8.5. Optional files</h2> </div> @@ -7129,12 +7121,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "work-dir" id="work-dir"></a>8.6. <code xmlns= + "work-dir"></a>8.6. <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">work*</code></h2> </div> @@ -7157,12 +7149,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <code class="varname">OBJMACHINE</code> is set.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "files-dir" id= "files-dir"></a>8.7. <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">files/*</code></h2> @@ -7183,11 +7174,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="makefile" id= + <h2 class="title"><a name= "makefile"></a>Chapter 9. Programming in <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= @@ -7272,12 +7263,11 @@ 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" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "makefile.variables" id= "makefile.variables"></a>9.1. <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">Makefile</code> variables</h2> @@ -7381,12 +7371,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </ul> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "makefile.variables.names" id= "makefile.variables.names"></a>9.1.1. Naming conventions</h3> </div> @@ -7422,12 +7411,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "makefile.code" id= "makefile.code"></a>9.2. Code snippets</h2> </div> </div> @@ -7438,11 +7426,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" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="adding-to-list" id= + <h3 class="title"><a name= "adding-to-list"></a>9.2.1. Adding things to a list</h3> </div> @@ -7468,12 +7456,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> are correctly interpreted in both lists.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Converting an internal list into an external list</h3> </div> @@ -7494,12 +7481,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "varname">""</code> is explained below.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Passing variables to a shell command</h3> </div> @@ -7557,11 +7543,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> there is no example for it.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="quoting-guideline" id= + <h3 class="title"><a name= "quoting-guideline"></a>9.2.4. Quoting guideline</h3> </div> @@ -7682,12 +7668,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Workaround for a bug in BSD Make</h3> </div> @@ -7714,11 +7699,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="plist" id= + <h2 class="title"><a name= "plist"></a>Chapter 10. PLIST issues</h2> </div> </div> @@ -7779,12 +7764,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" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "rcs-id" id="rcs-id"></a>10.1. RCS ID</h2> + "rcs-id"></a>10.1. RCS ID</h2> </div> </div> </div> @@ -7797,12 +7782,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Semi-automatic <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= @@ -7820,12 +7804,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> information on this target.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "print-PLIST" id= "print-PLIST"></a>10.3. Tweaking output of <span><strong class="command">make print-PLIST</strong></span></h2> @@ -7869,12 +7852,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "plist.misc" id= "plist.misc"></a>10.4. Variable substitution in PLIST</h2> </div> @@ -7999,12 +7981,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> “<span class="quote">somevalue</span>”.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "manpage-compression" id= "manpage-compression"></a>10.5. Man page compression</h2> </div> @@ -8029,12 +8010,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> class="filename">PLIST</code> itself.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Changing PLIST source with <code class= "varname">PLIST_SRC</code></h2> @@ -8054,12 +8034,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> things is important.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Platform-specific and differing PLISTs</h2> </div> @@ -8106,12 +8085,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Sharing directories between packages</h2> </div> @@ -8199,11 +8177,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="buildlink" id= + <h2 class="title"><a name= "buildlink"></a>Chapter 11. Buildlink methodology</h2> </div> @@ -8302,12 +8280,11 @@ 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" xml:lang="en"> + <div class="sect1" 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. Converting packages to use buildlink3</h2> </div> @@ -8476,12 +8453,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> complete description of how to use them properly.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Writing <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= @@ -8525,12 +8501,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "prompt">%</code> createbuildlink >buildlink3.mk</code></strong> </pre> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="anatomy-of-bl3" id= - "anatomy-of-bl3"></a>11.2.1. Anatomy of a + <h3 class="title"><a name= + "anatomy-of-bl3"></a>11.2.1. Anatomy of a buildlink3.mk file</h3> </div> </div> @@ -8647,9 +8623,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 @@ -8786,16 +8762,15 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> included.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "updating-buildlink-depends" id= - "updating-buildlink-depends"></a>11.2.2. Updating + "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> @@ -8846,21 +8821,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. Handling dependencies">Section - 15.1.4, “Handling dependencies”</a> for - more information about dependencies on other packages, + title= + "15.1.4. Handling dependencies">Section 15.1.4, + “Handling dependencies”</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" xml:lang="en"> + <div class="sect1" 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. Writing <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= @@ -8915,12 +8890,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </ol> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="anatomy-of-builtin.mk" - id= + <h3 class="title"><a name= "anatomy-of-builtin.mk"></a>11.3.1. Anatomy of a <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= @@ -9047,12 +9021,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "replaceable"><code>pkg</code></em></code>).</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Global preferences for native or pkgsrc software</h3> </div> @@ -9096,11 +9069,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="pkginstall" id= + <h2 class="title"><a name= "pkginstall"></a>Chapter 12. The pkginstall framework</h2> </div> @@ -9236,14 +9209,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" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "files-and-dirs-outside-prefix" id= - "files-and-dirs-outside-prefix"></a>12.1. Files and - directories outside the installation prefix</h2> + "files-and-dirs-outside-prefix"></a>12.1. Files + and directories outside the installation + prefix</h2> </div> </div> </div> @@ -9276,12 +9249,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" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="dirs-outside-prefix" - id="dirs-outside-prefix"></a>12.1.1. Directory + <h3 class="title"><a name= + "dirs-outside-prefix"></a>12.1.1. Directory manipulation</h3> </div> </div> @@ -9326,12 +9299,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="files-outside-prefix" - id="files-outside-prefix"></a>12.1.2. File + <h3 class="title"><a name= + "files-outside-prefix"></a>12.1.2. File manipulation</h3> </div> </div> @@ -9393,13 +9366,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "conf-files" id="conf-files"></a>12.2. - Configuration files</h2> + "conf-files"></a>12.2. Configuration + files</h2> </div> </div> </div> @@ -9418,12 +9391,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" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="conf-files-sysconfdir" - id="conf-files-sysconfdir"></a>12.2.1. How + <h3 class="title"><a name= + "conf-files-sysconfdir"></a>12.2.1. How <code class="varname">PKG_SYSCONFDIR</code> is set</h3> </div> @@ -9543,18 +9516,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. Directory manipulation">Section 12.1.1, + "12.1.1. Directory manipulation">Section 12.1.1, “Directory manipulation”</a> what this means.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="conf-files-configure" - id="conf-files-configure"></a>12.2.2. Telling the - software where configuration files are</h3> + <h3 class="title"><a name= + "conf-files-configure"></a>12.2.2. Telling + the software where configuration files are</h3> </div> </div> </div> @@ -9577,12 +9550,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> unfortunately).</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="conf-files-patching" - id="conf-files-patching"></a>12.2.3. Patching + <h3 class="title"><a name= + "conf-files-patching"></a>12.2.3. Patching installations</h3> </div> </div> @@ -9619,7 +9592,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. File manipulation">Section 12.1.2, + "12.1.2. File manipulation">Section 12.1.2, “File manipulation”</a> for information about their syntax and their purpose. Here is an example, taken from the <a xmlns= @@ -9637,12 +9610,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> outside it.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="conf-files-disable" - id="conf-files-disable"></a>12.2.4. Disabling + <h3 class="title"><a name= + "conf-files-disable"></a>12.2.4. Disabling handling of configuration files</h3> </div> </div> @@ -9655,13 +9628,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "rcd-scripts" id="rcd-scripts"></a>12.3. System - startup scripts</h2> + "rcd-scripts"></a>12.3. System startup + scripts</h2> </div> </div> </div> @@ -9672,8 +9645,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> same rules described in <a href= "#files-and-dirs-outside-prefix" title= "12.1. Files and directories outside the installation prefix"> - Section 12.1, “Files and directories outside the - installation prefix”</a> apply, and the same + Section 12.1, “Files and directories outside + the installation prefix”</a> apply, and the same solutions can be used. However, pkginstall provides a special mechanism to handle these files.</p> @@ -9742,12 +9715,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </ol> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="rcd-scripts-disable" - id="rcd-scripts-disable"></a>12.3.1. Disabling + <h3 class="title"><a name= + "rcd-scripts-disable"></a>12.3.1. Disabling handling of system startup scripts</h3> </div> </div> @@ -9764,13 +9737,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "users-and-groups" id="users-and-groups"></a>12.4. - System users and groups</h2> + "users-and-groups"></a>12.4. System users and + groups</h2> </div> </div> </div> @@ -9814,12 +9787,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> numeric identifier is optional.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "shells" id="shells"></a>12.5. System shells</h2> + "shells"></a>12.5. System shells</h2> </div> </div> </div> @@ -9847,13 +9820,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> PKG_SHELL= ${PREFIX}/bin/zsh </pre> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="shells-disable" id= - "shells-disable"></a>12.5.1. Disabling handling - of configuration files</h3> + <h3 class="title"><a name= + "shells-disable"></a>12.5.1. Disabling + handling of configuration files</h3> </div> </div> </div> @@ -9867,11 +9840,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="options" id= + <h2 class="title"><a name= "options"></a>Chapter 13. Options handling</h2> </div> @@ -9907,12 +9880,11 @@ 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" xml:lang="en"> + <div class="sect1" 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. Global default options</h2> </div> @@ -9927,12 +9899,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> class="filename">/etc/mk.conf</code>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Converting packages to use <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= @@ -10014,7 +9985,10 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "refentrytitle">make</span>(1)</span></a> variable that the user can set to override the default options. It should be set to PKG_OPTIONS.<em class= - "replaceable"><code>pkgbase</code></em>.</p> + "replaceable"><code>pkgbase</code></em>. Do not set + it to PKG_OPTIONS.${PKGBASE}, since <code class= + "varname">PKGBASE</code> is set after <code class= + "varname">PKG_OPTIONS_VAR</code> is used.</p> </li> <li> @@ -10071,9 +10045,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <p><code class= "varname">PKG_OPTIONS_LEGACY_VARS</code> is a list of “<span class="quote"><em class= - "replaceable"><code>USE_VARIABLE</code></em>:<em class="replaceable"> - <code>option</code></em></span>” pairs that - map legacy <code xmlns= + "replaceable"><code>USE_VARIABLE</code></em>:<em class="replaceable"><code>option</code></em></span>” + 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 @@ -10087,10 +10060,9 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <p><code class= "varname">PKG_OPTIONS_LEGACY_OPTS</code> is a list of “<span class="quote"><em class= - "replaceable"><code>old-option</code></em>:<em class="replaceable"> - <code>new-option</code></em></span>” 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>” + pairs that map options that have been renamed to + their new counterparts. Pairs should be added with “<span class="quote">+=</span>” to keep the listing of global legacy options. A warning will be issued if the user uses a legacy @@ -10155,12 +10127,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "option-names" id= "option-names"></a>13.3. Option Names</h2> </div> </div> @@ -10197,11 +10168,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="build" id= + <h2 class="title"><a name= "build"></a>Chapter 14. The build process</h2> </div> @@ -10276,12 +10247,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.intro" id= "build.intro"></a>14.1. Introduction</h2> </div> </div> @@ -10317,12 +10287,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> class="filename">pkgsrc/mk/bsd.pkg.mk</code>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.prefix" id= "build.prefix"></a>14.2. Program location</h2> </div> </div> @@ -10503,12 +10472,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.builddirs" id= "build.builddirs"></a>14.3. Directories used during the build process</h2> </div> @@ -10578,12 +10546,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.running" id= "build.running"></a>14.4. Running a phase</h2> </div> </div> @@ -10600,14 +10567,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> will be built, but not installed.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.fetch" id="build.fetch"></a>14.5. The - <span class="emphasis"><em>fetch</em></span> - phase</h2> + "build.fetch"></a>14.5. The <span class= + "emphasis"><em>fetch</em></span> phase</h2> </div> </div> </div> @@ -10639,12 +10605,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "varname">MASTER_SORT_REGEX</code>.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.checksum" id= "build.checksum"></a>14.6. The <span class= "emphasis"><em>checksum</em></span> phase</h2> </div> @@ -10660,12 +10625,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> master distribution site or network lossage.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.extract" id= "build.extract"></a>14.7. The <span class= "emphasis"><em>extract</em></span> phase</h2> </div> @@ -10733,14 +10697,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.patch" id="build.patch"></a>14.8. The - <span class="emphasis"><em>patch</em></span> - phase</h2> + "build.patch"></a>14.8. The <span class= + "emphasis"><em>patch</em></span> phase</h2> </div> </div> </div> @@ -10782,14 +10745,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> there.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.tools" id="build.tools"></a>14.9. The - <span class="emphasis"><em>tools</em></span> - phase</h2> + "build.tools"></a>14.9. The <span class= + "emphasis"><em>tools</em></span> phase</h2> </div> </div> </div> @@ -10797,12 +10759,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <p>[TODO]</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.wrapper" id= "build.wrapper"></a>14.10. The <span class= "emphasis"><em>wrapper</em></span> phase</h2> </div> @@ -10812,12 +10773,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <p>[TODO]</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.configure" id= "build.configure"></a>14.11. The <span class= "emphasis"><em>configure</em></span> phase</h2> </div> @@ -10872,14 +10832,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "varname">USE_X11BASE</code> instead.)</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.build" id="build.build"></a>14.12. The - <span class="emphasis"><em>build</em></span> - phase</h2> + "build.build"></a>14.12. The <span class= + "emphasis"><em>build</em></span> phase</h2> </div> </div> </div> @@ -10919,14 +10878,13 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> “<span class="quote">all</span>”.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.test" id="build.test"></a>14.13. The - <span class="emphasis"><em>test</em></span> - phase</h2> + "build.test"></a>14.13. The <span class= + "emphasis"><em>test</em></span> phase</h2> </div> </div> </div> @@ -10934,12 +10892,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <p>[TODO]</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.install" id= "build.install"></a>14.14. The <span class= "emphasis"><em>install</em></span> phase</h2> </div> @@ -10959,12 +10916,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "varname">USE_IMAKE</code> is set).</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.package" id= "build.package"></a>14.15. The <span class= "emphasis"><em>package</em></span> phase</h2> </div> @@ -10974,12 +10930,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <p>[TODO]</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "build.helpful-targets" id= "build.helpful-targets"></a>14.16. Other helpful targets</h2> </div> @@ -11515,11 +11470,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="fixes" id= + <h2 class="title"><a name= "fixes"></a>Chapter 15. Making your package work</h2> </div> @@ -11721,24 +11676,22 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "general-operation" id= "general-operation"></a>15.1. General operation</h2> </div> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. How to pull in variables from /etc/mk.conf</h3> </div> @@ -11802,12 +11755,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> interested in optimization for the current CPU.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Where to install documentation</h3> </div> @@ -11823,12 +11775,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> package).</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="restricted-packages" - id= + <h3 class="title"><a name= "restricted-packages"></a>15.1.3. Restricted packages</h3> </div> @@ -11903,11 +11854,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> binary packages!</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="dependencies" id= + <h3 class="title"><a name= "dependencies"></a>15.1.4. Handling dependencies</h3> </div> @@ -12081,8 +12032,8 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> <code class="varname">RECOMMENDED</code>, see <a href="#security-handling" title= "15.1.8. Handling packages with security problems"> - Section 15.1.8, “Handling packages with - security problems”</a> for more + Section 15.1.8, “Handling packages + with security problems”</a> for more information.</p> </li> @@ -12158,11 +12109,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "filename">devel/gettext-m4</code></a> package.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="conflicts" id= + <h3 class="title"><a name= "conflicts"></a>15.1.5. Handling conflicts with other packages</h3> </div> @@ -12210,12 +12161,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "quote">Xaw3d-1.3</span>”.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="not-building-packages" - id= + <h3 class="title"><a name= "not-building-packages"></a>15.1.6. Packages that cannot or should not be built</h3> </div> @@ -12244,12 +12194,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> message.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="undeletable-packages" - id= + <h3 class="title"><a name= "undeletable-packages"></a>15.1.7. Packages which should not be deleted, once installed</h3> </div> @@ -12270,11 +12219,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> is used.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="security-handling" id= + <h3 class="title"><a name= "security-handling"></a>15.1.8. Handling packages with security problems</h3> </div> @@ -12309,11 +12258,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" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="compiler-bugs" id= + <h3 class="title"><a name= "compiler-bugs"></a>15.1.9. How to handle compiler bugs</h3> </div> @@ -12336,12 +12285,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> number of examples!</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="bumping-pkgrevision" - id="bumping-pkgrevision"></a>15.1.10. How to + <h3 class="title"><a name= + "bumping-pkgrevision"></a>15.1.10. How to handle incrementing versions when fixing an existing package</h3> </div> @@ -12377,12 +12326,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "portability-of-packages" id= "portability-of-packages"></a>15.1.11. Portability of packages</h3> </div> @@ -12395,11 +12343,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" xml:lang="en"> + <div class="sect3" lang="en"> <div class="titlepage"> <div> <div> - <h4 class="title"><a name="install-scripts" id= + <h4 class="title"><a name= "install-scripts"></a>15.1.11.1. ${INSTALL}, ${INSTALL_DATA_DIR}, ...</h4> </div> @@ -12420,23 +12368,22 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "downloading-issues" id= "downloading-issues"></a>15.2. Possible downloading issues</h2> </div> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="no-plain-download" id= + <h3 class="title"><a name= "no-plain-download"></a>15.2.1. Packages whose distfiles aren't available for plain downloading</h3> @@ -12506,12 +12453,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> with them.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. How to handle modified distfiles with the 'old' name</h3> @@ -12549,23 +12495,22 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "configuration-gotchas" id= "configuration-gotchas"></a>15.3. Configuration gotchas</h2> </div> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="fixes.libtool" id= + <h3 class="title"><a name= "fixes.libtool"></a>15.3.1. Shared libraries - libtool</h3> </div> @@ -12790,11 +12735,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="using-libtool" id= + <h3 class="title"><a name= "using-libtool"></a>15.3.2. Using libtool on GNU packages that already support libtool</h3> </div> @@ -12873,11 +12818,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="autoconf-automake" id= + <h3 class="title"><a name= "autoconf-automake"></a>15.3.3. GNU Autoconf/Automake</h3> </div> @@ -12930,23 +12875,22 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "fixes-build" id= "fixes-build"></a>15.4. Building the package</h2> </div> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="cpp-defines" id= + <h3 class="title"><a name= "cpp-defines"></a>15.4.1. CPP defines</h3> </div> </div> @@ -12977,12 +12921,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> that you are using NetBSD on an i386 compatible CPU, and your compiler is GCC.</p> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" 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. CPP defines for operating systems</h4> </div> @@ -13014,12 +12957,12 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" 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. CPP + <h4 class="title"><a name= + "fixes-build-cpp-cpu"></a>15.4.1.2. CPP defines for CPUs</h4> </div> </div> @@ -13031,12 +12974,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect3" lang="en" xml:lang="en"> + <div class="sect3" 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. CPP defines for compilers</h4> </div> @@ -13049,11 +12991,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="cpp-list-examples" id= + <h3 class="title"><a name= "cpp-list-examples"></a>15.4.2. Examples of CPP defines for some platforms</h3> </div> @@ -13117,11 +13059,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="cpp-list" id= + <h3 class="title"><a name= "cpp-list"></a>15.4.3. Getting a list of CPP defines</h3> </div> @@ -13142,23 +13084,22 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Package specific actions</h2> </div> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="user-interaction" id= + <h3 class="title"><a name= "user-interaction"></a>15.5.1. User interaction</h3> </div> @@ -13205,11 +13146,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="handling-licenses" id= + <h3 class="title"><a name= "handling-licenses"></a>15.5.2. Handling licenses</h3> </div> @@ -13304,12 +13245,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> pkgsrc that a fee has been paid.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "installing-score-files" id= "installing-score-files"></a>15.5.3. Installing score files</h3> </div> @@ -13344,11 +13284,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> these correctly.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="perl-scripts" id= + <h3 class="title"><a name= "perl-scripts"></a>15.5.4. Packages containing perl scripts</h3> </div> @@ -13363,11 +13303,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "varname">WRKSRC</code>, that you want adjusted.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="hardcoded-paths" id= + <h3 class="title"><a name= "hardcoded-paths"></a>15.5.5. Packages with hardcoded paths to other interpreters</h3> </div> @@ -13392,11 +13332,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="perl-modules" id= + <h3 class="title"><a name= "perl-modules"></a>15.5.6. Packages installing perl modules</h3> </div> @@ -13441,11 +13381,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "filename">PLIST</code>.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="faq.info-files" id= + <h3 class="title"><a name= "faq.info-files"></a>15.5.7. Packages installing info files</h3> </div> @@ -13545,11 +13485,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> error.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="manpages" id= + <h3 class="title"><a name= "manpages"></a>15.5.8. Packages installing man pages</h3> </div> @@ -13613,11 +13553,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> on installation of compressed manual pages.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="gconf2-data-files" id= + <h3 class="title"><a name= "gconf2-data-files"></a>15.5.9. Packages installing GConf2 data files</h3> </div> @@ -13702,12 +13642,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name= - "scrollkeeper-data-files" id= "scrollkeeper-data-files"></a>15.5.10. Packages installing scrollkeeper data files</h3> </div> @@ -13753,11 +13692,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="x11-fonts" id= + <h3 class="title"><a name= "x11-fonts"></a>15.5.11. Packages installing X11 fonts</h3> </div> @@ -13794,11 +13733,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> them.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="gtk2-modules" id= + <h3 class="title"><a name= "gtk2-modules"></a>15.5.12. Packages installing GTK2 modules</h3> </div> @@ -13868,11 +13807,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="sgml-xml-data" id= + <h3 class="title"><a name= "sgml-xml-data"></a>15.5.13. Packages installing SGML or XML data</h3> </div> @@ -13932,11 +13871,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="mime-database" id= + <h3 class="title"><a name= "mime-database"></a>15.5.14. Packages installing extensions to the MIME database</h3> </div> @@ -13999,11 +13938,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="intltool" id= + <h3 class="title"><a name= "intltool"></a>15.5.15. Packages using intltool</h3> </div> @@ -14024,11 +13963,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> appeared since it was released.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="startup-scripts" id= + <h3 class="title"><a name= "startup-scripts"></a>15.5.16. Packages installing startup scripts</h3> </div> @@ -14048,11 +13987,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> when the package is deinstalled.</p> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="tex-packages" id= + <h3 class="title"><a name= "tex-packages"></a>15.5.17. Packages installing TeX modules</h3> </div> @@ -14113,12 +14052,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Feedback to the author</h2> </div> @@ -14138,11 +14076,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="debug" id= + <h2 class="title"><a name= "debug"></a>Chapter 16. Debugging</h2> </div> </div> @@ -14354,11 +14292,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="chapter" lang="en" xml:lang="en"> + <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="submit" id= + <h2 class="title"><a name= "submit"></a>Chapter 17. Submitting and Committing</h2> </div> @@ -14390,12 +14328,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Submitting your packages</h2> </div> @@ -14460,12 +14397,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. General notes when adding, updating, or removing packages</h2> @@ -14514,12 +14450,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> "filename">pkgsrc/doc/CHANGES</code>!</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "committing-importing" id= "committing-importing"></a>17.3. Committing: Importing a package into CVS</h2> </div> @@ -14564,12 +14499,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> consistent tag.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "updating-package" id= "updating-package"></a>17.4. Updating a package to a newer version</h2> </div> @@ -14616,12 +14550,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> preferred above new and possibly untested features.</p> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "moving-package" id= "moving-package"></a>17.5. Moving a package in pkgsrc</h2> </div> @@ -14710,11 +14643,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </div> </div> - <div class="appendix" lang="en" xml:lang="en"> + <div class="appendix" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="examples" id= + <h2 class="title"><a name= "examples"></a>Appendix A. A simple example package: bison</h2> </div> @@ -14759,22 +14692,21 @@ 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" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "example-files" id= "example-files"></a>A.1. files</h2> </div> </div> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="example-Makefile" id= + <h3 class="title"><a name= "example-Makefile"></a>A.1.1. Makefile</h3> </div> </div> @@ -14798,11 +14730,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="example-descr" id= + <h3 class="title"><a name= "example-descr"></a>A.1.2. DESCR</h3> </div> </div> @@ -14815,11 +14747,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" lang="en"> <div class="titlepage"> <div> <div> - <h3 class="title"><a name="example-plist" id= + <h3 class="title"><a name= "example-plist"></a>A.1.3. PLIST</h3> </div> </div> @@ -14833,12 +14765,11 @@ nbftp% <strong class="userinput"><code>chmod 755 .</code></strong> </pre> </div> - <div class="sect2" lang="en" xml:lang="en"> + <div class="sect2" 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. Checking a package with <span><strong class= "command">pkglint</strong></span></h3> @@ -14869,12 +14800,11 @@ looks fine. </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" 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. Steps for building, installing, packaging</h2> </div> @@ -14902,8 +14832,8 @@ looks fine. "http://www.w3.org/TR/xhtml1/transitional" class= "filename">PLIST</code> (see <a href="#components" title= "Chapter 8. Package components - files, directories and contents"> - Chapter 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= @@ -15028,11 +14958,11 @@ Creating gzip'd tar ball in '/u/pkgsrc/lang/bison/bison-1.25.tgz' </div> </div> - <div class="appendix" lang="en" xml:lang="en"> + <div class="appendix" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="logs" id= + <h2 class="title"><a name= "logs"></a>Appendix B. Build logs</h2> </div> </div> @@ -15050,12 +14980,11 @@ Creating gzip'd tar ball in '/u/pkgsrc/lang/bison/bison-1.25.tgz' </dl> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "logs.building" id= "logs.building"></a>B.1. Building figlet</h2> </div> </div> @@ -15154,12 +15083,11 @@ cp figlet.6 /usr/pkg/man/man6 </pre> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "logs.package" id= "logs.package"></a>B.2. Packaging figlet</h2> </div> </div> @@ -15178,11 +15106,11 @@ Registering depends:. </div> </div> - <div class="appendix" lang="en" xml:lang="en"> + <div class="appendix" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="ftp-layout" id= + <h2 class="title"><a name= "ftp-layout"></a>Appendix C. Layout of the FTP server's package archive</h2> </div> @@ -15257,8 +15185,8 @@ Registering depends:. <ol type="1"> <li> <p>Run bulk build, see <a href="#bulkbuild" title= - "6.3. Doing a bulk build of all packages">Section - 6.3, “Doing a bulk build of all + "6.3. Doing a bulk build of all packages">Section 6.3, + “Doing a bulk build of all packages”</a></p> </li> @@ -15281,11 +15209,11 @@ Registering depends:. </div> </div> - <div class="appendix" lang="en" xml:lang="en"> + <div class="appendix" lang="en"> <div class="titlepage"> <div> <div> - <h2 class="title"><a name="editing" id= + <h2 class="title"><a name= "editing"></a>Appendix D. Editing guidelines for the pkgsrc guide</h2> </div> @@ -15307,12 +15235,12 @@ Registering depends:. <p>This section contains information on editing the pkgsrc guide itself.</p> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "targets" id="targets"></a>D.1. Targets</h2> + "targets"></a>D.1. Targets</h2> </div> </div> </div> @@ -15364,12 +15292,11 @@ Registering depends:. </div> </div> - <div class="sect1" lang="en" xml:lang="en"> + <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name= - "procedure" id= "procedure"></a>D.2. Procedure</h2> </div> </div> diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt index 2f488e6ad42..e188bcb080a 100644 --- a/doc/pkgsrc.txt +++ b/doc/pkgsrc.txt @@ -634,7 +634,8 @@ bookkeeping. However, these can also be set using command-line arguments. Binary packages for the pkgsrc tools and an initial set of packages is available for supported platforms. An up-to-date list of these can be found on -www.pkgsrc.org. +www.pkgsrc.org. Note that this only works for privileged builds that install +into /usr/pkg. Note @@ -1484,15 +1485,26 @@ See Section 14.16, "Other helpful targets". If you want to get a full set of precompiled binary packages, this section describes how to get them. Beware that the bulk build will remove all currently -installed packages from your system! Having an FTP server configured either on -the machine doing the bulk builds or on a nearby NFS server can help to make -the packages available to everyone. See ftpd(8) for more information. If you -use a remote NFS server's storage, be sure to not actually compile on NFS -storage, as this slows things down a lot. +installed packages from your system! + +Having an FTP server configured either on the machine doing the bulk builds or +on a nearby NFS server can help to make the packages available to other +machines that can then save time by installing only the binary packages. See +ftpd(8) for more information. If you use a remote NFS server's storage, be sure +to not actually compile on NFS storage, as this slows things down a lot. 6.3.1. Configuration -6.3.1.1. /etc/mk.conf +6.3.1.1. build.conf + +The build.conf file is the main configuration file for bulk builds. You can +configure how your copy of pkgsrc is kept up to date, how the distfiles are +downloaded, how the packages are built and how the report is generated. You can +find an annotated example file in pkgsrc/mk/bulk/build.conf-example. To use it, +copy build.conf-example to build.conf and edit it, following the comments in +that file. + +6.3.1.2. /etc/mk.conf You may want to set variables in /etc/mk.conf. Look at pkgsrc/mk/defaults/ mk.conf for details of the default settings. You will want to ensure that @@ -1508,13 +1520,19 @@ _ACCEPTABLE=yes accepts all licenses. PKG_DEVELOPER?= yes _ACCEPTABLE= yes -6.3.1.2. build.conf +Some options that are especially useful for bulk builds can be found at the top +lines of the file mk/bulk/bsd.bulk-pkg.mk. The most useful options of these are +briefly described here. + + * If you are on a slow machine, you may want to set USE_BULK_BROKEN_CHECK to + "no". + + * If you are doing bulk builds from a read-only copy of pkgsrc, you have to + set BULKFILESDIR to the directory where all log files are created. + Otherwise the log files are created in the pkgsrc directory. -In pkgsrc/mk/bulk, copy build.conf-example to build.conf and edit it, following -the comments in that file. This is the config file that determines where log -files are generated after the build, where to mail the build report to, where -your pkgsrc tree is located and the user to which user to su(8) to do a cvs -update. + * Another important variable is BULK_PREREQ, which is a list of packages that + should be always available while building other packages. 6.3.1.3. pre-build.local @@ -1677,7 +1695,7 @@ src/etc, be sure the following items are present and properly configured: 10. Make /usr/sandbox/usr/pkgsrc/packages and .../distfiles point somewhere appropriate. NFS- and/or nullfs-mounts may come in handy! -11. Edit /etc/mk.conf, see Section 6.3.1.1, "/etc/mk.conf". +11. Edit /etc/mk.conf, see Section 6.3.1.2, "/etc/mk.conf". 12. Adjust mk/bulk/build.conf to suit your needs. @@ -2195,7 +2213,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 @@ -3200,8 +3218,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 @@ -3240,7 +3258,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: @@ -3259,9 +3277,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 @@ -3575,9 +3593,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 @@ -3753,6 +3771,8 @@ supported by the package, and any default options settings if needed. 1. PKG_OPTIONS_VAR is the name of the make(1) variable that the user can set to override the default options. It should be set to PKG_OPTIONS.pkgbase. + Do not set it to PKG_OPTIONS.${PKGBASE}, since PKGBASE is set after + PKG_OPTIONS_VAR is used. 2. PKG_SUPPORTED_OPTIONS is a list of build options supported by the package. @@ -3774,14 +3794,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 |