File 0882-Correct-cleaning-of-bootstrap-bin.patch of Package erlang

From 1122794b179cbd94ad250e619086e6e2f109fadd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Tue, 22 Mar 2022 09:10:27 +0100
Subject: [PATCH] Correct cleaning of bootstrap/bin

23e45f4aa6d521 added inet_gethost to the bootstrap in the directory
bootstrap/bin/$(TARGET). If $(TARGET) contained a "." (such as it would
on macOS), the bootstrap_clean target would fail because the wildcard
"*.*" would match $(TARGET). Avoid the problem by using a more specific
wildcard.
---
 Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 8faeb9a597..28567ddaa5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1244,7 +1244,7 @@ bootstrap_clean:
 	$(V_at)rm -f $(ERL_TOP)/bootstrap/lib/*/include/*.hrl
 	$(V_at)rm -f $(ERL_TOP)/bootstrap/primary_compiler/ebin/*
 	$(V_at)rm -f $(ERL_TOP)/bootstrap/primary_compiler/egen/*
-	$(V_at)rm -f $(ERL_TOP)/bootstrap/bin/*.*
+	$(V_at)rm -f $(ERL_TOP)/bootstrap/bin/*.boot
 	$(V_at)rm -f $(KERNEL_PRELOAD:%=$(ERL_TOP)/lib/kernel/ebin/%.beam)
 	$(V_at)test $(BOOTSTRAP_ROOT) = $(ERL_TOP) \
 		|| $(MAKE) BOOTSTRAP_ROOT=$(BOOTSTRAP_ROOT) bootstrap_root_clean
-- 
2.34.1

openSUSE Build Service is sponsored by