Howto create a package that contains the build dependencies of the package you want to test:
Using equivs
- Download the source package of the package you want to test:
$ apt-get source [packagename]
- Create a dummy package:
$ equivs-control [packagename]-builddep
- In the file [packagename]-builddep do the following:
- Set the field Package to [packagename]-builddep
- Set the field Version to the version of the package
- Copy the Build-Depends lines from debian/control to the Depends section
- Change the word Build-Depends to Depends
- Build the *.deb file:
$ equivs-build [packagename]-builddep
- Add the package to the list of known packages:
$ sudo dpkg -i *.deb
- Install the dependencies:
$ sudo aptitude install [packagename]-builddep
Using devscripts
Alternative: mk-build-deps and then continue from step 5.