Add ocaml-ppx-{globalize,stable-witness}
[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-yojson",
139     "ocaml-ppx-enumerate",
140     "ocaml-ppx-expect",
141     "ocaml-ppx-fields-conv",
142     "ocaml-ppx-globalize",
143     "ocaml-ppx-hash",
144     "ocaml-ppx-here",
145     "ocaml-ppx-import",
146     "ocaml-ppx-inline-test",
147     "ocaml-ppx-js-style",
148     "ocaml-ppx-let",
149     "ocaml-ppxlib",
150     "ocaml-ppx-optcomp",
151     "ocaml-ppx-sexp-conv",
152     "ocaml-ppx-stable-witness",
153     "ocaml-ppx-variants-conv",
154     "ocaml-psmt2-frontend",
155     "ocaml-ptmap",
156     "ocaml-pyml",
157     "ocaml-qcheck",
158     "ocaml-qtest",
159     "ocaml-re",
160     "ocaml-react",
161     "ocaml-res",
162     "ocaml-result",
163     "ocaml-rresult",
164     "ocaml-SDL",
165     "ocaml-sedlex",
166     "ocaml-seq",
167     "ocaml-sexplib",
168     "ocaml-sexplib0",
169     "ocaml-sha",
170     "ocaml-sqlite",
171     "ocaml-ssl",
172     "ocaml-stdcompat",
173     "ocaml-stdio",
174     "ocaml-time-now",
175     "ocaml-topkg",
176     "ocaml-tplib",
177     "ocaml-trie",
178     "ocaml-tyxml",
179     "ocaml-uucd",
180     "ocaml-uucp",
181     "ocaml-uunf",
182     "ocaml-uuseg",
183     "ocaml-uutf",
184     "ocaml-variantslib",
185     "ocaml-version",
186     "ocaml-xml-light",
187     "ocaml-xmlm",
188     "ocaml-xmlrpc-light",
189     "ocaml-yojson",
190     "ocaml-zarith",
191     "ocaml-zed",
192     "ocaml-zip",
193     "ocaml-zmq",
194
195     "alt-ergo",
196     "apron",
197     "brltty",
198     "coccinelle",
199     "coq",
200     "flocq",
201     "frama-c",
202     "gappalib-coq",
203     "graphviz",
204     "haxe",
205     "hevea",
206     "hivex",
207     "laby",
208     "libguestfs",
209     "libnbd",
210     "opam",
211     "plplot",
212     "prooftree",
213     "supermin",
214     "swig",
215     "utop",
216     "virt-top",
217     "virt-v2v",
218     "why3",
219     "z3",
220     "zenon",
221
222     # Causes a cyclic dependency between libnbd <-> nbdkit.  We need
223     # to fix this in goals itself, but in the meantime disable nbdkit
224     # and build it by hand.
225     #"nbdkit",
226 ]
227
228 # Get the list of source packages.
229 pure function get-source-packages () returning strings = {
230     cd %fedora-dir
231     for pkg in %packages; do
232         spec=$pkg/%fedora-branch/$pkg.spec
233         if [ -f $spec ]; then
234             # Check that all spec files have disabled the broken
235             # "package notes" misfeature.
236             if ! grep -sq "%%undefine _package_note_flags" $spec ; then
237                 echo "ERROR: $pkg does not %%undefine _package_note_flags" >&2
238                 exit 1
239             fi
240             # OK to rebuild this package.
241             echo "$pkg"
242         elif [ -f $pkg/%fedora-branch/dead.package ]; then
243             echo "WARNING: $pkg: is a dead package, ignored" >&2
244         else
245             echo "$pkg: package is not checked out locally" >&2
246             exit 1
247         fi
248     done
249 }
250 let fedora-source-packages = get-source-packages ()
251
252 # Main goal: Rebuild all packages in Koji.
253 goal all = : wrap ("is-koji-built", fedora-source-packages)