From 946427a20b39ec78c1b5e25a105b36b436aada27 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Mon, 31 Oct 2016 14:01:31 +0100 Subject: [PATCH] added ugluy patch for making this work on jessie --- script/cibuild-gh-ost-build-deploy-tarball | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/cibuild-gh-ost-build-deploy-tarball b/script/cibuild-gh-ost-build-deploy-tarball index 13560cc..692b42b 100755 --- a/script/cibuild-gh-ost-build-deploy-tarball +++ b/script/cibuild-gh-ost-build-deploy-tarball @@ -27,3 +27,11 @@ tar cvf $tarball --mode="ugo=rx" bin/ gzip $tarball mkdir -p "$BUILD_ARTIFACT_DIR"/gh-ost cp ${tarball}.gz "$BUILD_ARTIFACT_DIR"/gh-ost/ + +### HACK HACK HACK ### +# Blame @carlosmn. In the good way. +# We don't have any jessie machines for building, but a pure-Go binary depends +# on a version of libc and ld which are widely available, so we can copy the +# tarball over with jessie in its name so we can deploy it on jessie machines. +jessie_tarball_name=$(echo $(basename "${tarball}") | sed s/-precise-/-jessie-/) +cp ${tarball}.gz "$BUILD_ARTIFACT_DIR/gh-ost/${jessie_tarball_name}.gz"