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

Re: elegant ways to build a package two times

On Sun, Apr 13, 2008 at 05:50:39PM +0200, Marco d'Itri wrote:

> I am looking for *elegant* ways to build both packages from the same
> source with the least possible duplication of the code in debian/rules
> and of the debian/ debhelper files (the package is complex and needs
> much work before and after make install).
> Please let me know if you know about packages which solved similar
> issues.

I maintain celestia, which comes with three front-ends, GLUT, GNOME and
KDE. Unfortunately, upstreams build system only allows you to build for
one specific front-end at a time. In celestia's debian/rules, the source
is copied three times to separate build directories. Then it is compiled
three times, each time with different options to ./configure. I have
taken care that the makefile rules in debian/rules are such that
repeated builds work fine, and that if you interrupt the build you can
resume it, without the need for the build system to start over again.
Also, I recently made it so that the build directory copies are made
with cp -l, to speed up the process and to prevent disk space from being
consumed unnecessarily.

Met vriendelijke groet / with kind regards,
      Guus Sliepen <guus@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply to: