Enable dune
[fedora-ocaml-rebuild.git] / Goalfile
1 # See README.
2
3 include "fedora.gl"
4
5 let fedora-dir = "%HOME/d/fedora"
6
7 let fedora-branch = "rawhide"
8 #let fedora-branch = "f34"
9 let fedora-tag = "f39-build-side-69760"
10
11 # The magic string that must appear in %changelog when the
12 # package has been rebuilt.
13 let fedora-rebuild-name = "OCaml 5.0 rebuild for Fedora 39"
14
15 # %fedora-retry-failed:
16 # If set to 1 then failed builds are retried automatically.
17 # If set to 0 then failed builds must be manually restarted.
18 # Normally you want this to be 0.
19 let fedora-retry-failed = "1"
20
21 # Packages that are ignored, which means they are treated as if
22 # they have been rebuilt.
23 let fedora-ignored = [
24     "ocaml-srpm-macros", "ocaml",
25 ]
26
27 # All OCaml-related source package names
28 let packages = [
29     "ocaml-alcotest",
30     "ocaml-astring",
31     "ocaml-atd",
32     "ocaml-augeas",
33     "ocaml-autoconf",
34     "ocaml-base",
35     "ocaml-base64",
36     "ocaml-benchmark",
37     "ocaml-bigarray-compat",
38     "ocaml-biniou",
39     "ocaml-bin-prot",
40     "ocaml-bisect-ppx",
41     "ocaml-bos",
42     "ocaml-cairo",
43     "ocaml-calendar",
44     "ocaml-camlbz2",
45     "ocaml-camlidl",
46     "ocaml-camlimages",
47     "ocaml-camlp-streams",
48     "ocaml-camlp5",
49     "ocaml-camomile",
50     "ocaml-cinaps",
51     "ocaml-cmdliner",
52     "ocaml-compiler-libs-janestreet",
53     "ocaml-cppo",
54     "ocaml-cryptokit",
55     "ocaml-csexp",
56     "ocaml-csv",
57     "ocaml-ctypes",
58     "ocaml-cudf",
59     "ocaml-curl",
60     "ocaml-curses",
61     "ocaml-dbus",
62     "ocaml-dose3",
63     "ocaml-dune",
64     "ocaml-easy-format",
65     "ocaml-expat",
66     "ocaml-extlib",
67     "ocaml-facile",
68     "ocaml-fieldslib",
69     "ocaml-fileutils",
70     "ocaml-findlib",
71     "ocaml-fmt",
72     "ocaml-fpath",
73     "ocaml-gen",
74     "ocaml-gettext",
75     "ocaml-graphics",
76     "ocaml-gsl",
77     "ocamlify",
78     "ocaml-integers",
79     "ocaml-jane-street-headers",
80     "ocaml-jst-config",
81     "ocaml-lablgl",
82     "ocaml-lablgtk",
83     "ocaml-lablgtk3",
84     "ocaml-labltk",
85     "ocaml-lacaml",
86     "ocaml-lambda-term",
87     "ocaml-libvirt",
88     "ocaml-logs",
89     "ocaml-luv",
90     "ocaml-lwt",
91     "ocaml-markup",
92     "ocaml-mccs",
93     "ocaml-mdx",
94     "ocaml-menhir",
95     "ocaml-merlin",
96     "ocaml-mew",
97     "ocaml-mew-vi",
98     "ocaml-mlgmpidl",
99     "ocaml-mlmpfr",
100     "ocaml-mtime",
101     "ocamlmod",
102     "ocaml-mysql",
103     "ocaml-newt",
104     "ocaml-num",
105     "ocaml-obuild",
106     "ocaml-ocamlbuild",
107     "ocaml-ocamlgraph",
108     "ocaml-ocamlnet",
109     "ocaml-ocp-indent",
110     "ocaml-ocplib-endian",
111     "ocaml-ocplib-simplex",
112     "ocaml-octavius",
113     "ocaml-odoc",
114     "ocaml-odoc-parser",
115     "ocaml-omake",
116     "ocaml-opam-file-format",
117     "ocaml-ounit",
118     "ocaml-parmap",
119     "ocaml-parsexp",
120     "ocaml-pcre",
121     "ocaml-perl4caml",
122     "ocaml-postgresql",
123     "ocaml-pp",
124     "ocaml-ppx-assert",
125     "ocaml-ppx-base",
126     "ocaml-ppx-cold",
127     "ocaml-ppx-compare",
128     "ocaml-ppx-custom-printf",
129     "ocaml-ppx-derivers",
130     "ocaml-ppx-deriving",
131     "ocaml-ppx-deriving-yaml",
132     "ocaml-ppx-deriving-yojson",
133     "ocaml-ppx-enumerate",
134     "ocaml-ppx-expect",
135     "ocaml-ppx-fields-conv",
136     "ocaml-ppx-globalize",
137     "ocaml-ppx-hash",
138     "ocaml-ppx-here",
139     "ocaml-ppx-import",
140     "ocaml-ppx-inline-test",
141     "ocaml-ppx-js-style",
142     "ocaml-ppx-let",
143     "ocaml-ppxlib",
144     "ocaml-ppx-optcomp",
145     "ocaml-ppx-sexp-conv",
146     "ocaml-ppx-stable-witness",
147     "ocaml-ppx-variants-conv",
148     "ocaml-psmt2-frontend",
149     "ocaml-ptmap",
150     "ocaml-pyml",
151     "ocaml-qcheck",
152     "ocaml-qtest",
153     "ocaml-re",
154     "ocaml-react",
155     "ocaml-res",
156     "ocaml-result",
157     "ocaml-rresult",
158     "ocaml-SDL",
159     "ocaml-sedlex",
160     "ocaml-sexplib",
161     "ocaml-sexplib0",
162     "ocaml-sha",
163     "ocaml-sqlite",
164     "ocaml-ssl",
165     "ocaml-stdcompat",
166     "ocaml-stdio",
167     "ocaml-time-now",
168     "ocaml-topkg",
169     "ocaml-trie",
170     "ocaml-tyxml",
171     "ocaml-uucd",
172     "ocaml-uucp",
173     "ocaml-uunf",
174     "ocaml-uuseg",
175     "ocaml-uutf",
176     "ocaml-variantslib",
177     "ocaml-version",
178     "ocaml-xml-light",
179     "ocaml-xmlm",
180     "ocaml-xmlrpc-light",
181     "ocaml-yaml",
182     "ocaml-yojson",
183     "ocaml-zarith",
184     "ocaml-zed",
185     "ocaml-zip",
186     "ocaml-zmq",
187
188     "alt-ergo",
189     "apron",
190     "brltty",
191     "coccinelle",
192     "coq",
193     "flocq",
194     "frama-c",
195     "gappalib-coq",
196     "graphviz",
197     "haxe",
198     "hevea",
199     "hivex",
200     "libguestfs",
201     "libnbd",
202     "opam",
203     "plplot",
204     "prooftree",
205     "supermin",
206     "swig",
207     "utop",
208     "virt-top",
209     "virt-v2v",
210     "why3",
211     "z3",
212     "zenon",
213
214     # Causes a cyclic dependency between libnbd <-> nbdkit.  We need
215     # to fix this in goals itself, but in the meantime disable nbdkit
216     # and build it by hand.
217     #"nbdkit",
218 ]
219
220 # Get the list of source packages.
221 pure function get-source-packages () returning strings = {
222     cd %fedora-dir
223     for pkg in %packages; do
224         spec=$pkg/%fedora-branch/$pkg.spec
225         if [ -f $spec ]; then
226             # Check that the spec file excludes i686.
227             # Only implement this check for ocaml-* packages, as the
228             # other packages are more complicated.
229             if [[ "$spec" =~ ^ocaml ]] &&
230                ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then
231                 echo "ERROR: $pkg does not ExcludeArch: %%{ix86}" >&2
232                 exit 1
233             fi
234             # OK to rebuild this package.
235             echo "$pkg"
236         elif [ -f $pkg/%fedora-branch/dead.package ]; then
237             echo "WARNING: $pkg: is a dead package, ignored" >&2
238         else
239             echo "$pkg: package is not checked out locally" >&2
240             exit 1
241         fi
242     done
243 }
244 let fedora-source-packages = get-source-packages ()
245
246 # Main goal: Rebuild all packages in Koji.
247 goal all = : wrap ("is-koji-built", fedora-source-packages)