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