From 2352ec359ecb10d2de93ebf14abc394bdab788df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 7 Jul 2025 19:15:18 +0200 Subject: test/core_elixir.mk: Patch `reloader` Makefile to be compatible with BSD sed Its Makefile called sed(1) in a way that was only compatible with GNU sed. As a consequence, the build failed with BSD sed. Now, the test case fetches dependencies and patches `reloader`'s Makefile to use a sed(1) script compatible with both implementations of sed(1). --- test/core_elixir.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/core_elixir.mk b/test/core_elixir.mk index c2cec70..920b5cb 100644 --- a/test/core_elixir.mk +++ b/test/core_elixir.mk @@ -146,6 +146,16 @@ core-elixir-disable-autopatch-make: init $i "Disable Elixir in the Makefile" $t perl -ni.bak -e 'print;if ($$.==1) {print "ELIXIR = disable\n"}' $(APP)/Makefile + $i "Fetch dependencies to patch 'reloader'" + $t $(MAKE) -C $(APP) fetch-deps $v + +# Patch `reloader` Makefile to be compatible with BSD sed. Its Makefile called +# sed(1) in a way that was only compatible with GNU sed. As a consequence, the +# build failed with BSD sed. + $i "Patch sed(1) use in Makefile" + $t test -f $(APP)/deps/reloader/Makefile + $t perl -pi.bak -e 's/\@sed/\@sed -E/;' -e 'if (/sed/) { s/{/\\{/g; s/}/\\}/g; s/\\s\*//; }' $(APP)/deps/reloader/Makefile + $i "Building the application should work as Reloader contains a proper Makefile" $t $(MAKE) -C $(APP) $v -- cgit v1.2.3