File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2011, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2011, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -88,6 +88,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
88
88
UTIL_LOOKUP_PROGS(GIT, git)
89
89
UTIL_LOOKUP_PROGS(NICE, nice)
90
90
UTIL_LOOKUP_PROGS(READLINK, greadlink readlink)
91
+ UTIL_LOOKUP_PROGS(WHOAMI, whoami)
91
92
92
93
# These are only needed on some platforms
93
94
UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2015, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2015, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -74,6 +74,11 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
74
74
# Outer [ ] to quote m4.
75
75
[ USERNAME=`$ECHO "$USER" | $TR -d -c '[ a-z] [ A-Z] [ 0-9] '` ]
76
76
77
+ # $USER may be not defined in dockers, so try to check with $WHOAMI
78
+ if test "x$USERNAME" = x && test "x$WHOAMI" != x; then
79
+ [ USERNAME=`$WHOAMI | $TR -d -c '[ a-z] [ A-Z] [ 0-9] '` ]
80
+ fi
81
+
77
82
# Setup username (for use in adhoc version strings etc)
78
83
UTIL_ARG_WITH(NAME: build-user, TYPE: string,
79
84
RESULT: USERNAME,
You can’t perform that action at this time.
0 commit comments