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
31 # Temporarily disable because python3 flake8 is not installable
38 "ocaml-bigarray-compat",
48 "ocaml-camlp-streams",
49 # Waiting on two dependencies to be reviewed
54 "ocaml-compiler-libs-janestreet",
81 "ocaml-jane-street-headers",
112 "ocaml-ocplib-endian",
113 "ocaml-ocplib-simplex",
118 "ocaml-opam-file-format",
130 "ocaml-ppx-custom-printf",
131 "ocaml-ppx-derivers",
132 "ocaml-ppx-deriving",
133 "ocaml-ppx-deriving-yaml",
134 "ocaml-ppx-deriving-yojson",
135 "ocaml-ppx-enumerate",
137 "ocaml-ppx-fields-conv",
138 "ocaml-ppx-globalize",
142 "ocaml-ppx-inline-test",
143 "ocaml-ppx-js-style",
147 "ocaml-ppx-sexp-conv",
148 "ocaml-ppx-stable-witness",
149 "ocaml-ppx-variants-conv",
150 "ocaml-psmt2-frontend",
182 "ocaml-xmlrpc-light",
194 # Fails to build, I asked jjames.
213 # Tests fail for unclear reasons.
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.
230 # Get the list of source packages.
231 pure function get-source-packages () returning strings = {
233 for pkg in %packages; do
234 spec=$pkg/%fedora-branch/$pkg.spec
235 if [ -f $spec ]; then
236 # Check that the spec file excludes i686.
237 # Only implement this check for ocaml-* packages, as the
238 # other packages are more complicated.
239 if [[ "$spec" =~ ^ocaml ]] &&
240 ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then
241 echo "ERROR: $pkg does not ExcludeArch: %%{ix86}" >&2
244 # OK to rebuild this package.
246 elif [ -f $pkg/%fedora-branch/dead.package ]; then
247 echo "WARNING: $pkg: is a dead package, ignored" >&2
249 echo "$pkg: package is not checked out locally" >&2
254 let fedora-source-packages = get-source-packages ()
256 # Main goal: Rebuild all packages in Koji.
257 goal all = : wrap ("is-koji-built", fedora-source-packages)