Diff for /wikisrc/pkgsrc/frequently_asked_questions_from_pkgsrc_developers.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/20 20:28:27 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 **Contents**  **Contents**
   
 [[!toc levels=2]]  [[!toc levels=2]]
   
 #   Questions & Answers  #   Questions & Answers
   
 ##   How can I get a list of all [[basics/make]] variables that are used by pkgsrc?  ##   How can I get a list of all [[basics/make]] variables that are used by pkgsrc? 
   
   
 That's difficult. But you can get a very good approximation by changing to a package directory and running the following command:  That's difficult. But you can get a very good approximation by changing to a package directory and running the following command: 
          
          
     make -dv show-var VARNAME=VARNAME \      make -dv show-var VARNAME=VARNAME \
     | sed -n 's,^Global:\([^ ]*\) =.*,\1,p' \      | sed -n 's,^Global:\([^ ]*\) =.*,\1,p' \
     | sed 's,\..*,.*,' \      | sed 's,\..*,.*,' \
     | sort -u \      | sort -u \
     | grep ^\[A-Z\] \      | grep ^\[A-Z\] \
     | less      | less
          
   
 Another possibility is to run bmake show-all. This will list many (but not all) variables.  Another possibility is to run bmake show-all. This will list many (but not all) variables. 
   
 If you need more information about a specific variable, run bmake help topic=_VARNAME_ or have a look at [pkglint's variable definition file](http://cvsweb.de.netbsd.org/cgi-bin/cvsweb.cgi/pkgsrc/pkgtools/pkglint/files/makevars.map?rev=HEAD)  If you need more information about a specific variable, run bmake help topic=_VARNAME_ or have a look at [pkglint's variable definition file](http://cvsweb.de.netbsd.org/cgi-bin/cvsweb.cgi/pkgsrc/pkgtools/pkglint/files/makevars.map?rev=HEAD)
   
   
 ##   When patching a GNU-style configure script, where should I add changes?  ##   When patching a GNU-style configure script, where should I add changes? 
   
 If you want your changes to override everything else, then look for "ac_config_files=" and put it somewhere before that line.  If you want your changes to override everything else, then look for "ac_config_files=" and put it somewhere before that line. 
   
 ##   I'm going to make incompatible changes to pkgsrc. Where should I document it?  ##   I'm going to make incompatible changes to pkgsrc. Where should I document it? 
   
 In the file doc/CHANGES-*.  In the file doc/CHANGES-*. 
   
 ##   What's the difference between ${TEST}, test and [?  ##   What's the difference between ${TEST}, test and [? 
   
 There is practically no difference. All the standard options are supported on all platforms. See also [[pkgsrc/The pkgsrc portability guide#test]].  There is practically no difference. All the standard options are supported on all platforms. See also [[pkgsrc/The pkgsrc portability guide#test]]. 
   
 #   See also  #   See also 
   
   * [http://www.netbsd.org/Documentation/pkgsrc/devfaq.html](http://www.netbsd.org/Documentation/pkgsrc/devfaq.html)    * [http://www.netbsd.org/Documentation/pkgsrc/devfaq.html](http://www.netbsd.org/Documentation/pkgsrc/devfaq.html)
   

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb