]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: Handle missing tcmalloc on Debian lenny.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 19 Apr 2011 18:20:24 +0000 (11:20 -0700)
committerSage Weil <sage@newdream.net>
Tue, 19 Apr 2011 19:05:32 +0000 (12:05 -0700)
lenny doesn't have a suitable libgoogle-perftools-dev, and
release.sh edits it out of build-deps. Detect that and tell
configure that not having tcmalloc is ok.

This should make 05c281bfa9e9d69ea3d0197590950c8e6845a13a
unnecessary.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
debian/rules

index c4c50e2ac3bed3c3e8c207944af89f859316110b..7eb4520ac11cb4c0d2dc13b83e0d254eec327299 100755 (executable)
@@ -33,6 +33,14 @@ ifneq ($(DEB_HOST_ARCH), amd64)
 endif
 endif
 
+ifeq ($(shell grep -c -E '^Build-Depends:(.*,)?[[:space:]]*libgoogle-perftools-dev([[:space:]]|,|$$)' debian/control),0)
+  # if Build-Deps have been edited to skip libgoogle-perftools-dev (as
+  # we do for Debian lenny), tell configure it's ok to not have
+  # tcmalloc.
+  extraopts += --without-tcmalloc
+endif
+
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir