mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/brew-overrides.sh

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
e76f14
# The kernel package doesn't install unless xfsprogs >= 4.3.0
e76f14
# is installed.
e76f14
xfsprogs="$(brew -q latest-pkg rhel-7.3-candidate xfsprogs |
e76f14
            awk '{print $1}')"
ffd6ed
e76f14
# linux-firmware is for virt-p2v, see RHBZ#1364419
e76f14
linux_firmware="$(brew -q latest-pkg rhel-7.3-candidate linux-firmware |
e76f14
                  awk '{print $1}')"
e76f14
e76f14
# libsemanage.so.1 is needed by new selinux-policy package in 7.3.
ffd6ed
pkgs="
e76f14
  copy-jdk-configs-1.1-5.el7
e76f14
  $linux_firmware
e76f14
  mozjs17-17.0.0-19.el7
e76f14
  ocaml-4.01.0-22.7.el7
e76f14
  polkit-0.112-9.el7
e76f14
  systemd-219-24.el7
e76f14
  supermin-5.1.16-4.el7
e76f14
  $xfsprogs
ffd6ed
"
e76f14
ffd6ed
for pkg in $pkgs ; do
e76f14
    brew tag-pkg rhel-7.3-temp-override $pkg
ffd6ed
done
ffd6ed
ffd6ed
for pkg in $pkgs ; do
e76f14
    brew wait-repo rhel-7.3-build --build=$pkg
ffd6ed
done