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 # 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",
20 # These use rpmautospec and must be rebuilt by hand for now.
21 # XXX eventually need to fix stdlib/fedora.gl to deal with these
24 "ocaml-opam-file-format",
28 # All OCaml-related source package names
39 "ocaml-bigarray-compat",
49 "ocaml-camlp-streams",
52 "ocaml-charinfo-width",
56 "ocaml-compiler-libs-janestreet",
67 # Cyclic dependency ocaml-dune -> ocaml-pp -> ocaml-dune
84 "ocaml-jane-street-headers",
85 # "ocaml-jsonm", https://bugzilla.redhat.com/show_bug.cgi?id=1183825
105 "ocaml-migrate-parsetree",
119 "ocaml-ocplib-endian",
120 "ocaml-ocplib-simplex",
125 "ocaml-opam-file-format",
137 "ocaml-ppx-custom-printf",
138 "ocaml-ppx-derivers",
139 "ocaml-ppx-deriving",
140 "ocaml-ppx-deriving-yojson",
141 "ocaml-ppx-enumerate",
143 "ocaml-ppx-fields-conv",
146 "ocaml-ppx-inline-test",
147 "ocaml-ppx-js-style",
151 "ocaml-ppx-sexp-conv",
152 "ocaml-ppx-variants-conv",
153 "ocaml-psmt2-frontend",
184 "ocaml-xmlrpc-light",
217 # Causes a cyclic dependency between libnbd <-> nbdkit. We need
218 # to fix this in goals itself, but in the meantime disable nbdkit
219 # and build it by hand.
223 # Get the list of source packages.
224 pure function get-source-packages () returning strings = {
226 for pkg in %packages; do
227 spec=$pkg/%fedora-branch/$pkg.spec
228 if [ -f $spec ]; then
229 # Check that all spec files have disabled the broken
230 # "package notes" misfeature.
231 if ! grep -sq "%%undefine _package_note_flags" $spec ; then
232 echo "ERROR: $pkg does not %%undefine _package_note_flags"
235 # OK to rebuild this package.
237 elif [ -f $pkg/%fedora-branch/dead.package ]; then
238 echo "WARNING: $pkg: is a dead package, ignored" >&2
240 echo "$pkg: package is not checked out locally" >&2
245 let fedora-source-packages = get-source-packages ()
247 # Main goal: Rebuild all packages in Koji.
248 goal all = : wrap ("is-koji-built", fedora-source-packages)