debian/rules questions and my plans for dual-build.

Henrique de Moraes Holschuh hmh at debian.org
Mon May 8 19:30:58 UTC 2006


On Mon, 08 May 2006, Benjamin Seidenberg wrote:
> Along those lines, I seem to be stuck. HMH, can you take a look? It
> seems to be it's cleaning when it's not supposed to or something like
> that, the install target vanishes when it comes time to install the files.

Yes.  You will need to break the clean target in two.

The second "clean" (after the primary "fix the upstream tree" clean) is not
to go around deleting auto-fu stuff.  So now you get a "distclean" and
"clean" targets. Only "distclean" must be run only once to do the auto-fu.

The second clean must rename/remove config.status, and config.cache, only.
This assumes the second, third, etc builds don't go messing with auto-fu. If
they do, you need to always full-clean and re-auto-fu everything.

IMHO, as we are going to be using dpatch for *everything* anyway, the
easiest way to go would be:

1. create build-dir (empty, rm -rf it first)
2. copy source three there, patch, auto-fu, configure and build first version of package
3. rm -rf it, repeat for second version of package (this avoids wasting too
much space during the build).

This is the safest way.  It is also slower, but this doesn't bother me at
all: cyrus is still lightweight compared to certain crap out there anyway
that all arches have to build rather constantly (kde, gnome, mozilla, etc),
and if it makes our maintenance easier, makes it harder for a mishap to
happen to the second build tree and makes it harder for us to not notice a
build fuckup, then I am all for it.

It gets also rather easy to use environment variables to select what to
build.

The second way is to do what you're doing now, but instead of cleaning the
tree, you do this:

1. build as normal (single build)
2. make first set of debs
3. patch-in changes, dh_clean -k
4. build again
5. make new sets of debs

I don't like this much, it is hell to get right re. arch-dep and arch-indep,
for example.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



More information about the Pkg-Cyrus-imapd-Debian-devel mailing list