fix: use pax instead of tar for pkg payload extraction (#1038)

- It is common to have `gnu-tar` alongside other GNU tools
  installed and aliased for compatibility reasons. However, this
  breaks the current make build.
- Use BSD-only binaries (no GNU equivalents that are
  commonly aliased), making the Makefile more portable.
This commit is contained in:
Manu Schiller
2026-01-13 19:39:08 -08:00
committed by GitHub
parent dbec1db03e
commit 8897fcc4a0
+1 -1
View File
@@ -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 / ; \