Skip to content

Instantly share code, notes, and snippets.

@id
Last active November 13, 2025 21:21
Show Gist options
  • Select an option

  • Save id/e3568df90a80619cfcbf344f47f1d67b to your computer and use it in GitHub Desktop.

Select an option

Save id/e3568df90a80619cfcbf344f47f1d67b to your computer and use it in GitHub Desktop.
el7.patch r59
diff --git a/Makefile b/Makefile
index 0be69b51..1b9c8334 100644
--- a/Makefile
+++ b/Makefile
@@ -56,11 +56,13 @@ ensure-hex:
.PHONY: ensure-mix-rebar3
ensure-mix-rebar3: $(REBAR)
- @mix local.rebar rebar3 $(CURDIR)/rebar3 --if-missing --force
+ mkdir -p /root/.mix/elixir/1-18
+ cp /usr/local/bin/rebar3 /root/.mix/elixir/1-18/
.PHONY: ensure-mix-rebar
ensure-mix-rebar: $(REBAR)
- @mix local.rebar --if-missing --force
+ mkdir -p /root/.mix/elixir/1-18
+ cp /usr/local/bin/rebar3 /root/.mix/elixir/1-18/
.PHONY: elixir-common-deps
diff --git a/scripts/buildx.sh b/scripts/buildx.sh
index 38e51fcc..e064c49b 100755
--- a/scripts/buildx.sh
+++ b/scripts/buildx.sh
@@ -165,7 +165,7 @@ HOST_SYSTEM="$(./scripts/get-distro.sh)"
BUILDER_SYSTEM="${BUILDER_SYSTEM:-$(echo "$EMQX_BUILDER" | awk -F'-' '{print $NF}')}"
if [[ "${PKGTYPE}" != 'rel' && "${PKGTYPE}" != 'relup' ]]; then
- CMD_RUN="make ${MAKE_TARGET} && ./scripts/pkg-tests.sh ${MAKE_TARGET}"
+ CMD_RUN="mkdir -p /root/.config/rebar3 && echo '{hex, [{ssl_options, [{middlebox_comp_mode, false}]}]}.' > /root/.config/rebar3/rebar.config && make ${MAKE_TARGET} && ./scripts/pkg-tests.sh ${MAKE_TARGET}"
else
CMD_RUN="make ${MAKE_TARGET}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment