Skip to content

Commit 9684819

Browse files
committed
8285728: Alpine Linux build fails with busybox tar
Backport-of: 36bf6fbe0839cebce5e66ba680a73353703152aa
1 parent d1485e3 commit 9684819

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

make/autoconf/basic_tools.m4

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ AC_DEFUN([BASIC_CHECK_TAR],
270270
TAR_TYPE="bsd"
271271
elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
272272
TAR_TYPE="bsd"
273+
elif test "x$($TAR --version | $GREP "busybox")" != "x"; then
274+
TAR_TYPE="busybox"
273275
elif test "x$OPENJDK_BUILD_OS" = "xaix"; then
274276
TAR_TYPE="aix"
275277
fi
@@ -281,9 +283,12 @@ AC_DEFUN([BASIC_CHECK_TAR],
281283
TAR_SUPPORTS_TRANSFORM="true"
282284
elif test "x$TAR_TYPE" = "aix"; then
283285
# -L InputList of aix tar: name of file listing the files and directories
284-
# that need to be archived or extracted
286+
# that need to be archived or extracted
285287
TAR_INCLUDE_PARAM="L"
286288
TAR_SUPPORTS_TRANSFORM="false"
289+
elif test "x$TAR_TYPE" = "xbusybox"; then
290+
TAR_INCLUDE_PARAM="T"
291+
TAR_SUPPORTS_TRANSFORM="false"
287292
else
288293
TAR_INCLUDE_PARAM="I"
289294
TAR_SUPPORTS_TRANSFORM="false"

0 commit comments

Comments
 (0)