Random collection of pbuilder tricks
How to include local packages in the build
This is needed when you have to build and upload both a library, then a package depending on it:
- Create a directory for your dependencies (say /path/to/the/dir/deps)
Add this to the configuration of pbuilder:
OTHERMIRRORSITE="deb file:///path/to/the/dir/deps ./" BINDMOUNTS="/path/to/the/dir/deps" HOOKDIR="/path/to/hook/dir"
- create your base.tgz or update with --override-config so pbuilder picks up the sources.list changes
put a file like D05deps to your $HOOKDIR, make it executable and put this in there:
(cd /path/to/the/dir/deps; apt-ftparchive packages . > Packages) apt-get update
- build the library
- copy the resulting debs into /path/to/the/dir/deps
- build the application
Next time you start with step 5 :-).