File 4731-erts-Fix-nif_SUITE-Makefile-for-SunOS.patch of Package erlang

From 71ae302f8c0f32463d93ce9bffbbbf509e064a7e Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Mon, 17 Feb 2020 19:16:40 +0100
Subject: [PATCH] erts: Fix nif_SUITE Makefile for SunOS

where sed does not understand "-i" option.
---
 erts/emulator/test/nif_SUITE_data/Makefile.src | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/erts/emulator/test/nif_SUITE_data/Makefile.src b/erts/emulator/test/nif_SUITE_data/Makefile.src
index 156bb99087..69dd2d6757 100644
--- a/erts/emulator/test/nif_SUITE_data/Makefile.src
+++ b/erts/emulator/test/nif_SUITE_data/Makefile.src
@@ -27,5 +27,5 @@ DRIVER_DIR = ../erl_drv_thread_SUITE_data
 WSL=@WSL@
 
 basic.c rwlock.c tsd.c: $(DRIVER_DIR)/$@
-	$(WSL) cat head.txt $(DRIVER_DIR)/$@ tail.txt > $@
-	$(WSL) sed -e 's/erl_drv_/enif_/g' -e 's/driver_/enif_/g' -e 's/ErlDrv/ErlNif/g' -i.bak $@
+	$(WSL) sed -e 's/erl_drv_/enif_/g' -e 's/driver_/enif_/g' -e 's/ErlDrv/ErlNif/g' $(DRIVER_DIR)/$@ > $@.tmp
+	$(WSL) cat head.txt $@.tmp tail.txt > $@
-- 
2.16.4

openSUSE Build Service is sponsored by