ffd6ed
#!/bin/bash -
ffd6ed
ffd6ed
# This script is used when we build libguestfs from brew, as sometimes
ffd6ed
# we require packages which are not available in the current version
ffd6ed
# of RHEL.  Normally these updated packages would be released along
ffd6ed
# with libguestfs in the next RHEL, although unfortunately sometimes
ffd6ed
# that doesn't happen (eg. RHBZ#1199605).
ffd6ed
ffd6ed
set -x
ffd6ed
ffd6ed
# See also:
ffd6ed
# $ brew list-tag-inheritance --reverse rhel-7.2
ffd6ed
# rhel-7.2 (7602)
ffd6ed
#   ├─rhel-7.2-temp-override (7606)
ffd6ed
#   │  └─rhel-7.2-override (7607)
ffd6ed
#   │     └─rhel-7.2-build (7608)
ffd6ed
#   │        ├─rhel-7.2-pesign-build (7609)
ffd6ed
#   │        ├─oracle-java-rhel-7.2-build (7623)
ffd6ed
#   │        ├─extras-rhel-7.2-build (7630)
ffd6ed
#   │        └─rhevh-rhel-7.2-build (7645)
ffd6ed
#   └─rhel-7.2-pending (7603)
ffd6ed
#      ├─rhel-7.2-compose (7605)
ffd6ed
#      └─rhel-7.2-candidate (7604)
ffd6ed
ffd6ed
pkgs="
ffd6ed
  file-5.11-31.el7
ffd6ed
  libvirt-1.2.17-8.el7
ffd6ed
  ocaml-4.01.0-22.6.el7
ffd6ed
  qemu-kvm-1.5.3-102.el7
ffd6ed
  systemd-219-13.el7
ffd6ed
    dracut-033-339.el7
ffd6ed
    initscripts-9.49.28-1.el7
ffd6ed
    kmod-20-5.el7
ffd6ed
"
ffd6ed
for pkg in $pkgs ; do
ffd6ed
    brew tag-pkg rhel-7.2-temp-override $pkg
ffd6ed
done
ffd6ed
ffd6ed
for pkg in $pkgs ; do
ffd6ed
    brew wait-repo rhel-7.2-build --build=$pkg
ffd6ed
done