diff options
author | Arnstein Ressem <aressem@oath.com> | 2019-01-03 22:53:02 +0100 |
---|---|---|
committer | Arnstein Ressem <aressem@oath.com> | 2019-01-03 22:53:02 +0100 |
commit | e8b63cef4bb9f0d6bafcf9f7bc4072434b7ceeb6 (patch) | |
tree | d5d430e83f2dc13c3fe35a8321c3f15a25e4d4f5 /docker | |
parent | f4a5dd6d202bd6ca5aba9a878947ade59659dd5b (diff) |
Installing build dependencies via yum-builddep is broken due to removed folder in CentOS sources. Workaround is here.
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/build/build-vespa-internal.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/build/build-vespa-internal.sh b/docker/build/build-vespa-internal.sh index 7f448f087c5..7e88aa77fdf 100755 --- a/docker/build/build-vespa-internal.sh +++ b/docker/build/build-vespa-internal.sh @@ -16,6 +16,11 @@ cd /vespa yum -y install epel-release yum -y install centos-release-scl + +# CentOS messed up the source repo. The source repos are marked as enabled=0, but +# the yum-builddep below does not respect this setting. Hack around it for now. +sed -i 's,http://vault.centos.org/centos/7/sclo/Source/rh/,http://vault.centos.org/centos/7/sclo/Source/sclo/,g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo + yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-7/group_vespa-vespa-epel-7.repo yum-builddep -y ~/rpmbuild/SPECS/vespa-${VESPA_VERSION}.spec |