Skip to content

Commit 8897fcc

Browse files
fix: use pax instead of tar for pkg payload extraction (apple#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.
1 parent dbec1db commit 8897fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ install: installer-pkg
8585
@if [ -z "$(SUDO)" ] ; then \
8686
temp_dir=$$(mktemp -d) ; \
8787
xar -xf $(PKG_PATH) -C $${temp_dir} ; \
88-
(cd $${temp_dir} && tar -xf Payload -C "$(DEST_DIR)") ; \
88+
(cd "$(DEST_DIR)" && pax -rz -f $${temp_dir}/Payload) ; \
8989
rm -rf $${temp_dir} ; \
9090
else \
9191
$(SUDO) installer -pkg $(PKG_PATH) -target / ; \

0 commit comments

Comments
 (0)