[Build-common-hackers] Bug#628110: Bug#628110: Bug#628110: cdbs: Wrong install dir for python modules
Daniel Dehennin
daniel.dehennin at baby-gnu.org
Fri Jun 17 12:38:49 UTC 2011
Daniel Dehennin <daniel.dehennin at baby-gnu.org> writes:
[...]
> Here is my debian/rules:
>
> #v+
> #!/usr/bin/make -f
>
> # Uncomment this to turn on verbose mode.
> #export DH_VERBOSE=1
>
> include /usr/share/cdbs/1/rules/debhelper.mk
>
> #DEB_PYTHON_SYSTEM=pycentral
> DEB_PYTHON_SYSTEM=pysupport
> include /usr/share/cdbs/1/class/python-distutils.mk
>
> # Add here any variable or target overrides you need.
> #v-
Just modifying the debian/rules to not use CDBS makes it working[1]:
#v+
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
# cd zephir/monitor/agentmanager/templates && make -f ./Makefile
#docbook-to-man debian/era.sgml > era.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
#-$(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/conf-amon
$(MAKE) install DESTDIR=$(CURDIR)/debian
python setup.py install --no-compile --root
debian/eole-smartmontools/ --install-layout=deb
# Build architecture-independent files here.
binary-indep: build install
# My module in /usr/lib/python2.6/dist-packages/zephir/monitor/agents/
DH_PYCENTRAL=include-links dh_pycentral
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdirs
dh_installdocs
dh_install
dh_strip
dh_compress
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
#v-
Regards.
Footnotes:
[1] with a near empty Makefile at top level of my package
--
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20110617/fa95162a/attachment.pgp>
More information about the Build-common-hackers
mailing list