Skip to content

Commit 36bf6fb

Browse files
committedApr 28, 2022
8285728: Alpine Linux build fails with busybox tar
Reviewed-by: erikj, stuefe
1 parent 091637c commit 36bf6fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎make/autoconf/basic_tools.m4

+6-1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ AC_DEFUN([BASIC_CHECK_TAR],
269269
TAR_TYPE="bsd"
270270
elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
271271
TAR_TYPE="bsd"
272+
elif test "x$($TAR --version | $GREP "busybox")" != "x"; then
273+
TAR_TYPE="busybox"
272274
elif test "x$OPENJDK_BUILD_OS" = "xaix"; then
273275
TAR_TYPE="aix"
274276
fi
@@ -280,9 +282,12 @@ AC_DEFUN([BASIC_CHECK_TAR],
280282
TAR_SUPPORTS_TRANSFORM="true"
281283
elif test "x$TAR_TYPE" = "aix"; then
282284
# -L InputList of aix tar: name of file listing the files and directories
283-
# that need to be archived or extracted
285+
# that need to be archived or extracted
284286
TAR_INCLUDE_PARAM="L"
285287
TAR_SUPPORTS_TRANSFORM="false"
288+
elif test "x$TAR_TYPE" = "xbusybox"; then
289+
TAR_INCLUDE_PARAM="T"
290+
TAR_SUPPORTS_TRANSFORM="false"
286291
else
287292
TAR_INCLUDE_PARAM="I"
288293
TAR_SUPPORTS_TRANSFORM="false"

0 commit comments

Comments
 (0)
Please sign in to comment.