[Build-common-hackers] Bug#433862: cdbs: please allow the possibility to filter out packages
Andreas Metzler
ametzler at downhill.at.eu.org
Sat Dec 22 17:36:23 UTC 2007
notfixed 433862 0.4.50
thanks
This bug-report was closed in 0.4.50 with this message:
----------------
* Use dh_listpackages instead of custom list-packages script when debhelper
is used. Since this requires a recent version of debhelper, debhelper is
now a dependency of cdbs. (buildcore.mk, permodule-vars.mk)
(closes: #405413, #433862)
----------------
The way dh_listpackages is used, there seems to be no way to
accomplish what his bug report is about: to stop cdbs from building
specific packages although they are listed in debian/control.
I have been hit by this myself recently:
gnutls26 includes a wrapper for Guile. However, guile is not available
on ia64. Which is why I want dpkg-buildpackage to not try to build the
binary on this arch.
I have tried this in vain:
DEB_DH_BUILDDEB_ARGS := -Nguile-gnutls
This fails, since cdbs then calls
"dh_builddeb -pguile-gnutls -Nguile-gnutls" which in turn exits with
non-zero exitcode.
If there was a DEB_DH_LISTPACKAGES I would simply set it to
-Nguile-gnutls and be happy.
Currently I am using this:
-----------------------------
include /usr/share/cdbs/1/rules/buildvars.mk
# No guile on ia64; do not build gnutls wrapper there.
ifeq ($(DEB_BUILD_ARCH),ia64)
DEB_ARCH_PACKAGES := $(subst guile-gnutls,,$(DEB_ARCH_PACKAGES))
endif
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_CONFIGURE_EXTRA_FLAGS = --with-mcrypt=no --enable-ld-version-script --disable-cxx --without-lzo
[...]
# No guile on ia64; do not build gnutls wrapper there.
ifeq ($(DEB_BUILD_ARCH),ia64)
DEB_CONFIGURE_EXTRA_FLAGS += --disable-guile
else
DEB_CONFIGURE_EXTRA_FLAGS += --enable-guile --with-guile-site-dir=/usr/share/guile/site
endif
-----------------------------
Note how I need to include buildvars.mk first, then manipulate the
variable and after that include the rules/classes I really want to
use.
This looks like a hack, however if you think this is correct and
*supported* usage of cdbs feel free to close this bug.
thanks, cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
More information about the Build-common-hackers
mailing list