Restrict ExcludeArch check to just ocaml* packages
[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     # Cyclic dependency ocaml-dune -> ocaml-pp -> ocaml-dune
64     #"ocaml-dune",
65     "ocaml-easy-format",
66     "ocaml-expat",
67     "ocaml-extlib",
68     "ocaml-facile",
69     "ocaml-fieldslib",
70     "ocaml-fileutils",
71     "ocaml-findlib",
72     "ocaml-fmt",
73     "ocaml-fpath",
74     "ocaml-gen",
75     "ocaml-gettext",
76     "ocaml-graphics",
77     "ocaml-gsl",
78     "ocamlify",
79     "ocaml-integers",
80     "ocaml-jane-street-headers",
81     "ocaml-jst-config",
82     "ocaml-lablgl",
83     "ocaml-lablgtk",
84     "ocaml-lablgtk3",
85     "ocaml-labltk",
86     "ocaml-lacaml",
87     "ocaml-lambda-term",
88     "ocaml-libvirt",
89     "ocaml-logs",
90     "ocaml-luv",
91     "ocaml-lwt",
92     "ocaml-markup",
93     "ocaml-mccs",
94     "ocaml-mdx",
95     "ocaml-menhir",
96     "ocaml-merlin",
97     "ocaml-mew",
98     "ocaml-mew-vi",
99     "ocaml-mlgmpidl",
100     "ocaml-mlmpfr",
101     "ocaml-mtime",
102     "ocamlmod",
103     "ocaml-mysql",
104     "ocaml-newt",
105     "ocaml-num",
106     "ocaml-obuild",
107     "ocaml-ocamlbuild",
108     "ocaml-ocamlgraph",
109     "ocaml-ocamlnet",
110     "ocaml-ocp-indent",
111     "ocaml-ocplib-endian",
112     "ocaml-ocplib-simplex",
113     "ocaml-octavius",
114     "ocaml-odoc",
115     "ocaml-odoc-parser",
116     "ocaml-omake",
117     "ocaml-opam-file-format",
118     "ocaml-ounit",
119     "ocaml-parmap",
120     "ocaml-parsexp",
121     "ocaml-pcre",
122     "ocaml-perl4caml",
123     "ocaml-postgresql",
124     "ocaml-pp",
125     "ocaml-ppx-assert",
126     "ocaml-ppx-base",
127     "ocaml-ppx-cold",
128     "ocaml-ppx-compare",
129     "ocaml-ppx-custom-printf",
130     "ocaml-ppx-derivers",
131     "ocaml-ppx-deriving",
132     "ocaml-ppx-deriving-yaml",
133     "ocaml-ppx-deriving-yojson",
134     "ocaml-ppx-enumerate",
135     "ocaml-ppx-expect",
136     "ocaml-ppx-fields-conv",
137     "ocaml-ppx-globalize",
138     "ocaml-ppx-hash",
139     "ocaml-ppx-here",
140     "ocaml-ppx-import",
141     "ocaml-ppx-inline-test",
142     "ocaml-ppx-js-style",
143     "ocaml-ppx-let",
144     "ocaml-ppxlib",
145     "ocaml-ppx-optcomp",
146     "ocaml-ppx-sexp-conv",
147     "ocaml-ppx-stable-witness",
148     "ocaml-ppx-variants-conv",
149     "ocaml-psmt2-frontend",
150     "ocaml-ptmap",
151     "ocaml-pyml",
152     "ocaml-qcheck",
153     "ocaml-qtest",
154     "ocaml-re",
155     "ocaml-react",
156     "ocaml-res",
157     "ocaml-result",
158     "ocaml-rresult",
159     "ocaml-SDL",
160     "ocaml-sedlex",
161     "ocaml-sexplib",
162     "ocaml-sexplib0",
163     "ocaml-sha",
164     "ocaml-sqlite",
165     "ocaml-ssl",
166     "ocaml-stdcompat",
167     "ocaml-stdio",
168     "ocaml-time-now",
169     "ocaml-topkg",
170     "ocaml-trie",
171     "ocaml-tyxml",
172     "ocaml-uucd",
173     "ocaml-uucp",
174     "ocaml-uunf",
175     "ocaml-uuseg",
176     "ocaml-uutf",
177     "ocaml-variantslib",
178     "ocaml-version",
179     "ocaml-xml-light",
180     "ocaml-xmlm",
181     "ocaml-xmlrpc-light",
182     "ocaml-yaml",
183     "ocaml-yojson",
184     "ocaml-zarith",
185     "ocaml-zed",
186     "ocaml-zip",
187     "ocaml-zmq",
188
189     "alt-ergo",
190     "apron",
191     "brltty",
192     "coccinelle",
193     "coq",
194     "flocq",
195     "frama-c",
196     "gappalib-coq",
197     "graphviz",
198     "haxe",
199     "hevea",
200     "hivex",
201     "libguestfs",
202     "libnbd",
203     "opam",
204     "plplot",
205     "prooftree",
206     "supermin",
207     "swig",
208     "utop",
209     "virt-top",
210     "virt-v2v",
211     "why3",
212     "z3",
213     "zenon",
214
215     # Causes a cyclic dependency between libnbd <-> nbdkit.  We need
216     # to fix this in goals itself, but in the meantime disable nbdkit
217     # and build it by hand.
218     #"nbdkit",
219 ]
220
221 # Get the list of source packages.
222 pure function get-source-packages () returning strings = {
223     cd %fedora-dir
224     for pkg in %packages; do
225         spec=$pkg/%fedora-branch/$pkg.spec
226         if [ -f $spec ]; then
227             # Check that the spec file excludes i686.
228             # Only implement this check for ocaml-* packages, as the
229             # other packages are more complicated.
230             if [[ "$spec" =~ ^ocaml ]] &&
231                ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then
232                 echo "ERROR: $pkg does not ExcludeArch: %%{ix86}" >&2
233                 exit 1
234             fi
235             # OK to rebuild this package.
236             echo "$pkg"
237         elif [ -f $pkg/%fedora-branch/dead.package ]; then
238             echo "WARNING: $pkg: is a dead package, ignored" >&2
239         else
240             echo "$pkg: package is not checked out locally" >&2
241             exit 1
242         fi
243     done
244 }
245 let fedora-source-packages = get-source-packages ()
246
247 # Main goal: Rebuild all packages in Koji.
248 goal all = : wrap ("is-koji-built", fedora-source-packages)