dart: do not use system tar

Should fix https://github.com/termux/termux-packages/issues/6627.
This commit is contained in:
Henrik Grimler 2021-04-14 07:34:20 +02:00
parent 7d0475d780
commit 6ab8c5b06a
2 changed files with 19 additions and 0 deletions

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_LICENSE_FILE="sdk/LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.12.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"

View File

@ -0,0 +1,18 @@
--- ./sdk/third_party/pkg/pub/lib/src/io.dart.orig 2021-04-14 05:29:00.606101795 +0000
+++ ./sdk/third_party/pkg/pub/lib/src/io.dart 2021-04-14 05:29:41.712685487 +0000
@@ -797,13 +797,13 @@
///
/// [1]: https://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.pdf
String _findTarPath() {
- for (final file in ['/bin/tar', '/usr/bin/tar']) {
+ for (final file in ['@TERMUX_PREFIX@/bin/tar', '@TERMUX_PREFIX@/local/bin/tar']) {
if (fileExists(file)) {
return file;
}
}
log.warning(
- 'Could not find a system `tar` installed in /bin/tar or /usr/bin/tar, '
+ 'Could not find a system `tar` installed in @TERMUX_PREFIX@/tar or @TERMUX_PREFIX@/local/bin/tar, '
'attempting to use tar from PATH');
return 'tar';
}