aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@oath.com>2019-01-03 22:53:02 +0100
committerArnstein Ressem <aressem@oath.com>2019-01-03 22:53:02 +0100
commite8b63cef4bb9f0d6bafcf9f7bc4072434b7ceeb6 (patch)
treed5d430e83f2dc13c3fe35a8321c3f15a25e4d4f5 /docker
parentf4a5dd6d202bd6ca5aba9a878947ade59659dd5b (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-xdocker/build/build-vespa-internal.sh5
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