X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Goalfile;h=02c96114cac2854ca4db2ae8b9a084ed7e49be8e;hb=939a1a4cbf210d3d8dc7728d5a77beef0dbf670d;hp=c5154fa33d7fb476d1bd8be9aae41bd5d52e6b96;hpb=6c7870228409d1f1c909fe239b555ab09bfd86d1;p=fedora-ocaml-rebuild.git diff --git a/Goalfile b/Goalfile index c5154fa..02c9611 100644 --- a/Goalfile +++ b/Goalfile @@ -15,12 +15,29 @@ let rebuild-name = "OCaml 4.09.0 for riscv64" # Packages that are blocked. Any dependent packages are also blocked # automatically. -let blocked = [ "ocaml-camlp4" ] +# XXX Not implemented, use ignore for now. +#let blocked = [ "ocaml-camlp4" ] # Packages that are ignored, which means they are treated as if # they have been rebuilt. -#let ignored = [ "ocaml-srpm-macros", "ocaml" ] -let ignored = [ "ocaml-srpm-macros" ] +let ignored = [ "ocaml-srpm-macros", "ocaml", + # These ones are only needed because blocked is not working + "ocaml-camlp4", + "cduce", + "guestfs-browser", + "ocaml-bin-prot", + "ocaml-bisect", + "ocaml-bitstring", + "ocaml-deriving", + "ocaml-json-static", + "ocaml-mikmatch", + "ocaml-openin", + "ocaml-pa-monad", + "ocaml-pgocaml", + "ocaml-sexplib", + "ocaml-type-conv", + "ocamldsort", +] # All OCaml-related source package names let other-packages = [ @@ -30,15 +47,13 @@ let other-packages = [ "why3", "z3", "flocq" # no OCaml code, but needs to be rebuilt after Coq ] -pure function get-source-packages () = { +pure function get-source-packages () returning strings = { cd %fedora-dir - echo '[' for f in ocaml* %other-packages; do - [ -f $f/%branch/$f.spec ] && echo "*built-in-koji(\"$f\")," + [ -f $f/%branch/$f.spec ] && echo "$f" done - echo ']' } -let source-packages = get-source-packages () +let source-packages = wrap ("*built-in-koji", get-source-packages ()) # Main goal: Rebuild all packages. goal all = : source-packages ; @@ -90,7 +105,7 @@ tactic *built-in-koji (pkg) = { } goal rebuild (pkg) = -*built-in-koji ("%pkg") : source-dependencies (pkg) { +*built-in-koji ("%pkg") : wrap ("*built-in-koji", source-dependencies (pkg)) { cd %fedora-dir/%pkg/%branch fedpkg=%fedpkg koji=%koji @@ -103,6 +118,11 @@ goal rebuild (pkg) = $koji wait-repo %side-tag --build=$nvr done + # Make sure the local directory is up to date. + # This should also fail if there are local changes, which + # would need to be corrected/integrated by hand. + git pull + # If the specfile doesn't have the magic string then add # that now. if ! grep -sq %rebuild-name $specfile; then @@ -119,12 +139,11 @@ goal rebuild (pkg) = # Note this is not merely the BuildRequires, since those are # the binary packages. Also this will only find packages # which are in the list of source-packages. -pure function source-dependencies (pkg) = @{ +pure function source-dependencies (pkg) returning strings = @{ specfile=%fedora-dir/%pkg/%branch/%pkg.spec - echo -n Dependencies of %pkg: >&2 + echo Calculating dependencies of %pkg >&2 - echo '[' for r in $(rpmspec -q --buildrequires $specfile 2>/dev/null | awk '{print $1}'); do # Now we examine each *other* source package to see @@ -135,11 +154,8 @@ pure function source-dependencies (pkg) = @{ awk '{print $1}' | grep -sq "^$r\$" then - echo "*built-in-koji(\"$p\")," - echo -n '' $p >&2 + echo "$p" fi done done - echo ']' - echo >&2 }