[Build-common-hackers] autotools.mk and cvs-buildpackage

Jeff Bailey jbailey@nisa.net
Mon, 06 Oct 2003 08:43:47 -0400

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 2003-10-05 at 11:15, debacle wrote:

> what is the best way to use the autotools.mk class with
> cvs-buildpackage?  Problem: I don't have generated files
> (e.g. "./configure") in CVS.  Instead, I generate the stuff
> via a cvs-buildpackage hook ('-H$HOME/bin/buildhook'),
> which calls 'make maintainer -f debian/rules'.  In the
> debian/rules is a 'maintainer' target calling './bootstrap'.
> ./bootstrap again is a four-line script:
> aclocal-1.7
> autoconf2.50
> libtoolize --automake --copy --force
> automake-1.7 --add-missing --copy

'bootstrap' scripts that do just this are horribly broken.  The right
way to do this is:

autoreconf -f -i -s

It will detect what tools you need to run, and run them in the right

Colin: I generally think that doing this in the package is horribly
wrong, but since people keep asking should we consider having a
DEB_AUTOTOOLS_RECONF =3D yes or something like that?

Jeff Bailey

"I'm torn...  My kink or my country..."
 - Anika Stafford

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.2.3 (GNU/Linux)