package/flutter-engine: use appropriate TAR

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Adam Duskett <adam.duskett@amarulasolutions.com>
[Arnout: quote TAR="..."]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 68fd0009e3)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Yann E. MORIN 2024-06-05 19:53:16 +02:00 committed by Peter Korsgaard
parent 14ce0332e1
commit 892de65e7d
2 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,7 @@ endif
# Generate a tarball if one does not already exist. # Generate a tarball if one does not already exist.
define FLUTTER_ENGINE_GENERATE_TARBALL define FLUTTER_ENGINE_GENERATE_TARBALL
TAR="$(TAR)" \
PATH=$(HOST_DIR)/share/depot_tools:$(BR_PATH) \ PATH=$(HOST_DIR)/share/depot_tools:$(BR_PATH) \
PYTHONPATH=$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR) \ PYTHONPATH=$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR) \
PUB_CACHE=$(FLUTTER_SDK_BIN_PUB_CACHE) \ PUB_CACHE=$(FLUTTER_SDK_BIN_PUB_CACHE) \

View File

@ -70,7 +70,7 @@ gen_tarball() {
# - it insists on having a full git repositoy, with .git et al., which means # - it insists on having a full git repositoy, with .git et al., which means
# we can't generate a reproducible archive anyway. # we can't generate a reproducible archive anyway.
# So we jsut create a plain tarball. # So we jsut create a plain tarball.
tar -C "${SCRATCH_DIR}"/src -czf "${TARBALL_NAME}" . ${TAR} -C "${SCRATCH_DIR}"/src -czf "${TARBALL_NAME}" .
mv "${TARBALL_NAME}" "${TARBALL_DL_PATH}" mv "${TARBALL_NAME}" "${TARBALL_DL_PATH}"
} }