mirror of
https://github.com/apple/container.git
synced 2026-09-15 04:05:37 +00:00
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:
@@ -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 / ; \
|
||||
|
||||
Reference in New Issue
Block a user