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