]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-setup: remove do_autogen.sh 46/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 14 Apr 2015 17:22:29 +0000 (11:22 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Tue, 14 Apr 2015 17:22:29 +0000 (11:22 -0600)
Remove do_autogen.sh from the ceph-setup task. Run ./autogen.sh and
./configure instead.

I've copied this long ./configure argument list from a prior run of
./do_autogen.sh so that we're using the same arguments. We can adjust it
as needed.

One of the reasons for making this change is that ./do_autogen.sh takes
an argument ("-L") depending on whether we're building a Hammer or
Firefly release. The goal of this change is to use a more stable
interface for doing the builds.

As background, from Sage on IRC yesterday:

  sage: i'm surprised jenkins is using do_autogen.sh at all actually?
  ktdreyer: what should it use?
  sage: ./autogen.sh and then pass the args explicitly to ./configure
        that it wants?
  sage: it doesn't really matter i guess, but do_autogen.sh piles a
        bunch of random stuff in there
  ktdreyer: I was just looking at autobuild-ceph.git's build-ceph.sh
  ktdreyer: it does what you're suggesting
  ktdreyer: cool
  sage: do_autogen.sh in my mind is for developers.  if it makes sense
        for relase that's ok, but that's not how i've treated it

ceph-setup/build/build

index 10f643836a1c92ab385899351ff57ae5e49d4792..7e3f52bec30762be5188448c4abb4c0f29fc47f9 100644 (file)
@@ -39,10 +39,24 @@ rm -rf release
 echo "Running submodule update ..."
 git submodule update --init
 
+echo "Running autogen.sh ..."
+./autogen.sh
 echo "Running configure ..."
-# because this is running in a Debian-based distro we need to pass -L
-# to disable lttng
-./do_autogen.sh -L
+./configure \
+  --disable-option-checking \
+  '--prefix=/usr' \
+  '--sbindir=/sbin' \
+  '--localstatedir=/var' \
+  '--sysconfdir=/etc' \
+  '--with-debug' \
+  '--with-nss' \
+  '--with-radosgw' \
+  '--disable-static' \
+  '--without-lttng' \
+  'CFLAGS= -Wno-unused-parameter' \
+  'CXXFLAGS=  -Wno-unused-parameter' \
+  --cache-file=/dev/null \
+  --srcdir=.
 
 if [ $? -ne 0 ] ; then
     echo "autogen failed"