Creating DEB packages on Gentoo.
Tuesday, March 17th, 2009This is how I created the Wine-Doors DEB packages on Gentoo.
- I recommend emerging “debhelper” since its used by quite a lot of packages, this will pull in dpkg too. If you don’t think you’ll need debhelper, just emerge dpkg. Emerge fakeroot too if you don’t have it.
- If you’re not using debhelper, you can skip this step. The Gentoo version of man doesn’t support the “–recode” option so in “/usr/bin/dh_installman” change:
complex_doit "man --recode UTF-8 ./\Q$orig\E > \Q$tmp\E";
To
complex_doit "man ./\Q$orig\E > \Q$tmp\E";
- dpkg-buildpackage will fail because of a missing file “/var/lib/dpkg/status”, create it.
Now you should be able to create DEB packages with “pkg-buildpackage -d” (the -d disables the dependency checks which is probably what you want since your dpkg database will be empty)