Diff for /wikisrc/tutorials/pkgsrc/pbulk.mdwn between versions 1.2 and 1.3

version 1.2, 2011/11/01 21:34:18 version 1.3, 2011/11/01 21:50:56
Line 14  This documentation is based on the [pbul Line 14  This documentation is based on the [pbul
 These are the prerequisites needed by *pbulk*:  These are the prerequisites needed by *pbulk*:
   
 * A *pkgsrc* source tree  * A *pkgsrc* source tree
 * A *src* source tree  * Possibly a *src* source tree, only some rare packages needs it
 * Possibly (not mandatory) a *xsrc* source tree  
 * Possibly (not mandatory) a tool like *misc/screen* as the full build process can takes a **very** long time.  * Possibly (not mandatory) a tool like *misc/screen* as the full build process can takes a **very** long time.
   
 For example, let's say you'd want to regularly build *pkgsrc-2011Q3* packages for *NetBSD 5.1* on your build box, you would prepare the following:  For example, let's say you'd want to regularly build *pkgsrc-2011Q3* packages for *NetBSD 5.1* on your build box, you would prepare the following:
   
         # cd /usr          # cd /usr
         # cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot co -rnetbsd-5-1  
         # cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot co -rpkgsrc-2011Q3          # cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot co -rpkgsrc-2011Q3
   
 And get sure those are always up-to-date by adding the following to a *crontab*:  Avoid automatic update of *pkgsrc* tree (cron or such), if you're in the middle of a build, it could lead to unfortunate results.
   
         30 1 * * * cd /usr/pkgsrc && /usr/bin/cvs up -Pd >/dev/null 2>&1  
         00 2 * * * cd /usr/src && /usr/bin/cvs up -Pd >/dev/null 2>&1  
   
 ### Prepare a chroot  ### Prepare a chroot
   
Line 88  It is now time to bootstrap (yes, even o Line 83  It is now time to bootstrap (yes, even o
         # ./bootstrap --prefix=/usr/pkg_bulk --pkgdbdir=/usr/pkg_bulk/.pkgdb          # ./bootstrap --prefix=/usr/pkg_bulk --pkgdbdir=/usr/pkg_bulk/.pkgdb
         # rm -rf work          # rm -rf work
   
   Add the line:
   
           PACKAGES=       /packages
   
   to *pbulk*'s prefix *mk.conf* (*/usr/pkg_bulk/etc/mk.conf*).
   
 Then install *pbulk* itself on this newly created separate prefix:  Then install *pbulk* itself on this newly created separate prefix:
   
         # cd /usr/pkgsrc/pkgtools/pbulk          # cd /usr/pkgsrc/pkgtools/pbulk
Line 115  some parameters you should modify to cus Line 116  some parameters you should modify to cus
         # [...]          # [...]
         make=/usr/bin/make # must be modified on NetBSD !          make=/usr/bin/make # must be modified on NetBSD !
   
   Also, in order to avoid hangs, it might me a good idea to add the following to the top of *pbulk.conf*
   
           ulimit -t 1800 # set the limit on CPU time (in seconds)
           ulimit -v 2097152 # limits process address space
   
 ### Configuring the build  ### Configuring the build
   
 Last but not least, you should configure your */etc/mk.conf* (in the *chroot* !).  Last but not least, you should configure your */etc/mk.conf* (in the *chroot* !).
Line 127  Here's an example of what we use at [Net Line 133  Here's an example of what we use at [Net
   
         FAILOVER_FETCH=         yes          FAILOVER_FETCH=         yes
   
         X11_TYPE=               modular  
   
         SKIP_LICENSE_CHECK=             yes          SKIP_LICENSE_CHECK=             yes
         ALLOW_VULNERABLE_PACKAGES=      yes          ALLOW_VULNERABLE_PACKAGES=      yes
   
         PKG_DEVELOPER?=         yes          PKG_DEVELOPER?=         yes
   
           # site specific changes
   
         PKG_OPTIONS.irssi=      perl inet6          PKG_OPTIONS.irssi=      perl inet6
         PKG_OPTIONS.mplayer=    oss          PKG_OPTIONS.mplayer=    oss
   
Line 142  Here's an example of what we use at [Net Line 148  Here's an example of what we use at [Net
         PKG_OPTIONS.dovecot=    ssl ldap dovecot-sieve dovecot-managesieve          PKG_OPTIONS.dovecot=    ssl ldap dovecot-sieve dovecot-managesieve
         PKG_OPTIONS.nagios-nrpe=ssl tcpwrappers          PKG_OPTIONS.nagios-nrpe=ssl tcpwrappers
   
           X11_TYPE=               modular
   
 ### Running the build  ### Running the build
   
 Now that everything's in place, we can fire up the build from the *chroot* using  Now that everything's in place, we can fire up the build from the *chroot* using
Line 160  If the build is stopped, it is possible  Line 168  If the build is stopped, it is possible 
   
 If you'd like to restart the build to retry building some failing packages, **empty** */meta/error* (don't delete it):  If you'd like to restart the build to retry building some failing packages, **empty** */meta/error* (don't delete it):
   
         # cat > /meta/error << EOF          # printf "" > /meta/error
         EOF  
   
 If you'd like to rebuild a single package, use the *bulkbuild-rebuild* command followed by the package name.  If you'd like to rebuild a single package, use the *bulkbuild-rebuild* command followed by the package name.

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


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