Remove coq, camlp4 (+ downstream dependencies) from block list.
[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 (* Fedora *)
12 let fedora_dir = Sys.getenv "HOME" // "d/fedora"
13 let fedora_repo pkg branch = fedora_dir // pkg // branch
14 let fedora_specfile pkg branch =
15   sprintf "%s/%s.spec" (fedora_repo pkg branch) pkg
16
17 (* libguestfs *)
18 let libguestfs_query_mins = 60
19
20 let websites_repo =
21   sprintf "%s/d/websites" (Sys.getenv "HOME")
22 let libguestfs_website_repo =
23   sprintf "%s/libguestfs" websites_repo
24 let libguestfs_builder_repo =
25   sprintf "%s/libguestfs-builder" websites_repo
26 let libguestfs_download_repo =
27   sprintf "%s/libguestfs-download" websites_repo
28
29 let libguestfs_localconfigure source =
30   let configure =
31     match source with
32       `Git -> "./autogen.sh"
33     | `Tarball -> "./configure" in
34   sprintf "\
35 #!/bin/bash -
36 . localenv
37
38 # erlang is disabled because it is broken in Rawhide:
39 # https://bugzilla.redhat.com/show_bug.cgi?id=1316206
40
41 # Add -fPIC to flags otherwise linking OCaml objects fails.
42 export CFLAGS=\"-O2 -g -fPIC\"
43 export CXXFLAGS=\"$CFLAGS\"
44 export LDFLAGS=\"-fPIC\"
45
46 %s \\
47   PYTHON=/usr/bin/python3 \\
48   --prefix /usr \\
49   --disable-static \\
50   --with-default-backend=libvirt \\
51   --enable-gtk-doc \\
52   --disable-golang \\
53   --disable-erlang \\
54   --with-virt-v2v-nbdkit-python-plugin=python3 \\
55   -C \\
56   \"$@\"
57 " configure
58
59 let libguestfs_localenv supermin =
60   "\
61 # Use the real virt-builder configuration from /etc.
62 export XDG_CONFIG_DIRS=/etc
63
64 # Fails under valgrind because of a leak in the fuse library,
65 # although I could not work out exactly why.
66 export SKIP_TEST_PARALLEL_MOUNT_LOCAL=1
67
68 # Fails under valgrind because cpio subprocess has a memory leak.
69 export SKIP_TEST_FILE_ARCHITECTURE_11=1
70 export SKIP_TEST_FILE_ARCHITECTURE_15=1
71
72 # Fails under valgrind because xzcat subprocess has a memory leak.
73 export SKIP_TEST_FILE_ARCHITECTURE_17=1
74
75 # This test fails because we build the ISO after encoding the checksum
76 # of the ISO in the test itself.  Need to fix the test to work out the
77 # checksum at runtime.
78 export SKIP_TEST_CHECKSUM_DEVICE=1
79
80 # Disable parallel virt-alignment-scan & virt-df tests (RHBZ#1025942).
81 export SKIP_TEST_VIRT_ALIGNMENT_SCAN_GUESTS_SH=1
82 export SKIP_TEST_VIRT_DF_GUESTS_SH=1
83
84 # fusermount behaviour seems to have broken the test (RHBZ#1220751).
85 export SKIP_TEST_FUSE_UMOUNT_RACE_SH=1
86 export SKIP_TEST_GUESTMOUNT_FD=1
87
88 # xfs_admin has no effect in Rawhide (RHBZ#1233220).
89 export SKIP_TEST_XFS_ADMIN=1
90 export SKIP_TEST_XFS_MISC_PL=1
91
92 # syslinux broken by mtools (RHBZ#1275087).
93 export SKIP_TEST_SYSLINUX_PL=1
94
95 # See https://www.redhat.com/archives/libguestfs/2015-November/msg00144.html
96 export SKIP_TEST_INOTIFY_ADD_WATCH=1
97
98 # libguestfs: error: mkfs_btrfs: /dev/sda1: not enough free space
99 # (RHBZ#1291715).
100 export SKIP_TEST_BTRFS_IMAGE_0=1
101
102 # Yawn, btrfs broken again. RHBZ#1372037
103 export SKIP_TEST_BTRFS_DEVICES_SH=1
104
105 # Kernel takes lots of RAM for virtio-scsi RHBZ#1478201
106 export SKIP_TEST_255_DISKS_SH=1
107 export SKIP_TEST_ADD_LOTS_OF_DISKS_SH=1
108
109 # virtio-9p modules don't all get loaded RHBZ#1499896
110 export SKIP_TEST_9P_SH=1
111
112 # These tests are broken by libvirt not supporting qemu >= 2.10 locking.
113 # REMOVE THIS when fixed.
114 export SKIP_TEST820RHBZ912499_PY=1
115
116 # ntfsclone is broken in Rawhide (RHBZ#1601146).
117 export SKIP_TEST_NTFSCLONE_SH=1
118
119 # Kernel broken.
120 # https://bugzilla.redhat.com/show_bug.cgi?id=1657200
121 export SKIP_TEST_BIG_DIRS_PL=1
122
123 # Setting hostname on Ubuntu 18.04 is broken.
124 # https://bugzilla.redhat.com/show_bug.cgi?id=1658307
125 export SKIP_TEST_SETTINGS_UBUNTU_18_04_SH=1
126 " ^
127     match supermin with
128     | None -> ""
129     | Some (supermin, supermin_helper) ->
130       sprintf "\
131 # Needs a modified path to supermin binaries:
132 export SUPERMIN=%s
133 export SUPERMIN_HELPER=%s
134
135 " supermin supermin_helper