5 let fedora-dir = "%HOME/d/fedora"
7 let fedora-branch = "rawhide"
8 #let fedora-branch = "f34"
9 let fedora-tag = "f39-build-side-69760"
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"
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"
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",
27 # All OCaml-related source package names
37 "ocaml-bigarray-compat",
47 "ocaml-camlp-streams",
52 "ocaml-compiler-libs-janestreet",
79 "ocaml-jane-street-headers",
110 "ocaml-ocplib-endian",
111 "ocaml-ocplib-simplex",
116 "ocaml-opam-file-format",
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",
135 "ocaml-ppx-fields-conv",
136 "ocaml-ppx-globalize",
140 "ocaml-ppx-inline-test",
141 "ocaml-ppx-js-style",
145 "ocaml-ppx-sexp-conv",
146 "ocaml-ppx-stable-witness",
147 "ocaml-ppx-variants-conv",
148 "ocaml-psmt2-frontend",
180 "ocaml-xmlrpc-light",
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.
220 # Get the list of source packages.
221 pure function get-source-packages () returning strings = {
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
234 # OK to rebuild this package.
236 elif [ -f $pkg/%fedora-branch/dead.package ]; then
237 echo "WARNING: $pkg: is a dead package, ignored" >&2
239 echo "$pkg: package is not checked out locally" >&2
244 let fedora-source-packages = get-source-packages ()
246 # Main goal: Rebuild all packages in Koji.
247 goal all = : wrap ("is-koji-built", fedora-source-packages)