[Build-common-hackers] python version specific configure settings

lars lists at sumpfralle.de
Tue Jun 6 12:22:19 UTC 2006


Hi,
I am a co-maintainer of the clearsilver debian package.
It uses cdbs as a packaging helper and already contains a python2.3-clearsilver
package. I would like to add python2.4-clearsilver.
The clearsilver source requires different configure settings to build python
version specific binary files (--with-python=/usr/bin/python2.[34]).

The (relevant part of the) current debian/rules file follows:

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-python=/usr/bin/python2.3 \
			  --with-perl=/usr/bin/perl \
			  --disable-ruby \
			  --disable-csharp \
			  --disable-apache \
			  --enable-gettext

CFLAGS += -fPIC

DEB_SHLIBDEPS_INCLUDE_perl-clearsilver := debian/perl-clearsilver/usr/lib/perl5
DEB_SHLIBDEPS_INCLUDE_python2.3-clearsilver :=
debian/python2.3-clearsilver/usr/lib/python2.3/site-packages

build/python2.3-clearsilver::
	install -d debian/tmp/usr/lib/python2.3/site-packages
	install -m644 $(DEB_BUILDDIR)/python/neo_cgi.so \
    	    debian/tmp/usr/lib/python2.3/site-packages/neo_cgi.so

binary-post-install/python2.3-clearsilver::
	dh_movefiles --package=python2.3-clearsilver usr/lib/python2.3

</stop>

Adding a [build|binary-post-install]/python2.4-clearsilver target and
DEB_SHLIBDEPS_INCLUDE for python2.4 is easy, but how can I choose a specific
configure setting for different packages?

I tried the following:
configure/python2.3-clearsilver:: DEB_CONFIGURE_USER_FLAGS :=
--with-python=/usr/bin/python2.3

configure/python2.4-clearsilver:: DEB_CONFIGURE_USER_FLAGS :=
--with-python=/usr/bin/python2.4
(and I removed the '--with-python' setting from DEB_CONFIGURE_EXTRA_FLAGS).

But this did not reconfigure the sources for the different packages.

How can I force cdbs to reconfigure the sources for every package with
different settings?

thanks for your time,
Lars



More information about the Build-common-hackers mailing list