Mon May 6 01:36:23 2013 UTC ()
regen


(rodent)
diff -r1.158 -r1.159 pkgsrc/doc/pkgsrc.html
diff -r1.161 -r1.162 pkgsrc/doc/pkgsrc.txt

cvs diff -r1.158 -r1.159 pkgsrc/doc/pkgsrc.html (expand / switch to unified diff)

--- pkgsrc/doc/pkgsrc.html 2013/05/05 21:43:39 1.158
+++ pkgsrc/doc/pkgsrc.html 2013/05/06 01:36:22 1.159
@@ -7648,67 +7648,67 @@ the name of the common tools. For exampl @@ -7648,67 +7648,67 @@ the name of the common tools. For exampl
7648.if exists(/usr/bin/bzcat) 7648.if exists(/usr/bin/bzcat)
7649TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat 7649TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
7650.elif exists(/usr/bin/bzip2) 7650.elif exists(/usr/bin/bzip2)
7651TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd 7651TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd
7652.endif 7652.endif
7653 7653
7654TOOLS_PLATFORM.true?= true # shell builtin 7654TOOLS_PLATFORM.true?= true # shell builtin
7655</pre> 7655</pre>
7656</div> 7656</div>
7657<div class="sect1"> 7657<div class="sect1">
7658<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 7658<div class="titlepage"><div><div><h2 class="title" style="clear: both">
7659<a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div> 7659<a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div>
7660<div class="qandaset"> 7660<div class="qandaset">
7661<a name="idm86685616"></a><dl> 7661<a name="idm88201136"></a><dl>
7662<dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a> 7662<dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a>
7663</dt> 7663</dt>
7664<dt>18.4.2. <a href="#tools.listall">How do I get a list of all available 7664<dt>18.4.2. <a href="#tools.listall">How do I get a list of all available
7665 tools?</a> 7665 tools?</a>
7666</dt> 7666</dt>
7667<dt>18.4.3. <a href="#tools.used">How can I get a list of all the tools that a 7667<dt>18.4.3. <a href="#tools.used">How can I get a list of all the tools that a
7668 package is using while being built? I want to know whether it 7668 package is using while being built? I want to know whether it
7669 uses sed or not.</a> 7669 uses sed or not.</a>
7670</dt> 7670</dt>
7671</dl> 7671</dl>
7672<table border="0" style="width: 100%;"> 7672<table border="0" style="width: 100%;">
7673<colgroup> 7673<colgroup>
7674<col align="left" width="1%"> 7674<col align="left" width="1%">
7675<col> 7675<col>
7676</colgroup> 7676</colgroup>
7677<tbody> 7677<tbody>
7678<tr class="question"> 7678<tr class="question">
7679<td align="left" valign="top"> 7679<td align="left" valign="top">
7680<a name="tools.new"></a><a name="idm86685232"></a><p><b>18.4.1.</b></p> 7680<a name="tools.new"></a><a name="idm88200752"></a><p><b>18.4.1.</b></p>
7681</td> 7681</td>
7682<td align="left" valign="top"><p>How do I add a new tool?</p></td> 7682<td align="left" valign="top"><p>How do I add a new tool?</p></td>
7683</tr> 7683</tr>
7684<tr class="answer"> 7684<tr class="answer">
7685<td align="left" valign="top"></td> 7685<td align="left" valign="top"></td>
7686<td align="left" valign="top"><p>TODO</p></td> 7686<td align="left" valign="top"><p>TODO</p></td>
7687</tr> 7687</tr>
7688<tr class="question"> 7688<tr class="question">
7689<td align="left" valign="top"> 7689<td align="left" valign="top">
7690<a name="tools.listall"></a><a name="idm86684208"></a><p><b>18.4.2.</b></p> 7690<a name="tools.listall"></a><a name="idm88199728"></a><p><b>18.4.2.</b></p>
7691</td> 7691</td>
7692<td align="left" valign="top"><p>How do I get a list of all available 7692<td align="left" valign="top"><p>How do I get a list of all available
7693 tools?</p></td> 7693 tools?</p></td>
7694</tr> 7694</tr>
7695<tr class="answer"> 7695<tr class="answer">
7696<td align="left" valign="top"></td> 7696<td align="left" valign="top"></td>
7697<td align="left" valign="top"><p>TODO</p></td> 7697<td align="left" valign="top"><p>TODO</p></td>
7698</tr> 7698</tr>
7699<tr class="question"> 7699<tr class="question">
7700<td align="left" valign="top"> 7700<td align="left" valign="top">
7701<a name="tools.used"></a><a name="idm86683184"></a><p><b>18.4.3.</b></p> 7701<a name="tools.used"></a><a name="idm88198704"></a><p><b>18.4.3.</b></p>
7702</td> 7702</td>
7703<td align="left" valign="top"><p>How can I get a list of all the tools that a 7703<td align="left" valign="top"><p>How can I get a list of all the tools that a
7704 package is using while being built? I want to know whether it 7704 package is using while being built? I want to know whether it
7705 uses sed or not.</p></td> 7705 uses sed or not.</p></td>
7706</tr> 7706</tr>
7707<tr class="answer"> 7707<tr class="answer">
7708<td align="left" valign="top"></td> 7708<td align="left" valign="top"></td>
7709<td align="left" valign="top"><p>Currently, you can't. (TODO: But I want to be able 7709<td align="left" valign="top"><p>Currently, you can't. (TODO: But I want to be able
7710 to do it.)</p></td> 7710 to do it.)</p></td>
7711</tr> 7711</tr>
7712</tbody> 7712</tbody>
7713</table> 7713</table>
7714</div> 7714</div>
@@ -8385,42 +8385,43 @@ FETCH_MESSAGE+= "manually from "${MASTER @@ -8385,42 +8385,43 @@ FETCH_MESSAGE+= "manually from "${MASTER
8385</div> 8385</div>
8386<div class="sect2"> 8386<div class="sect2">
8387<div class="titlepage"><div><div><h3 class="title"> 8387<div class="titlepage"><div><div><h3 class="title">
8388<a name="modified-distfiles-same-name"></a>19.2.2. How to handle modified distfiles with the 'old' name</h3></div></div></div> 8388<a name="modified-distfiles-same-name"></a>19.2.2. How to handle modified distfiles with the 'old' name</h3></div></div></div>
8389<p>Sometimes authors of a software package make some 8389<p>Sometimes authors of a software package make some
8390 modifications after the software was released, and they put up a 8390 modifications after the software was released, and they put up a
8391 new distfile without changing the package's version number. If a 8391 new distfile without changing the package's version number. If a
8392 package is already in pkgsrc at that time, the checksum will 8392 package is already in pkgsrc at that time, the checksum will
8393 no longer match. The contents of the new distfile should be 8393 no longer match. The contents of the new distfile should be
8394 compared against the old one before changing anything, to make 8394 compared against the old one before changing anything, to make
8395 sure the distfile was really updated on purpose, and that 8395 sure the distfile was really updated on purpose, and that
8396 no trojan horse or so crept in. 8396 no trojan horse or so crept in.
8397 Please mention that the distfiles were compared and what was found 8397 Please mention that the distfiles were compared and what was found
8398 in your commit message. 8398 in your commit message.</p>
8399 Then, the correct way to work around this is to 8399<p>Then, the correct way to work around this is to
8400 set <code class="varname">DIST_SUBDIR</code> to a unique directory name, 8400 set <code class="varname">DIST_SUBDIR</code> to a unique directory name,
8401 usually based on <code class="varname">PKGNAME_NOREV</code>. All 8401 usually based on <code class="varname">PKGNAME_NOREV</code>. All
8402 <code class="varname">DISTFILES</code> and 8402 <code class="varname">DISTFILES</code> and
8403 <code class="varname">PATCHFILES</code> for this package will be put in that 8403 <code class="varname">PATCHFILES</code> for this package will be put in that
8404 subdirectory of the local distfiles directory. 8404 subdirectory of the local distfiles directory.
8405 (See <a class="xref" href="#bumping-pkgrevision" title="19.1.11. How to handle incrementing versions when fixing an existing package">Section 19.1.11, &#8220;How to handle incrementing versions when fixing an existing package&#8221;</a> for more details.) 8405 (See <a class="xref" href="#bumping-pkgrevision" title="19.1.11. How to handle incrementing versions when fixing an existing package">Section 19.1.11, &#8220;How to handle incrementing versions when fixing an existing package&#8221;</a> for more details.)
8406 In case this 8406 In case this
8407 happens more often, <code class="varname">PKGNAME</code> can be used (thus 8407 happens more often, <code class="varname">PKGNAME</code> can be used (thus
8408 including the <code class="filename">nbX</code> suffix) or a date stamp 8408 including the <code class="filename">nbX</code> suffix) or a date stamp
8409 can be appended, like <code class="varname">${PKGNAME_NOREV}-YYYYMMDD</code>. 8409 can be appended, like <code class="varname">${PKGNAME_NOREV}-YYYYMMDD</code>.</p>
8410 Do not forget regenerating the <code class="filename">distinfo</code> file 8410<p><code class="varname">DIST_SUBDIR</code> is also used when a distfile's name does not contain a version and the distfile is apt to change. In cases where the likelihood of this is very small, <code class="varname">DIST_SUBDIR</code> might not be required. Additionally, <code class="varname">DIST_SUBDIR</code> must not be removed unless the distfile name changes, even if a package is being moved or renamed.</p>
 8411<p>Do not forget regenerating the <code class="filename">distinfo</code> file
8411 after that, since it contains the <code class="varname">DIST_SUBDIR</code> 8412 after that, since it contains the <code class="varname">DIST_SUBDIR</code>
8412 path in the filenames. 8413 path in the filenames.
8413 Also increase the PKGREVISION if the installed package is different. 8414 Also, increase the PKGREVISION if the installed package is different.
8414 Furthermore, a mail to the package's authors seems appropriate 8415 Furthermore, a mail to the package's authors seems appropriate
8415 telling them that changing distfiles after releases without 8416 telling them that changing distfiles after releases without
8416 changing the file names is not good practice.</p> 8417 changing the file names is not good practice.</p>
8417</div> 8418</div>
8418</div> 8419</div>
8419<div class="sect1"> 8420<div class="sect1">
8420<div class="titlepage"><div><div><h2 class="title" style="clear: both"> 8421<div class="titlepage"><div><div><h2 class="title" style="clear: both">
8421<a name="fixes.configure"></a>19.3. Fixing problems in the <span class="emphasis"><em>configure</em></span> phase</h2></div></div></div> 8422<a name="fixes.configure"></a>19.3. Fixing problems in the <span class="emphasis"><em>configure</em></span> phase</h2></div></div></div>
8422<div class="sect2"> 8423<div class="sect2">
8423<div class="titlepage"><div><div><h3 class="title"> 8424<div class="titlepage"><div><div><h3 class="title">
8424<a name="fixes.libtool"></a>19.3.1. Shared libraries - libtool</h3></div></div></div> 8425<a name="fixes.libtool"></a>19.3.1. Shared libraries - libtool</h3></div></div></div>
8425<p>pkgsrc supports many different machines, with different 8426<p>pkgsrc supports many different machines, with different
8426 object formats like a.out and ELF, and varying abilities to do 8427 object formats like a.out and ELF, and varying abilities to do
@@ -9403,28 +9404,28 @@ PERL5_PACKLIST= auto/Pg/.packlist @@ -9403,28 +9404,28 @@ PERL5_PACKLIST= auto/Pg/.packlist
9403<li class="listitem"><p>Ensure that the PLIST does not remove the shared icon 9404<li class="listitem"><p>Ensure that the PLIST does not remove the shared icon
9404 directories from the <code class="filename">share/icons/hicolor</code> 9405 directories from the <code class="filename">share/icons/hicolor</code>
9405 hierarchy because they will be handled automatically.</p></li> 9406 hierarchy because they will be handled automatically.</p></li>
9406</ol></div> 9407</ol></div>
9407<p>The best way to verify that the PLIST is correct with 9408<p>The best way to verify that the PLIST is correct with
9408 respect to the last two points is to regenerate it using 9409 respect to the last two points is to regenerate it using
9409 <span class="command"><strong>make print-PLIST</strong></span>.</p> 9410 <span class="command"><strong>make print-PLIST</strong></span>.</p>
9410</div> 9411</div>
9411<div class="sect2"> 9412<div class="sect2">
9412<div class="titlepage"><div><div><h3 class="title"> 9413<div class="titlepage"><div><div><h3 class="title">
9413<a name="desktop-files"></a>19.6.20. Packages installing desktop files</h3></div></div></div> 9414<a name="desktop-files"></a>19.6.20. Packages installing desktop files</h3></div></div></div>
9414<p>If a package installs <code class="filename">.desktop</code> files 9415<p>If a package installs <code class="filename">.desktop</code> files
9415 under <code class="filename">share/applications</code> and these include 9416 under <code class="filename">share/applications</code> and these include
9416 MIME information, you need to take extra steps to ensure that they 9417 MIME information (MimeType key), you need to take extra steps to
9417 are registered into the MIME database:</p> 9418 ensure that they are registered into the MIME database:</p>
9418<div class="orderedlist"><ol class="orderedlist" type="1"> 9419<div class="orderedlist"><ol class="orderedlist" type="1">
9419<li class="listitem"><p>Include 9420<li class="listitem"><p>Include
9420 <code class="filename">../../sysutils/desktop-file-utils/desktopdb.mk</code>.</p></li> 9421 <code class="filename">../../sysutils/desktop-file-utils/desktopdb.mk</code>.</p></li>
9421<li class="listitem"><p>Check the PLIST and remove the entry that refers to the 9422<li class="listitem"><p>Check the PLIST and remove the entry that refers to the
9422 <code class="filename">share/applications/mimeinfo.cache</code> file. 9423 <code class="filename">share/applications/mimeinfo.cache</code> file.
9423 It will be handled automatically.</p></li> 9424 It will be handled automatically.</p></li>
9424</ol></div> 9425</ol></div>
9425<p>The best way to verify that the PLIST is correct with 9426<p>The best way to verify that the PLIST is correct with
9426 respect to the last point is to regenerate it using <span class="command"><strong>make 9427 respect to the last point is to regenerate it using <span class="command"><strong>make
9427 print-PLIST</strong></span>.</p> 9428 print-PLIST</strong></span>.</p>
9428</div> 9429</div>
9429</div> 9430</div>
9430<div class="sect1"> 9431<div class="sect1">
@@ -9737,27 +9738,27 @@ place.

 @@ -9737,27 +9738,27 @@ place.

9737</li> 9738</li>
9738</ol></div> 9739</ol></div>
9739</div> 9740</div>
9740</div> 9741</div>
9741<div class="chapter"> 9742<div class="chapter">
9742<div class="titlepage"><div><div><h2 class="title"> 9743<div class="titlepage"><div><div><h2 class="title">
9743<a name="devfaq"></a>Chapter 22. Frequently Asked Questions</h2></div></div></div> 9744<a name="devfaq"></a>Chapter 22. Frequently Asked Questions</h2></div></div></div>
9744<p>This section contains the answers to questions that may 9745<p>This section contains the answers to questions that may
9745 arise when you are writing a package. If you don't find your 9746 arise when you are writing a package. If you don't find your
9746 question answered here, first have a look in the other chapters, 9747 question answered here, first have a look in the other chapters,
9747 and if you still don't have the answer, ask on the 9748 and if you still don't have the answer, ask on the
9748 <code class="literal">pkgsrc-users</code> mailing list.</p> 9749 <code class="literal">pkgsrc-users</code> mailing list.</p>
9749<div class="qandaset"> 9750<div class="qandaset">
9750<a name="idm88223536"></a><dl> 9751<a name="idm87648304"></a><dl>
9751<dt>22.1. <a href="#devfaq.makeflags">What is the difference between 9752<dt>22.1. <a href="#devfaq.makeflags">What is the difference between
9752 MAKEFLAGS, .MAKEFLAGS and 9753 MAKEFLAGS, .MAKEFLAGS and
9753 MAKE_FLAGS?</a> 9754 MAKE_FLAGS?</a>
9754</dt> 9755</dt>
9755<dt>22.2. <a href="#devfaq.make">What is the difference between 9756<dt>22.2. <a href="#devfaq.make">What is the difference between
9756 MAKE, GMAKE and 9757 MAKE, GMAKE and
9757 MAKE_PROGRAM?</a> 9758 MAKE_PROGRAM?</a>
9758</dt> 9759</dt>
9759<dt>22.3. <a href="#devfaq.cc">What is the difference between 9760<dt>22.3. <a href="#devfaq.cc">What is the difference between
9760 CC, PKG_CC and 9761 CC, PKG_CC and
9761 PKGSRC_COMPILER?</a> 9762 PKGSRC_COMPILER?</a>
9762</dt> 9763</dt>
9763<dt>22.4. <a href="#devfaq.bl3flags">What is the difference between 9764<dt>22.4. <a href="#devfaq.bl3flags">What is the difference between
@@ -9782,157 +9783,157 @@ place.

 @@ -9782,157 +9783,157 @@ place.

9782</dt> 9783</dt>
9783<dt>22.9. <a href="#devfaq.too-much-time">I have a little time to kill. What shall I 9784<dt>22.9. <a href="#devfaq.too-much-time">I have a little time to kill. What shall I
9784do?</a> 9785do?</a>
9785</dt> 9786</dt>
9786</dl> 9787</dl>
9787<table border="0" style="width: 100%;"> 9788<table border="0" style="width: 100%;">
9788<colgroup> 9789<colgroup>
9789<col align="left" width="1%"> 9790<col align="left" width="1%">
9790<col> 9791<col>
9791</colgroup> 9792</colgroup>
9792<tbody> 9793<tbody>
9793<tr class="question"> 9794<tr class="question">
9794<td align="left" valign="top"> 9795<td align="left" valign="top">
9795<a name="devfaq.makeflags"></a><a name="idm88223152"></a><p><b>22.1.</b></p> 9796<a name="devfaq.makeflags"></a><a name="idm87647920"></a><p><b>22.1.</b></p>
9796</td> 9797</td>
9797<td align="left" valign="top"><p>What is the difference between 9798<td align="left" valign="top"><p>What is the difference between
9798 <code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and 9799 <code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and
9799 <code class="varname">MAKE_FLAGS</code>?</p></td> 9800 <code class="varname">MAKE_FLAGS</code>?</p></td>
9800</tr> 9801</tr>
9801<tr class="answer"> 9802<tr class="answer">
9802<td align="left" valign="top"></td> 9803<td align="left" valign="top"></td>
9803<td align="left" valign="top"><p><code class="varname">MAKEFLAGS</code> are the flags passed 9804<td align="left" valign="top"><p><code class="varname">MAKEFLAGS</code> are the flags passed
9804 to the pkgsrc-internal invocations of <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a>, while 9805 to the pkgsrc-internal invocations of <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a>, while
9805 <code class="varname">MAKE_FLAGS</code> are the flags that are passed to 9806 <code class="varname">MAKE_FLAGS</code> are the flags that are passed to
9806 the <code class="varname">MAKE_PROGRAM</code> when building the 9807 the <code class="varname">MAKE_PROGRAM</code> when building the
9807 package. [FIXME: What is .MAKEFLAGS for?]</p></td> 9808 package. [FIXME: What is .MAKEFLAGS for?]</p></td>
9808</tr> 9809</tr>
9809<tr class="question"> 9810<tr class="question">
9810<td align="left" valign="top"> 9811<td align="left" valign="top">
9811<a name="devfaq.make"></a><a name="idm88219056"></a><p><b>22.2.</b></p> 9812<a name="devfaq.make"></a><a name="idm87643824"></a><p><b>22.2.</b></p>
9812</td> 9813</td>
9813<td align="left" valign="top"><p>What is the difference between 9814<td align="left" valign="top"><p>What is the difference between
9814 <code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and 9815 <code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and
9815 <code class="varname">MAKE_PROGRAM</code>?</p></td> 9816 <code class="varname">MAKE_PROGRAM</code>?</p></td>
9816</tr> 9817</tr>
9817<tr class="answer"> 9818<tr class="answer">
9818<td align="left" valign="top"></td> 9819<td align="left" valign="top"></td>
9819<td align="left" valign="top"><p><code class="varname">MAKE</code> is the path to the 9820<td align="left" valign="top"><p><code class="varname">MAKE</code> is the path to the
9820 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> program that is used in the pkgsrc 9821 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> program that is used in the pkgsrc
9821 infrastructure. <code class="varname">GMAKE</code> is the path to GNU 9822 infrastructure. <code class="varname">GMAKE</code> is the path to GNU
9822 Make, but you need to say <code class="varname">USE_TOOLS+=gmake</code> to 9823 Make, but you need to say <code class="varname">USE_TOOLS+=gmake</code> to
9823 use that. <code class="varname">MAKE_PROGRAM</code> is the path to the 9824 use that. <code class="varname">MAKE_PROGRAM</code> is the path to the
9824 Make program that is used for building the 9825 Make program that is used for building the
9825 package.</p></td> 9826 package.</p></td>
9826</tr> 9827</tr>
9827<tr class="question"> 9828<tr class="question">
9828<td align="left" valign="top"> 9829<td align="left" valign="top">
9829<a name="devfaq.cc"></a><a name="idm88214704"></a><p><b>22.3.</b></p> 9830<a name="devfaq.cc"></a><a name="idm87639344"></a><p><b>22.3.</b></p>
9830</td> 9831</td>
9831<td align="left" valign="top"><p>What is the difference between 9832<td align="left" valign="top"><p>What is the difference between
9832 <code class="varname">CC</code>, <code class="varname">PKG_CC</code> and 9833 <code class="varname">CC</code>, <code class="varname">PKG_CC</code> and
9833 <code class="varname">PKGSRC_COMPILER</code>?</p></td> 9834 <code class="varname">PKGSRC_COMPILER</code>?</p></td>
9834</tr> 9835</tr>
9835<tr class="answer"> 9836<tr class="answer">
9836<td align="left" valign="top"></td> 9837<td align="left" valign="top"></td>
9837<td align="left" valign="top"><p><code class="varname">CC</code> is the path to the real C 9838<td align="left" valign="top"><p><code class="varname">CC</code> is the path to the real C
9838 compiler, which can be configured by the pkgsrc user. 9839 compiler, which can be configured by the pkgsrc user.
9839 <code class="varname">PKG_CC</code> is the path to the compiler wrapper. 9840 <code class="varname">PKG_CC</code> is the path to the compiler wrapper.
9840 <code class="varname">PKGSRC_COMPILER</code> is <span class="emphasis"><em>not</em></span> a 9841 <code class="varname">PKGSRC_COMPILER</code> is <span class="emphasis"><em>not</em></span> a
9841 path to a compiler, but the type of compiler that should be 9842 path to a compiler, but the type of compiler that should be
9842 used. See <code class="filename">mk/compiler.mk</code> for more 9843 used. See <code class="filename">mk/compiler.mk</code> for more
9843 information about the latter variable.</p></td> 9844 information about the latter variable.</p></td>
9844</tr> 9845</tr>
9845<tr class="question"> 9846<tr class="question">
9846<td align="left" valign="top"> 9847<td align="left" valign="top">
9847<a name="devfaq.bl3flags"></a><a name="idm88210480"></a><p><b>22.4.</b></p> 9848<a name="devfaq.bl3flags"></a><a name="idm87635248"></a><p><b>22.4.</b></p>
9848</td> 9849</td>
9849<td align="left" valign="top"><p>What is the difference between 9850<td align="left" valign="top"><p>What is the difference between
9850 <code class="varname">BUILDLINK_LDFLAGS</code>, 9851 <code class="varname">BUILDLINK_LDFLAGS</code>,
9851 <code class="varname">BUILDLINK_LDADD</code> and 9852 <code class="varname">BUILDLINK_LDADD</code> and
9852 <code class="varname">BUILDLINK_LIBS</code>?</p></td> 9853 <code class="varname">BUILDLINK_LIBS</code>?</p></td>
9853</tr> 9854</tr>
9854<tr class="answer"> 9855<tr class="answer">
9855<td align="left" valign="top"></td> 9856<td align="left" valign="top"></td>
9856<td align="left" valign="top"><p>[FIXME]</p></td> 9857<td align="left" valign="top"><p>[FIXME]</p></td>
9857</tr> 9858</tr>
9858<tr class="question"> 9859<tr class="question">
9859<td align="left" valign="top"> 9860<td align="left" valign="top">
9860<a name="devfaq.bl3prefix"></a><a name="idm88208304"></a><p><b>22.5.</b></p> 9861<a name="devfaq.bl3prefix"></a><a name="idm87633072"></a><p><b>22.5.</b></p>
9861</td> 9862</td>
9862<td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var 9863<td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var
9863 VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span> 9864 VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span>
9864 say it's empty?</p></td> 9865 say it's empty?</p></td>
9865</tr> 9866</tr>
9866<tr class="answer"> 9867<tr class="answer">
9867<td align="left" valign="top"></td> 9868<td align="left" valign="top"></td>
9868<td align="left" valign="top"><p>For optimization reasons, some variables are only 9869<td align="left" valign="top"><p>For optimization reasons, some variables are only
9869 available in the <span class="quote">&#8220;<span class="quote">wrapper</span>&#8221;</span> phase and later. To 9870 available in the <span class="quote">&#8220;<span class="quote">wrapper</span>&#8221;</span> phase and later. To
9870 <span class="quote">&#8220;<span class="quote">simulate</span>&#8221;</span> the wrapper phase, append 9871 <span class="quote">&#8220;<span class="quote">simulate</span>&#8221;</span> the wrapper phase, append
9871 <span class="command"><strong>PKG_PHASE=wrapper</strong></span> to the above 9872 <span class="command"><strong>PKG_PHASE=wrapper</strong></span> to the above
9872 command.</p></td> 9873 command.</p></td>
9873</tr> 9874</tr>
9874<tr class="question"> 9875<tr class="question">
9875<td align="left" valign="top"> 9876<td align="left" valign="top">
9876<a name="devfaq.master_sites"></a><a name="idm88205232"></a><p><b>22.6.</b></p> 9877<a name="devfaq.master_sites"></a><a name="idm87629872"></a><p><b>22.6.</b></p>
9877</td> 9878</td>
9878<td align="left" valign="top"><p>What does 9879<td align="left" valign="top"><p>What does
9879 <code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I 9880 <code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I
9880 don't understand the <code class="literal">:=</code> inside 9881 don't understand the <code class="literal">:=</code> inside
9881 it.</p></td> 9882 it.</p></td>
9882</tr> 9883</tr>
9883<tr class="answer"> 9884<tr class="answer">
9884<td align="left" valign="top"></td> 9885<td align="left" valign="top"></td>
9885<td align="left" valign="top"><p>The <code class="literal">:=</code> is not really an 9886<td align="left" valign="top"><p>The <code class="literal">:=</code> is not really an
9886 assignment operator, like you might expect at first sight. 9887 assignment operator, like you might expect at first sight.
9887 Instead, it is a degenerate form of 9888 Instead, it is a degenerate form of
9888 <code class="literal">${LIST:<em class="replaceable"><code>old_string</code></em>=<em class="replaceable"><code>new_string</code></em>}</code>, 9889 <code class="literal">${LIST:<em class="replaceable"><code>old_string</code></em>=<em class="replaceable"><code>new_string</code></em>}</code>,
9889 which is documented in the <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> man page and which you 9890 which is documented in the <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a> man page and which you
9890 may have seen as in <code class="literal">${SRCS:.c=.o}</code>. In the 9891 may have seen as in <code class="literal">${SRCS:.c=.o}</code>. In the
9891 case of <code class="varname">MASTER_SITE_*</code>, 9892 case of <code class="varname">MASTER_SITE_*</code>,
9892 <em class="replaceable"><code>old_string</code></em> is the empty string and 9893 <em class="replaceable"><code>old_string</code></em> is the empty string and
9893 <em class="replaceable"><code>new_string</code></em> is 9894 <em class="replaceable"><code>new_string</code></em> is
9894 <code class="literal">package/</code>. That's where the 9895 <code class="literal">package/</code>. That's where the
9895 <code class="literal">:</code> and the <code class="literal">=</code> fall 9896 <code class="literal">:</code> and the <code class="literal">=</code> fall
9896 together.</p></td> 9897 together.</p></td>
9897</tr> 9898</tr>
9898<tr class="question"> 9899<tr class="question">
9899<td align="left" valign="top"> 9900<td align="left" valign="top">
9900<a name="devfaq.mailinglists"></a><a name="idm88197168"></a><p><b>22.7.</b></p> 9901<a name="devfaq.mailinglists"></a><a name="idm87613616"></a><p><b>22.7.</b></p>
9901</td> 9902</td>
9902<td align="left" valign="top"><p>Which mailing lists are there for package 9903<td align="left" valign="top"><p>Which mailing lists are there for package
9903 developers?</p></td> 9904 developers?</p></td>
9904</tr> 9905</tr>
9905<tr class="answer"> 9906<tr class="answer">
9906<td align="left" valign="top"></td> 9907<td align="left" valign="top"></td>
9907<td align="left" valign="top"><div class="variablelist"><dl class="variablelist"> 9908<td align="left" valign="top"><div class="variablelist"><dl class="variablelist">
9908<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#tech-pkg" target="_top">tech-pkg</a></span></dt> 9909<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#tech-pkg" target="_top">tech-pkg</a></span></dt>
9909<dd><p>This is a list for technical discussions related 9910<dd><p>This is a list for technical discussions related
9910 to pkgsrc development, e.g. soliciting feedback for changes to 9911 to pkgsrc development, e.g. soliciting feedback for changes to
9911 pkgsrc infrastructure, proposed new features, questions related 9912 pkgsrc infrastructure, proposed new features, questions related
9912 to porting pkgsrc to a new platform, advice for maintaining a 9913 to porting pkgsrc to a new platform, advice for maintaining a
9913 package, patches that affect many packages, help requests moved 9914 package, patches that affect many packages, help requests moved
9914 from pkgsrc-users when an infrastructure bug is found, 9915 from pkgsrc-users when an infrastructure bug is found,
9915 etc.</p></dd> 9916 etc.</p></dd>
9916<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#pkgsrc-bugs" target="_top">pkgsrc-bugs</a></span></dt> 9917<dt><span class="term"><a class="ulink" href="http://www.NetBSD.org/mailinglists/index.html#pkgsrc-bugs" target="_top">pkgsrc-bugs</a></span></dt>
9917<dd><p>All bug reports in category "pkg" sent with 9918<dd><p>All bug reports in category "pkg" sent with
9918 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?send-pr+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">send-pr</span>(1)</span></a> appear here. Please do not report your bugs here 9919 <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?send-pr+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">send-pr</span>(1)</span></a> appear here. Please do not report your bugs here
9919 directly; use one of the other mailing 9920 directly; use one of the other mailing
9920 lists.</p></dd> 9921 lists.</p></dd>
9921</dl></div></td> 9922</dl></div></td>
9922</tr> 9923</tr>
9923<tr class="question"> 9924<tr class="question">
9924<td align="left" valign="top"> 9925<td align="left" valign="top">
9925<a name="devfaq.documentation"></a><a name="idm88193328"></a><p><b>22.8.</b></p> 9926<a name="devfaq.documentation"></a><a name="idm87609904"></a><p><b>22.8.</b></p>
9926</td> 9927</td>
9927<td align="left" valign="top"><p>Where is the pkgsrc 9928<td align="left" valign="top"><p>Where is the pkgsrc
9928 documentation?</p></td> 9929 documentation?</p></td>
9929</tr> 9930</tr>
9930<tr class="answer"> 9931<tr class="answer">
9931<td align="left" valign="top"></td> 9932<td align="left" valign="top"></td>
9932<td align="left" valign="top"> 9933<td align="left" valign="top">
9933<p>There are many places where you can find 9934<p>There are many places where you can find
9934 documentation about pkgsrc:</p> 9935 documentation about pkgsrc:</p>
9935<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 9936<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
9936<li class="listitem"><p>The pkgsrc guide (this document) is a collection 9937<li class="listitem"><p>The pkgsrc guide (this document) is a collection
9937 of chapters that explain large parts of pkgsrc, but some 9938 of chapters that explain large parts of pkgsrc, but some
9938 chapters tend to be outdated. Which ones they are is hard to 9939 chapters tend to be outdated. Which ones they are is hard to
@@ -9960,27 +9961,27 @@ do? @@ -9960,27 +9961,27 @@ do?
9960 documented</span>&#8221;</span>, that is the documentation exists only in the 9961 documented</span>&#8221;</span>, that is the documentation exists only in the
9961 mind of the developer who wrote the code. To get this 9962 mind of the developer who wrote the code. To get this
9962 information, use the <span class="command"><strong>cvs annotate</strong></span> command 9963 information, use the <span class="command"><strong>cvs annotate</strong></span> command
9963 to see who has written it and ask on the 9964 to see who has written it and ask on the
9964 <code class="literal">tech-pkg</code> mailing list, so that others can 9965 <code class="literal">tech-pkg</code> mailing list, so that others can
9965 find your questions later (see above). To be sure that the 9966 find your questions later (see above). To be sure that the
9966 developer in charge reads the mail, you may CC him or 9967 developer in charge reads the mail, you may CC him or
9967 her.</p></li> 9968 her.</p></li>
9968</ul></div> 9969</ul></div>
9969</td> 9970</td>
9970</tr> 9971</tr>
9971<tr class="question"> 9972<tr class="question">
9972<td align="left" valign="top"> 9973<td align="left" valign="top">
9973<a name="devfaq.too-much-time"></a><a name="idm88186800"></a><p><b>22.9.</b></p> 9974<a name="devfaq.too-much-time"></a><a name="idm87603376"></a><p><b>22.9.</b></p>
9974</td> 9975</td>
9975<td align="left" valign="top"><p>I have a little time to kill. What shall I 9976<td align="left" valign="top"><p>I have a little time to kill. What shall I
9976do?</p></td> 9977do?</p></td>
9977</tr> 9978</tr>
9978<tr class="answer"> 9979<tr class="answer">
9979<td align="left" valign="top"></td> 9980<td align="left" valign="top"></td>
9980<td align="left" valign="top"> 9981<td align="left" valign="top">
9981<p>This is not really an FAQ yet, but here's the answer 9982<p>This is not really an FAQ yet, but here's the answer
9982anyway.</p> 9983anyway.</p>
9983<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 9984<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
9984<li class="listitem"><p>Run <span class="command"><strong>pkg_chk -N</strong></span> (from the 9985<li class="listitem"><p>Run <span class="command"><strong>pkg_chk -N</strong></span> (from the
9985 <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkg_chk/README.html" target="_top"><code class="filename">pkgtools/pkg_chk</code></a> package). It 9986 <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkg_chk/README.html" target="_top"><code class="filename">pkgtools/pkg_chk</code></a> package). It
9986 will tell you about newer versions of installed packages that are 9987 will tell you about newer versions of installed packages that are

cvs diff -r1.161 -r1.162 pkgsrc/doc/pkgsrc.txt (expand / switch to unified diff)

--- pkgsrc/doc/pkgsrc.txt 2013/05/05 21:43:39 1.161
+++ pkgsrc/doc/pkgsrc.txt 2013/05/06 01:36:22 1.162
@@ -7055,38 +7055,47 @@ FETCH_MESSAGE= "Please download the fil @@ -7055,38 +7055,47 @@ FETCH_MESSAGE= "Please download the fil
7055FETCH_MESSAGE+= " "${DISTFILES:Q} 7055FETCH_MESSAGE+= " "${DISTFILES:Q}
7056FETCH_MESSAGE+= "manually from "${MASTER_SITES:Q}"." 7056FETCH_MESSAGE+= "manually from "${MASTER_SITES:Q}"."
7057 7057
7058 7058
705919.2.2. How to handle modified distfiles with the 'old' name 705919.2.2. How to handle modified distfiles with the 'old' name
7060 7060
7061Sometimes authors of a software package make some modifications after the 7061Sometimes authors of a software package make some modifications after the
7062software was released, and they put up a new distfile without changing the 7062software was released, and they put up a new distfile without changing the
7063package's version number. If a package is already in pkgsrc at that time, the 7063package's version number. If a package is already in pkgsrc at that time, the
7064checksum will no longer match. The contents of the new distfile should be 7064checksum will no longer match. The contents of the new distfile should be
7065compared against the old one before changing anything, to make sure the 7065compared against the old one before changing anything, to make sure the
7066distfile was really updated on purpose, and that no trojan horse or so crept 7066distfile was really updated on purpose, and that no trojan horse or so crept
7067in. Please mention that the distfiles were compared and what was found in your 7067in. Please mention that the distfiles were compared and what was found in your
7068commit message. Then, the correct way to work around this is to set DIST_SUBDIR 7068commit message.
7069to a unique directory name, usually based on PKGNAME_NOREV. All DISTFILES and 7069
7070PATCHFILES for this package will be put in that subdirectory of the local 7070Then, the correct way to work around this is to set DIST_SUBDIR to a unique
7071distfiles directory. (See Section 19.1.11, "How to handle incrementing versions 7071directory name, usually based on PKGNAME_NOREV. All DISTFILES and PATCHFILES
7072when fixing an existing package" for more details.) In case this happens more 7072for this package will be put in that subdirectory of the local distfiles
7073often, PKGNAME can be used (thus including the nbX suffix) or a date stamp can 7073directory. (See Section 19.1.11, "How to handle incrementing versions when
7074be appended, like ${PKGNAME_NOREV}-YYYYMMDD. Do not forget regenerating the 7074fixing an existing package" for more details.) In case this happens more often,
7075distinfo file after that, since it contains the DIST_SUBDIR path in the 7075PKGNAME can be used (thus including the nbX suffix) or a date stamp can be
7076filenames. Also increase the PKGREVISION if the installed package is different. 7076appended, like ${PKGNAME_NOREV}-YYYYMMDD.
7077Furthermore, a mail to the package's authors seems appropriate telling them 7077
7078that changing distfiles after releases without changing the file names is not 7078DIST_SUBDIR is also used when a distfile's name does not contain a version and
7079good practice. 7079the distfile is apt to change. In cases where the likelihood of this is very
 7080small, DIST_SUBDIR might not be required. Additionally, DIST_SUBDIR must not be
 7081removed unless the distfile name changes, even if a package is being moved or
 7082renamed.
 7083
 7084Do not forget regenerating the distinfo file after that, since it contains the
 7085DIST_SUBDIR path in the filenames. Also, increase the PKGREVISION if the
 7086installed package is different. Furthermore, a mail to the package's authors
 7087seems appropriate telling them that changing distfiles after releases without
 7088changing the file names is not good practice.
7080 7089
708119.3. Fixing problems in the configure phase 709019.3. Fixing problems in the configure phase
7082 7091
708319.3.1. Shared libraries - libtool 709219.3.1. Shared libraries - libtool
7084 7093
7085pkgsrc supports many different machines, with different object formats like 7094pkgsrc supports many different machines, with different object formats like
7086a.out and ELF, and varying abilities to do shared library and dynamic loading 7095a.out and ELF, and varying abilities to do shared library and dynamic loading
7087at all. To accompany this, varying commands and options have to be passed to 7096at all. To accompany this, varying commands and options have to be passed to
7088the compiler, linker, etc. to get the Right Thing, which can be pretty annoying 7097the compiler, linker, etc. to get the Right Thing, which can be pretty annoying
7089especially if you don't have all the machines at your hand to test things. The 7098especially if you don't have all the machines at your hand to test things. The
7090devel/libtool pkg can help here, as it just "knows" how to build both static 7099devel/libtool pkg can help here, as it just "knows" how to build both static
7091and dynamic libraries from a set of source files, thus being 7100and dynamic libraries from a set of source files, thus being
7092platform-independent. 7101platform-independent.
@@ -7823,28 +7832,28 @@ that the cache database is rebuilt: @@ -7823,28 +7832,28 @@ that the cache database is rebuilt:
7823 1. Include ../../graphics/hicolor-icon-theme/buildlink3.mk. 7832 1. Include ../../graphics/hicolor-icon-theme/buildlink3.mk.
7824 7833
7825 2. Check the PLIST and remove the entry that refers to the theme cache. 7834 2. Check the PLIST and remove the entry that refers to the theme cache.
7826 7835
7827 3. Ensure that the PLIST does not remove the shared icon directories from the 7836 3. Ensure that the PLIST does not remove the shared icon directories from the
7828 share/icons/hicolor hierarchy because they will be handled automatically. 7837 share/icons/hicolor hierarchy because they will be handled automatically.
7829 7838
7830The best way to verify that the PLIST is correct with respect to the last two 7839The best way to verify that the PLIST is correct with respect to the last two
7831points is to regenerate it using make print-PLIST. 7840points is to regenerate it using make print-PLIST.
7832 7841
783319.6.20. Packages installing desktop files 784219.6.20. Packages installing desktop files
7834 7843
7835If a package installs .desktop files under share/applications and these include 7844If a package installs .desktop files under share/applications and these include
7836MIME information, you need to take extra steps to ensure that they are 7845MIME information (MimeType key), you need to take extra steps to ensure that
7837registered into the MIME database: 7846they are registered into the MIME database:
7838 7847
7839 1. Include ../../sysutils/desktop-file-utils/desktopdb.mk. 7848 1. Include ../../sysutils/desktop-file-utils/desktopdb.mk.
7840 7849
7841 2. Check the PLIST and remove the entry that refers to the share/applications/ 7850 2. Check the PLIST and remove the entry that refers to the share/applications/
7842 mimeinfo.cache file. It will be handled automatically. 7851 mimeinfo.cache file. It will be handled automatically.
7843 7852
7844The best way to verify that the PLIST is correct with respect to the last point 7853The best way to verify that the PLIST is correct with respect to the last point
7845is to regenerate it using make print-PLIST. 7854is to regenerate it using make print-PLIST.
7846 7855
784719.7. Marking packages as having problems 785619.7. Marking packages as having problems
7848 7857
7849In some cases one does not have the time to solve a problem immediately. In 7858In some cases one does not have the time to solve a problem immediately. In
7850this case, one can plainly mark a package as broken. For this, one just sets 7859this case, one can plainly mark a package as broken. For this, one just sets