Skip to content

Commit 880e03d

Browse files
committed
JBR-9855 provide JBR25 with AL2 (glibc 2.26) support
1 parent c246c84 commit 880e03d

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

jb/project/tools/common/scripts/common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ else
109109
WITH_BUNDLED_FREETYPE=""
110110
fi
111111

112+
if [ "$bundle_type" == "lb" ]; then
113+
WITH_VULKAN=""
114+
else
115+
WITH_VULKAN="--with-vulkan"
116+
fi
117+
112118
REPRODUCIBLE_BUILD_OPTS="--with-source-date=$SOURCE_DATE_EPOCH
113119
--with-hotspot-build-time=$BUILD_TIME
114120
--with-copyright-year=$COPYRIGHT_YEAR

jb/project/tools/linux/scripts/mkimages_aarch64.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function do_configure {
5454
--with-boot-jdk="$BOOT_JDK" \
5555
--enable-cds=yes \
5656
--with-gtk-shell1-protocol=$GTK_SHELL_PATH \
57-
--with-vulkan \
57+
$WITH_VULKAN \
5858
$DISABLE_WARNINGS_AS_ERRORS \
5959
$STATIC_CONF_ARGS \
6060
$REPRODUCIBLE_BUILD_OPTS \
@@ -133,6 +133,11 @@ case "$bundle_type" in
133133
jbr_name_postfix="_${bundle_type}"
134134
do_maketest=1
135135
;;
136+
"lb")
137+
do_reset_changes=1
138+
jbr_name_postfix="_${bundle_type}"
139+
do_maketest=1
140+
;;
136141
"nomod" | "")
137142
bundle_type=""
138143
;;

jb/project/tools/linux/scripts/mkimages_x64.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ function do_configure {
5050
fi
5151
fi
5252

53-
if [ -n "${JCEF_BUILD_LEGACY:-}" ]; then
54-
WITH_VULKAN=""
55-
else
56-
WITH_VULKAN="--with-vulkan"
57-
fi
58-
5953
sh configure \
6054
$WITH_DEBUG_LEVEL \
6155
--with-vendor-name="$VENDOR_NAME" \
@@ -156,6 +150,11 @@ case "$bundle_type" in
156150
jbrsdk_name_postfix="_${bundle_type}"
157151
do_maketest=1
158152
;;
153+
"lb")
154+
do_reset_changes=1
155+
jbr_name_postfix="_${bundle_type}"
156+
do_maketest=1
157+
;;
159158
"nomod" | "")
160159
bundle_type=""
161160
jbrsdk_name_postfix="_${bundle_type}"
@@ -186,7 +185,7 @@ JBRSDK_BUNDLE=jbrsdk
186185
echo Fixing permissions
187186
chmod -R a+r $JSDK
188187

189-
if [ "$bundle_type" == "jcef" ]; then
188+
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "lb" ]; then
190189
git apply -p0 < jb/project/tools/patches/add_jcef_module.patch || do_exit $?
191190
update_jsdk_mods $JSDK $JCEF_PATH/jmods $JSDK/jmods $JSDK_MODS_DIR || do_exit $?
192191
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not changed
@@ -199,7 +198,7 @@ create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" ||
199198

200199
# create sdk image bundle
201200
modules=$(cat $JSDK/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\n//g) || do_exit $?
202-
if [ "$bundle_type" == "jcef" ]|| [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
201+
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "lb" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
203202
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
204203
fi
205204
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" $JBRSDK_BUNDLE $JSDK_MODS_DIR "$modules" || do_exit $?

0 commit comments

Comments
 (0)