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

Julian Gilbey Julian Gilbey <jdg@debian.org>, 206941@bugs.debian.org
Sun, 24 Aug 2003 01:59:29 +0100


Package: cdbs
Version: 0.4.5.2

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)
	[...]

My make knowledge is not particularly great, but I guess that there's
some not very difficult way to avoid the double run, perhaps by making
$(DEB_CONFIGURE_SCRIPT) a dependency of the final target in this
snippet, thus:

common-configure-arch common-configure-indep:: common-configure-impl
common-configure-impl:: $(DEB_BUILDDIR)/config.status
$(DEB_BUILDDIR)/config.status: $(DEB_CONFIGURE_SCRIPT)
	chmod a+x $(DEB_CONFIGURE_SCRIPT)
	[...]

This may well not be correct, though.

Thoughts on a postcard, please ;-)

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

        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