buildpackages: fix configure on Ubuntu 12.04.

Ubuntu 12.04/precise has a buggy lttng; it fails our lttng-is-sane
check, as it leaves out headers.

This should not stop building of Ceph, as the automatic build handling
from debian/rules will correctly omit LTTNG on Precise.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
This commit is contained in:
Robin H. Johnson 2015-12-18 11:36:25 -08:00 committed by Loic Dachary
parent 785801c2e9
commit cd4b7ad642

View File

@ -69,10 +69,17 @@ function build_package() {
# options (otherwise parts of the source tree will be left out).
#
./autogen.sh
# Building with LTTNG on Ubuntu Precise is not possible.
# It fails the LTTNG-is-sane check (it misses headers)
# And the Debian rules files leave it out anyway
case $codename in
precise) lttng_opt="--without-lttng" ;;
*) lttng_opt="--with-lttng" ;;
esac
./configure $(flavor2configure $flavor) \
--with-rocksdb --with-ocf \
--with-nss --with-debug --enable-cephfs-java \
--with-lttng --with-babeltrace
$lttng_opt --with-babeltrace
#
# use distdir= to set the name of the top level directory of the
# tarbal to match the desired version