[Build-common-hackers] Bug #203985: cdbs: binary-arch runs install/% for binary-indep targets

Daniel Schepler schepler@math.berkeley.edu
Sun, 03 Aug 2003 16:16:11 -0700


(I didn't receive the message I'm replying to, so please forgive me if
my by-hand construction of In-Reply-To and/or References is broken.)

Colin Walters writes:

> This is intentional; see the comments above the 'build' target in
> 1/rules/buildcore.mk.
> I recommend just not using Build-Depends-Indep for now, and putting
> everything in Build-Depends, until such time as dpkg-buildpackage is
> fixed.  Alternatively, you may set DEB_BUILD_DEPENDENCIES.  (Hmm...that
> is kind of a confusing name, will have to fix that...).

I don't see how setting DEB_BUILD_DEPENDENCIES will help, since I'm
talking about install/libmath++-doc.  In fact, I avoided running
doxygen in the build/libmath++-doc target, as I would have preferred
to, exactly because of this issue.  And I also don't see how those
comments apply to the install/* targets.

If I follow the alternative of moving doxygen to Build-Depends, then
the autobuilders will unnecessarily install and run doxygen, so I'd
prefer to avoid this unless it's really necessary.  (I already got a
message from the m68k buildd maintainer that said if I did this, he'd
file a bug complaining about it.)

Here's the debian/rules file from the libmath++ package.  Maybe you
can tell me if I'm doing something wrong.

Content-Type: text/x-makefile
Content-Disposition: inline; filename=rules
Content-Description: libmath++ debian/rules

#!/usr/bin/make -f

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

	rm -f aclocal.m4 config.guess config.h.in config.sub install-sh
	rm -f libtool ltconfig ltmain.sh missing mkinstalldirs stamp-h.in
	rm -f depcomp stamp-h1 configure
	rm -rf autom4te.cache
	find -name Makefile.in | xargs -r rm -f

	libtoolize --force --copy
	automake-1.6 -a -c

debian/stamp-autotools-files: configure

	$(DEB_MAKE_INVOKE) api-doc
	mkdir -p debian/libmath++-doc/usr/share/doc/libmath++-doc
	cp -a doc/user-api debian/libmath++-doc/usr/share/doc/libmath++-doc/html


(BTW, is there a better way to get the autotools to be run before
configure is?  Other than "don't run autotools in the package build"
-- I followed the debian-devel thread about that a while back and
remained thoroughly unconvinced.)
Daniel Schepler              "Please don't disillusion me.  I
schepler@math.berkeley.edu    haven't had breakfast yet."
                                 -- Orson Scott Card