[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Upgrade build process to build multiple packages



This topic has been annyoing me for years: I had started a small 
(architecture independent) packages. dh-make created a sound build 
configuration for me and everythings works like a charm. But after a
while it turns out I should split the result into several packages,
and every time I look for a simple way to do so I end up with broken
scripts and a lot of anger.

The following steps /should/ do the trick:
1. Add a new entry to debian/control
2. List the files that should go into package-data instead of package
   in a file debian/package-data.install, with their trailing slashes
   removed. I might need some extra .postinst files and the like in
   debian/.
3. Apply some magic.

I am stuck at 3. What are the required steps? Where are they documented?

As I can tell from strace'ing the build process, the file
debian/packages-data.install isn't even read besides the tarball 
creation. The resulting package-data_*_all.deb is virtually empty and
all files are still in package_*_all.deb.

Of course I could re-create debian/rules using dh-make -m but this
basically fattens that file with a lot of architecture dependent
command which are not interesting for me. And besides, I want to
understand how actually things work. What is the magic behind
the re-invocation of debian/rules in binary-{arch,indep}? Do things
really have to be _that_ complicated?

    Christoph


Reply to: