bulk build

From NetBSD Wiki

Jump to: navigation, search

Introduction

The bulk build framework allows a pkgsrc user to create binary packages for all source packages at once, so that they can be used without the need to compile everything on each machine.

Preparation

You need:

  • A copy of pkgsrc (may be read-only),
  • About 10 GB disk space for the distfiles,
  • About 5 GB disk space for the binary packages,
  • About 5 GB disk space for the log files,
  • Much time (plan at least one week).

A bulk build works as follows:

  • First, a database of all the pkgsrc packages is generated. For each package, it contains the package name, package version and the dependencies on other packages.
  • Second, all packages are ordered so that the packages without any dependencies are built first, and then the more complicated packages follow.
  • Each package from the above sorted list is built.
  • After building all packages, a report is generated.

You need some distinct directories to do a bulk build:

  • PKGSRCDIR (read-only) contains the pkgsrc files,
  • DISTDIR (read-write) contains the distfiles,
  • BULKFILESDIR (read-write) contains the bulk database and the log files,
  • REPORTS_DIR (read-write) contains the bulk reports.
Personal tools