* dependent packages.
*)
let blocked = [
- "ocaml-bitstring"; (* needs upstream fix for 4.02.0 *)
-
"ocaml-mikmatch"; (* build failure on 4.02.0 *)
"ocaml-omake"; (* build failure on 4.02.0 with hevea *)
"ocaml-p3l"; (* build failure on 4.02.0 -warn-error A *)
let ignored = [
"ocaml-srpm-macros"; (* don't need to build this *)
"ocaml"; (* rebuilt by hand *)
- "ocaml-findlib"; (* rebuilt by hand *)
- "ocaml-camlidl"; (* rebuilt by orionp *)
"whenjobs"; (* obsolete *)
"libguestfs"; (* rebuilt by hand *)
"graphviz"; (* rebuilt by hand *)
printf "final list of source packages = %s\n%!"
(String.concat " " source_packages)
+(* We could make this a goal, but it's cheap enough to run it unconditionally. *)
+let install_build_dependencies pkg =
+ sh "sudo yum clean all --disablerepo=\\* --enablerepo=%s"
+ (quote yum_repo);
+ sh "sudo yum-builddep -y --disablerepo=\\* --enablerepo=%s %s"
+ (quote yum_repo) (fedora_specfile pkg branch)
+
(* Goal: rebuild all packages. *)
let rec goal all () =
List.iter (fun pkg -> require (rebuild_started pkg)) source_packages
target (memory_exists key);
- (* Do a local test build to ensure the Koji build will work. *)
+ install_build_dependencies pkg;
+
+ (* Do a local test build to ensure the Koji build will work. *)
sh "
cd %s
- sudo yum-builddep -y --disablerepo=\\* --enablerepo=%s %s
- fedpkg local
- " (fedora_repo pkg branch)
- (quote yum_repo)
- (fedora_specfile pkg branch);
+ fedpkg local
+ " (fedora_repo pkg branch);
memory_set key "1"
git pull --rebase
" repodir;
- sh "sudo yum-builddep -y --disablerepo=\\* --enablerepo=%s %s"
- (quote yum_repo) specfile;
+ install_build_dependencies pkg;
(* For rationale behind always bumping the spec file, see comment
* in 'fedora.ml'.