5 let fedora-dir = "%HOME/d/fedora"
7 let fedora-branch = "rawhide"
8 #let fedora-branch = "f34"
9 let fedora-tag = "f38-build-side-62208"
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"
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
38 "ocaml-bigarray-compat",
48 "ocaml-camlp-streams",
51 "ocaml-charinfo-width",
55 "ocaml-compiler-libs-janestreet",
66 # Cyclic dependency ocaml-dune -> ocaml-pp -> ocaml-dune
83 "ocaml-jane-street-headers",
103 "ocaml-migrate-parsetree",
117 "ocaml-ocplib-endian",
118 "ocaml-ocplib-simplex",
123 "ocaml-opam-file-format",
135 "ocaml-ppx-custom-printf",
136 "ocaml-ppx-derivers",
137 "ocaml-ppx-deriving",
138 "ocaml-ppx-deriving-yojson",
139 "ocaml-ppx-enumerate",
141 "ocaml-ppx-fields-conv",
145 "ocaml-ppx-inline-test",
146 "ocaml-ppx-js-style",
150 "ocaml-ppx-sexp-conv",
151 "ocaml-ppx-variants-conv",
152 "ocaml-psmt2-frontend",
186 "ocaml-xmlrpc-light",
220 # Causes a cyclic dependency between libnbd <-> nbdkit. We need
221 # to fix this in goals itself, but in the meantime disable nbdkit
222 # and build it by hand.
226 # Get the list of source packages.
227 pure function get-source-packages () returning strings = {
229 for pkg in %packages; do
230 spec=$pkg/%fedora-branch/$pkg.spec
231 if [ -f $spec ]; then
232 # Check that all spec files have disabled the broken
233 # "package notes" misfeature.
234 if ! grep -sq "%%undefine _package_note_flags" $spec ; then
235 echo "ERROR: $pkg does not %%undefine _package_note_flags" >&2
238 # OK to rebuild this package.
240 elif [ -f $pkg/%fedora-branch/dead.package ]; then
241 echo "WARNING: $pkg: is a dead package, ignored" >&2
243 echo "$pkg: package is not checked out locally" >&2
248 let fedora-source-packages = get-source-packages ()
250 # Main goal: Rebuild all packages in Koji.
251 goal all = : wrap ("is-koji-built", fedora-source-packages)