dpkg-buildpackage and new "-indep" debhelper options

Anton Gladky gladky.anton at gmail.com
Tue Dec 6 16:53:55 UTC 2011


Hi all,

I have an eigen3 package, which uses --before option to escape
DOC-building on all platforms.
debian/rules is looking so now:

====================================
binary-indep:
	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --before dh_auto_build
	cd $(BUILDDIR); $(MAKE) doc
	rm -f $(BUILDDIR)/doc/html/unsupported/installdox
	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --after dh_auto_build

binary-arch:
	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR)

binary: binary-indep
====================================


in this case "dpkg-buildpackage -B" skips creating DOC.
I tried to modify debian/rules according to a new "override_-indep"
debhelper-options:

====================================
override_dh_auto_build-indep:
	cd $(BUILDDIR); $(MAKE) doc
	rm -f $(BUILDDIR)/doc/html/unsupported/installdox
====================================

But "dpkg-buildpackage -B" as well as "pbuilder --binary-arch" are
building DOCs, ignoring -indep option.
What can be wrong there?

The git-link on eigen3-repo is here:
http://anonscm.debian.org/gitweb/?p=debian-science/packages/eigen3.git

Thank you.

Anton



More information about the debian-science-maintainers mailing list