From 5ddf9aec3474a08bda2b5fac05330951e152c5ff Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Wed, 8 Mar 2023 11:40:32 +0100 Subject: [PATCH] UBUNTU: SAUCE: Makefile: replace rsync with tar rsync has been removed from the i386 archives starting with lunar, causing build errors when generating kernel packages for this architecture. Replace rsync with tar for now, until we decide to drop i386 completely. Signed-off-by: Andrea Righi --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 73790e121794..bc5eb9302151 100644 --- a/Makefile +++ b/Makefile @@ -1281,8 +1281,9 @@ export INSTALL_HDR_PATH = $(objtree)/usr quiet_cmd_headers_install = INSTALL $(INSTALL_HDR_PATH)/include cmd_headers_install = \ mkdir -p $(INSTALL_HDR_PATH); \ - rsync -mrl --include='*/' --include='*\.h' --exclude='*' \ - usr/include $(INSTALL_HDR_PATH) + find usr/include -type f -name '*.h' -print0 | \ + tar -czf - --null --no-recursion --no-wildcards-match-slash -T- | \ + tar -xzf - --strip-components=1 -C $(INSTALL_HDR_PATH) PHONY += headers_install headers_install: headers