From f06c20b58924e3b4429ec628da794cf1f8249224 Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Sat, 10 Jan 2026 15:02:42 +0100 Subject: [PATCH] fix: use pax instead of tar for pkg payload extraction macOS pkg Payloads are gzip-compressed cpio archives. BSD tar (default on macOS) handles these via libarchive auto-detection, but GNU tar cannot. Using pax avoids this issue as it's a native macOS tool that handles gzip+cpio archives directly and is unlikely to be aliased. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff96d854..038e428f 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,7 @@ install: installer-pkg @if [ -z "$(SUDO)" ] ; then \ temp_dir=$$(mktemp -d) ; \ xar -xf $(PKG_PATH) -C $${temp_dir} ; \ - (cd $${temp_dir} && tar -xf Payload -C "$(DEST_DIR)") ; \ + (cd "$(DEST_DIR)" && pax -rz -f $${temp_dir}/Payload) ; \ rm -rf $${temp_dir} ; \ else \ $(SUDO) installer -pkg $(PKG_PATH) -target / ; \