5 let fedora-dir = "%HOME/d/fedora"
7 let fedora-branch = "rawhide"
8 #let fedora-branch = "f34"
9 let fedora-tag = "f37-build-side-54560"
11 # The magic string that must appear in %changelog when the
12 # package has been rebuilt.
13 let fedora-rebuild-name = "OCaml 4.14.0 rebuild"
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
38 "ocaml-bigarray-compat",
50 "ocaml-charinfo-width",
54 "ocaml-compiler-libs-janestreet",
81 "ocaml-jane-street-headers",
82 # "ocaml-jsonm", https://bugzilla.redhat.com/show_bug.cgi?id=1183825
102 "ocaml-migrate-parsetree",
116 "ocaml-ocplib-endian",
117 "ocaml-ocplib-simplex",
122 "ocaml-opam-file-format",
133 "ocaml-ppx-custom-printf",
134 "ocaml-ppx-derivers",
135 "ocaml-ppx-deriving",
136 "ocaml-ppx-deriving-yojson",
137 "ocaml-ppx-enumerate",
139 "ocaml-ppx-fields-conv",
142 "ocaml-ppx-inline-test",
143 "ocaml-ppx-js-style",
147 "ocaml-ppx-sexp-conv",
148 "ocaml-ppx-variants-conv",
149 "ocaml-psmt2-frontend",
181 "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 all spec files have disabled the broken
227 # "package notes" misfeature.
228 if ! grep -sq "%%undefine _package_note_flags" $spec ; then
229 echo "ERROR: $pkg does not %%undefine _package_note_flags"
232 # OK to rebuild this package.
234 elif [ -f $pkg/%fedora-branch/dead.package ]; then
235 echo "WARNING: $pkg: is a dead package, ignored" >&2
237 echo "$pkg: package is not checked out locally" >&2
242 let fedora-source-packages = get-source-packages ()
244 # Main goal: Rebuild all packages in Koji.
245 goal all = : wrap ("is-koji-built", fedora-source-packages)