From 2716cabbf5157c10fbf36ff2cfe2951e7c13a13f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 28 Jan 2022 12:35:26 +0000 Subject: [PATCH] Fix pure noarch build Signed-off-by: Laurent Bercot --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b4818c0..0b755c5 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ TMPDIR := $(OUTPUT)/rootfs-overlay-noarch.tmp $(OUTPUT)/rootfs-overlay-noarch/init: layout/rootfs-overlay/init exec rm -rf $(TMPDIR) + exec mkdir -p $(OUTPUT) exec cp -a layout/rootfs-overlay $(TMPDIR) find $(TMPDIR) -type f -name .empty -print | xargs rm -f -- find $(TMPDIR) -name '*@VERSION@*' -print | while read name ; do mv -f "$$name" `echo "$$name" | sed -e 's/@VERSION@/$(VERSION)/'` ; done @@ -95,6 +96,7 @@ TMPDIR := $(OUTPUT)/syslogd-overlay-noarch.tmp $(OUTPUT)/syslogd-overlay-noarch/etc/s6-overlay/s6-rc.d/syslogd/run: layout/syslogd-overlay/etc/s6-overlay/s6-rc.d/syslogd/run exec rm -rf $(TMPDIR) + exec mkdir -p $(OUTPUT) exec cp -a layout/syslogd-overlay $(TMPDIR) find $(TMPDIR) -type f -name .empty -print | xargs rm -f -- find $(TMPDIR) -name '*@VERSION@*' -print | while read name ; do mv -f "$$name" `echo "$$name" | sed -e 's/@VERSION@/$(VERSION)/'` ; done