Skip to content

Commit 5ea14bb

Browse files
committed
Merge
2 parents b61da16 + 242a2e6 commit 5ea14bb

File tree

635 files changed

+9098
-8035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

635 files changed

+9098
-8035
lines changed

.github/workflows/build-cross-compile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
- target-cpu: riscv64
8787
gnu-arch: riscv64
8888
debian-arch: riscv64
89-
debian-repository: https://deb.debian.org/debian-ports
90-
debian-keyring: /usr/share/keyrings/debian-ports-archive-keyring.gpg
89+
debian-repository: https://httpredir.debian.org/debian/
9190
debian-version: sid
9291

9392
steps:
@@ -140,6 +139,7 @@ jobs:
140139
--verbose
141140
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev
142141
--resolve-deps
142+
--variant=minbase
143143
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")
144144
${{ matrix.debian-version }}
145145
sysroot

make/Main.gmk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,7 @@ else
971971
# When creating the BUILDJDK, we don't need to add hashes to java.base, thus
972972
# we don't need to depend on all other jmods
973973
ifneq ($(CREATING_BUILDJDK), true)
974-
java.base-jmod: jrtfs-jar $(filter-out java.base-jmod \
975-
$(addsuffix -jmod, $(call FindAllUpgradeableModules)), $(JMOD_TARGETS))
974+
java.base-jmod: jrtfs-jar $(filter-out java.base-jmod, $(JMOD_TARGETS))
976975
endif
977976

978977
# If not already set, set the JVM target so that the JVM will be built.

make/autoconf/basic.m4

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
406406
# WARNING: This might be a bad thing to do. You need to be sure you want to
407407
# have a configuration in this directory. Do some sanity checks!
408408
409-
if test ! -e "$OUTPUTDIR/spec.gmk"; then
410-
# If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
411-
# other files
409+
if test ! -e "$OUTPUTDIR/spec.gmk" && test ! -e "$OUTPUTDIR/configure-support/generated-configure.sh"; then
410+
# If we have a spec.gmk or configure-support/generated-configure.sh,
411+
# we have run here before and we are OK. Otherwise, check for other files
412412
files_present=`$LS $OUTPUTDIR`
413413
# Configure has already touched config.log and confdefs.h in the current dir when this check
414414
# is performed.
@@ -423,8 +423,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
423423
AC_MSG_NOTICE([Current directory is $CONFIGURE_START_DIR.])
424424
AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here])
425425
AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).])
426-
AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could])
427-
AC_MSG_NOTICE([seriously mess up just about everything.])
426+
AC_MSG_NOTICE([However, this directory is not empty, additionally to some allowed files])
427+
AC_MSG_NOTICE([it contains $filtered_files.])
428+
AC_MSG_NOTICE([This is not allowed, since it could seriously mess up just about everything.])
428429
AC_MSG_NOTICE([Try 'cd $TOPDIR' and restart configure])
429430
AC_MSG_NOTICE([(or create a new empty directory and cd to it).])
430431
AC_MSG_ERROR([Will not continue creating configuration in $CONFIGURE_START_DIR])

make/autoconf/lib-cups.m4

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -68,12 +68,20 @@ AC_DEFUN_ONCE([LIB_SETUP_CUPS],
6868
fi
6969
fi
7070
if test "x$CUPS_FOUND" = xno; then
71-
# Are the cups headers installed in the default /usr/include location?
72-
AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
73-
CUPS_FOUND=yes
74-
CUPS_CFLAGS=
75-
DEFAULT_CUPS=yes
76-
])
71+
# Are the cups headers installed in the default AIX or /usr/include location?
72+
if test "x$OPENJDK_TARGET_OS" = "xaix"; then
73+
AC_CHECK_HEADERS([/opt/freeware/include/cups/cups.h /opt/freeware/include/cups/ppd.h], [
74+
CUPS_FOUND=yes
75+
CUPS_CFLAGS="-I/opt/freeware/include"
76+
DEFAULT_CUPS=yes
77+
])
78+
else
79+
AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
80+
CUPS_FOUND=yes
81+
CUPS_CFLAGS=
82+
DEFAULT_CUPS=yes
83+
])
84+
fi
7785
fi
7886
if test "x$CUPS_FOUND" = xno; then
7987
HELP_MSG_MISSING_DEPENDENCY([cups])

make/autoconf/lib-tests.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
################################################################################
2929

3030
# Minimum supported versions
31-
JTREG_MINIMUM_VERSION=7.2
31+
JTREG_MINIMUM_VERSION=7.3
3232
GTEST_MINIMUM_VERSION=1.13.0
3333

3434
###############################################################################

make/conf/github-actions.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Versions and download locations for dependencies used by GitHub Actions (GHA)
2727

2828
GTEST_VERSION=1.13.0
29-
JTREG_VERSION=7.2+1
29+
JTREG_VERSION=7.3+1
3030

3131
LINUX_X64_BOOT_JDK_EXT=tar.gz
3232
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-x64_bin.tar.gz

make/conf/jib-profiles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,9 @@ var getJibProfilesDependencies = function (input, common) {
11881188
jtreg: {
11891189
server: "jpg",
11901190
product: "jtreg",
1191-
version: "7.2",
1191+
version: "7.3",
11921192
build_number: "1",
1193-
file: "bundles/jtreg-7.2+1.zip",
1193+
file: "bundles/jtreg-7.3+1.zip",
11941194
environment_name: "JT_HOME",
11951195
environment_path: input.get("jtreg", "home_path") + "/bin",
11961196
configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
@@ -1204,7 +1204,7 @@ var getJibProfilesDependencies = function (input, common) {
12041204

12051205
jcov: {
12061206
organization: common.organization,
1207-
revision: "3.0-14-jdk-asm+1.0",
1207+
revision: "3.0-15-jdk-asm+1.0",
12081208
ext: "zip",
12091209
environment_name: "JCOV_HOME",
12101210
},

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBAWT, \
132132
EXCLUDE_FILES := $(LIBAWT_EXFILES), \
133133
OPTIMIZATION := HIGHEST, \
134134
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \
135+
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \
135136
EXTRA_HEADER_DIRS := $(LIBAWT_EXTRA_HEADER_DIRS), \
136137
DISABLED_WARNINGS_gcc_awt_LoadLibrary.c := unused-result, \
137138
DISABLED_WARNINGS_gcc_debug_mem.c := format-nonliteral, \
@@ -448,6 +449,7 @@ else
448449
LIBFREETYPE_LIBS := -lfreetype
449450
endif
450451

452+
# gcc_ftobjs.c := maybe-uninitialized required for GCC 7 builds.
451453
$(eval $(call SetupJdkLibrary, BUILD_LIBFREETYPE, \
452454
NAME := freetype, \
453455
OPTIMIZATION := HIGHEST, \
@@ -456,6 +458,7 @@ else
456458
EXTRA_HEADER_DIRS := $(BUILD_LIBFREETYPE_HEADER_DIRS), \
457459
DISABLED_WARNINGS_microsoft := 4267 4244 4996, \
458460
DISABLED_WARNINGS_gcc := dangling-pointer stringop-overflow, \
461+
DISABLED_WARNINGS_gcc_ftobjs.c := maybe-uninitialized, \
459462
LDFLAGS := $(LDFLAGS_JDKLIB) \
460463
$(call SET_SHARED_LIBRARY_ORIGIN), \
461464
))
@@ -611,7 +614,9 @@ ifeq ($(call isTargetOs, windows), true)
611614
$(eval $(call SetupJdkLibrary, BUILD_LIBJAWT, \
612615
NAME := jawt, \
613616
OPTIMIZATION := LOW, \
614-
CFLAGS := $(CXXFLAGS_JDKLIB) \
617+
CFLAGS := $(CFLAGS_JDKLIB) \
618+
$(LIBJAWT_CFLAGS), \
619+
CXXFLAGS := $(CXXFLAGS_JDKLIB) \
615620
$(LIBJAWT_CFLAGS), \
616621
EXTRA_HEADER_DIRS := $(LIBJAWT_EXTRA_HEADER_DIRS), \
617622
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \
@@ -794,6 +799,8 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
794799
OPTIMIZATION := LOW, \
795800
CFLAGS := $(CFLAGS_JDKLIB) $(LIBSPLASHSCREEN_CFLAGS) \
796801
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS), \
802+
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBSPLASHSCREEN_CFLAGS) \
803+
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS), \
797804
EXTRA_HEADER_DIRS := $(LIBSPLASHSCREEN_HEADER_DIRS), \
798805
DISABLED_WARNINGS_gcc_dgif_lib.c := sign-compare, \
799806
DISABLED_WARNINGS_gcc_jcmaster.c := implicit-fallthrough, \

make/modules/java.security.jgss/Lib.gmk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ ifeq ($(call isTargetOs, windows), true)
4545
$(eval $(call SetupJdkLibrary, BUILD_LIBSSPI_BRIDGE, \
4646
NAME := sspi_bridge, \
4747
OPTIMIZATION := LOW, \
48-
CFLAGS := $(CFLAGS_JDKLIB) \
49-
-I$(TOPDIR)/src/java.security.jgss/share/native/libj2gss, \
48+
EXTRA_HEADER_DIRS := libj2gss, \
49+
CFLAGS := $(CFLAGS_JDKLIB), \
50+
CXXFLAGS := $(CXXFLAGS_JDKLIB), \
5051
LDFLAGS := $(LDFLAGS_JDKLIB) \
5152
$(call SET_SHARED_LIBRARY_ORIGIN), \
5253
LIBS := Secur32.lib, \

make/modules/jdk.accessibility/Launcher.gmk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -43,6 +43,9 @@ ifeq ($(call isTargetOs, windows), true)
4343
CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
4444
-analyze- -Od -Gd -D_WINDOWS \
4545
-D_UNICODE -DUNICODE -RTC1 -EHsc, \
46+
CXXFLAGS := $(filter-out -Zc:wchar_t-, $(CXXFLAGS_JDKEXE)) -Zc:wchar_t \
47+
-analyze- -Od -Gd -D_WINDOWS \
48+
-D_UNICODE -DUNICODE -RTC1 -EHsc, \
4649
DISABLED_WARNINGS_microsoft_jabswitch.cpp := 4267 4996, \
4750
LDFLAGS := $(LDFLAGS_JDKEXE), \
4851
LIBS := advapi32.lib version.lib user32.lib, \
@@ -65,6 +68,7 @@ ifeq ($(call isTargetOs, windows), true)
6568
SRC := $(ACCESSIBILITY_SRCDIR)/jaccessinspector $(ACCESSIBILITY_SRCDIR)/common \
6669
$(ACCESSIBILITY_SRCDIR)/toolscommon $(ACCESSIBILITY_SRCDIR)/bridge, \
6770
CFLAGS := $$(CFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
71+
CXXFLAGS := $$(CXXFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
6872
LDFLAGS := $$(LDFLAGS_JDKEXE) -stack:655360, \
6973
LIBS := advapi32.lib user32.lib, \
7074
VERSIONINFO_RESOURCE := $(ACCESSIBILITY_SRCDIR)/jaccessinspector/jaccessinspectorWindow.rc, \
@@ -86,6 +90,7 @@ ifeq ($(call isTargetOs, windows), true)
8690
SRC := $(ACCESSIBILITY_SRCDIR)/jaccesswalker $(ACCESSIBILITY_SRCDIR)/common \
8791
$(ACCESSIBILITY_SRCDIR)/toolscommon $(ACCESSIBILITY_SRCDIR)/bridge, \
8892
CFLAGS := $$(CFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
93+
CXXFLAGS := $$(CXXFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
8994
LDFLAGS := $$(LDFLAGS_JDKEXE) -stack:655360, \
9095
LIBS := advapi32.lib comctl32.lib gdi32.lib user32.lib, \
9196
VERSIONINFO_RESOURCE := $(ACCESSIBILITY_SRCDIR)/jaccesswalker/jaccesswalkerWindow.rc, \

0 commit comments

Comments
 (0)