Skip to content

Commit

Permalink
macOS build fixes (RedisJSON-related) (#2151)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafie committed Jul 29, 2021
1 parent f4b0d05 commit babd6ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .circleci/ci_diag_san12.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ make nightly
make SAN=$JSON_SAN_MODE
export REJSON_PATH=$ROOT/deps/RedisJSON/target/x86_64-unknown-linux-gnu/debug/rejson.so

COMPAT_DIR="$ROOT/build-${mode}" make -C $ROOT test CTEST_ARGS="--output-on-failure" -j$CI_CONCURRENCY
COMPAT_DIR="$ROOT/build-${mode}" make -C $ROOT test CTEST_ARGS="--output-on-failure" CTEST_PARALLEL="$CI_CONCURRENCY"
25 changes: 15 additions & 10 deletions sbin/get-redisjson
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ROOT=$(cd $HERE/.. && pwd)
READIES=$ROOT/deps/readies
. $READIES/shibumi/defs

if [[ "$1" == "--help" || "$1" == "help" || "$HELP" == "1" ]]; then
if [[ $1 == --help || $1 == help || $HELP == 1 ]]; then
cat <<-END
Get RedisJSON module binaries
Expand All @@ -28,15 +28,15 @@ fi
BRANCH=${BRANCH:-master}

OP=""
[[ "$NOP" == "1" ]] && OP=echo
[[ $NOP == 1 ]] && OP=echo

os="$($READIES/bin/platform --os)"
arch="$($READIES/bin/platform --arch)"

if [[ ! -z "$REPO_PATH" ]]; then
if [[ ! -z $REPO_PATH ]]; then
platform="$($READIES/bin/platform -t)"
else
if [[ "$os" != "linux" || "$arch" != "x64" ]]; then
if [[ $os != linux && $os != macos || $arch != x64 ]]; then
eprint "Cannot match binary artifacts - build RedisJSON and set REPO_PATH"
exit 1
fi
Expand Down Expand Up @@ -67,11 +67,8 @@ else
else
nick="rhel7"
fi
elif [[ ! -z "$OSNICK" ]]; then
elif [[ ! -z $OSNICK ]]; then
nick=$OSNICK
else
eprint "Cannot match binary artifacts - build RedisJSON and set REPO_PATH"
exit 1
fi
platform="${os}-${nick}-${arch}"
fi
Expand All @@ -98,7 +95,10 @@ if [[ -z $REPO_PATH ]]; then
fi
else
F_MOD_RAMP="${REPO_PATH}/artifacts/snapshots/${MOD_RAMP}"
[[ ! -f $F_MOD_RAMP ]] && { eprint "$F_MOD_RAMP is missing"; exit 1; }
if [[ ! -f $F_MOD_RAMP ]]; then
eprint "$F_MOD_RAMP is missing - build RedisJSON and set REPO_PATH"
exit 1
fi
fi

$OP unzip -q $F_MOD_RAMP -d $WORK_DIR
Expand All @@ -108,5 +108,10 @@ if [[ -e ${DEST_REJSON_DIR} ]]; then
fi
# $OP mv $WORK_DIR $DEST_REJSON_DIR
$OP rsync -a --no-owner --no-group --remove-source-files $WORK_DIR/* $DEST_REJSON_DIR

echo "RedisJSON installed into ${DEST_REJSON_DIR}:"
$OP du -ah --apparent-size $DEST_REJSON_DIR
if [[ $os == linux ]]; then
$OP du -ah --apparent-size $DEST_REJSON_DIR
else
$OP du -ah $DEST_REJSON_DIR
fi

0 comments on commit babd6ea

Please sign in to comment.