Add libguestfs upstream build rules.
[goaljobs-goals.git] / config.ml
1 (* This contains lots of configuration specifics which are
2  * unlikely to be useful unless you are me ...
3  *)
4
5 open Goaljobs
6 open Printf
7
8 (* General. *)
9 let buildtmp = sprintf "%s/tmp/builds" (Sys.getenv "HOME")
10
11 (* libguestfs *)
12 let libguestfs_website_cvs =
13   sprintf "%s/d/redhat/websites/libguestfs" (Sys.getenv "HOME")
14
15 let libguestfs_localconfigure source =
16   let configure =
17     match source with
18       `Git -> "./autogen.sh"
19     | `Tarball -> "./configure" in
20   sprintf "\
21 #!/bin/bash -
22 . localenv
23
24 %s \\
25   --prefix /usr \\
26   --disable-static \\
27   --with-default-backend=libvirt \\
28   --enable-gcc-warnings \\
29   --enable-gtk-doc \\
30   --enable-valgrind-daemon \\
31   -C \\
32   \"$@\"
33 " configure
34
35 let libguestfs_localenv = "\
36 # Parallel test runs out of resources starting qemu, unclear why.
37 export SKIP_TEST_PARALLEL_MOUNT_LOCAL=1
38
39 # Fails under valgrind because cpio subprocess has a memory leak.
40 export SKIP_TEST_FILE_ARCHITECTURE_11=1
41 "