Bug#206941: [Build-common-hackers] Bug#206941: cdbs: do we have to run configure twice?

Julian Gilbey Julian Gilbey <jdg@debian.org>, 206941@bugs.debian.org
Fri, 29 Aug 2003 10:13:34 +0100

On Wed, Aug 27, 2003 at 01:37:47AM -0400, Colin Walters wrote:
> On Sat, 2003-08-23 at 20:59, Julian Gilbey wrote:
> > Package: cdbs
> > Version:
> > 
> > It seems that with the autotools.mk class, the package's configure
> > script is run twice, once for the build-arch and once for the
> > build-indep, because of the rules:
> > 
> > common-configure-arch common-configure-indep:: common-configure-impl
> > common-configure-impl:: $(DEB_BUILDDIR)/config.status
> > $(DEB_BUILDDIR)/config.status:
> > 	chmod a+x $(DEB_CONFIGURE_SCRIPT)
> Here, config.status should suffice as a stamp file.  That's not working
> for you?

Found the real bug: if using tarball.mk, it must appear *first* in the
list of included makefiles, otherwise $(DEB_BUILDDIR) is not correctly
defined when the autotools.mk file is read, hence the config.status
rule is defined incorrectly when $(DEB_SRCDIR) != $(DEB_BUILDDIR);
perhaps you could add a note to this effect in the README somewhere?



        Julian Gilbey, website: http://www.polya.uklinux.net/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry