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",
21 # All OCaml-related source package names
32 "ocaml-bigarray-compat",
42 "ocaml-camlp-streams",
45 "ocaml-charinfo-width",
49 "ocaml-compiler-libs-janestreet",
60 # Cyclic dependency ocaml-dune -> ocaml-pp -> ocaml-dune
77 "ocaml-jane-street-headers",
78 # "ocaml-jsonm", https://bugzilla.redhat.com/show_bug.cgi?id=1183825
98 "ocaml-migrate-parsetree",
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-yojson",
134 "ocaml-ppx-enumerate",
136 "ocaml-ppx-fields-conv",
139 "ocaml-ppx-inline-test",
140 "ocaml-ppx-js-style",
144 "ocaml-ppx-sexp-conv",
145 "ocaml-ppx-variants-conv",
146 "ocaml-psmt2-frontend",
177 "ocaml-xmlrpc-light",
210 # Causes a cyclic dependency between libnbd <-> nbdkit. We need
211 # to fix this in goals itself, but in the meantime disable nbdkit
212 # and build it by hand.
216 # Get the list of source packages.
217 pure function get-source-packages () returning strings = {
219 for pkg in %packages; do
220 spec=$pkg/%fedora-branch/$pkg.spec
221 if [ -f $spec ]; then
222 # Check that all spec files have disabled the broken
223 # "package notes" misfeature.
224 if ! grep -sq "%%undefine _package_note_flags" $spec ; then
225 echo "ERROR: $pkg does not %%undefine _package_note_flags" >&2
228 # OK to rebuild this package.
230 elif [ -f $pkg/%fedora-branch/dead.package ]; then
231 echo "WARNING: $pkg: is a dead package, ignored" >&2
233 echo "$pkg: package is not checked out locally" >&2
238 let fedora-source-packages = get-source-packages ()
240 # Main goal: Rebuild all packages in Koji.
241 goal all = : wrap ("is-koji-built", fedora-source-packages)