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

Benjamin Seidenberg astronut at dlgeek.net
Fri May 5 21:52:24 UTC 2006


So I've been digging into debian/rules in order to try to set it up so
we can build a idled version of the imapd package that conflicts with
it, and I have a few questions about the rules file:

1.) In the binary-* sections, the comments are before the tabs. For some
reason (maybe syntax highlighting), I thought they had to be after the
tab in make files?

2.) Why doesn't configure depend on configure-stamp? Right now, it's
useless.

3.) Why does clean-patched depend on configure, both a.) because it does
nothing and b.) at all? I can see clean-patched depending on
patched-stamp, but not configure/configure-stamp.

Ok, now that I've asked that, let me explain what Sven and I were
thinking for dual-build.

Currently, we have --with-idle set to "poll", using poll for idle
support. Many people perfer idled, hence the idled branch. However, for
people who want this, they currently have to build their own package.
What we want to do is make a package (maybe cyrus-imapd-idled-2.2? Name
suggestions welcome.) that will conflict with cyrus-imapd-2.2 that
replaces it with a version of imapd that is compiled for idled support
(and idled itself, obviously). I want to go about it like this (roughly):

1.) Migrate the rules to use dh_install instead of dh_movefiles. This is
because dh_install allows you to change the path while installing a
file. This is necessary due to the way I plan to do 3 and 5.
2.) Set up another set of configure/build targets, probably
configure-idled-stamp,etc . I will have it remove configure-stamp at the
begining and vice versa so these don't get confused. This will be a
replica of configure, except with the idle setting changed.
3.) After building, move the binaries somewhere out of the way.
4.) Reconfigure, and do the regular build.
5.) Using dh_install, install the two builds to separate packages
6.) ???
7.) Profit.

Thoughs?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20060505/0c414bec/signature.pgp


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