File:  [NetBSD Developer Wiki] / wikisrc / pkgsrc / frequently_asked_questions_from_pkgsrc_developers.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Sun Nov 20 20:28:27 2011 UTC (11 years, 10 months ago) by mspo
Branches: MAIN
CVS tags: HEAD
import a bunch of pkgsrc articles from the old pkgsrc.se wiki

**Contents**

[[!toc levels=2]]

#   Questions & Answers

##   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: 
    
    
    make -dv show-var VARNAME=VARNAME \
    | sed -n 's,^Global:\([^ ]*\) =.*,\1,p' \
    | sed 's,\..*,.*,' \
    | sort -u \
    | grep ^\[A-Z\] \
    | less
    

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)


##   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. 

##   I'm going to make incompatible changes to pkgsrc. Where should I document it? 

In the file doc/CHANGES-*. 

##   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]]. 

#   See also 

  * [http://www.netbsd.org/Documentation/pkgsrc/devfaq.html](http://www.netbsd.org/Documentation/pkgsrc/devfaq.html)


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