Testing Changes to `dpkg-gencontrol` ==================================== Your patched dpkg 1.16.4 source should be in `dpkg-1.16.4/`. Make and enter the source package directory: $ mkdir foo-1.0 $ cd foo-1.0 Make the metadata directory, package build directory, and control directory: $ mkdir -p debian/tmp/DEBIAN Write a changelog file: $ cat > debian/changelog < foo (1.0) UNRELEASED; urgency=low > > * Initial release. (Closes: #XXXXXX) > > -- P. J. Sat, 09 Jun 2012 20:36:51 -0400 > EOF Write a control file: $ cat > debian/control < Source: foo > Maintainer: "P. J. McDermott" > > Package: foo > Architecture: all > Description: Foo is foo. > EOF Add dpkg's `scripts/` directory to `@INC` in Perl: $ export PERL5LIB=../dpkg-1.16.4/scripts/ Tell dpkg where to find its data files: $ export DPKG_DATADIR=../dpkg-1.16.4/ Test `dpkg-gencontrol`: $ DEB_BUILD_OPTIONS=stage=1 ../dpkg-1.16.4/scripts/dpkg-gencontrol.pl && \ > cat debian/tmp/DEBIAN/control; rm -f debian/files