Skip to content

Commit

Permalink
prerequisites.sh: Remove openjdk (v2.2.8)
Browse files Browse the repository at this point in the history
:Release Notes:
openjdk and ant aren't needed for webOS OSE builds
since java implementation of localization-tool-native was
replaced with nodejs js-loctool in:
webosose/meta-webosose@1c077e1

:Issues Addressed:
https://forum.webosose.org/t/build-fails-at-prerequisites-sh/1994/3
[WRP-6543] CCC: Various build fixes
  • Loading branch information
Hyunjae Shin committed Feb 17, 2023
1 parent 40fb953 commit 580bf8f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions scripts/prerequisites.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e

# Copyright (c) 2008-2021 LG Electronics, Inc.
# Copyright (c) 2008-2023 LG Electronics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -147,32 +147,21 @@ archivers="\
zip \
"

# openjdk-11-jdk and ant is needed to build and run localization-tool
# gcc-multilib is needed to build 32bit version of pseudo
# g++-multilib is needed to build and run 32bit mksnapshot of V8 (in chromium53)
extras="\
gcc-multilib \
g++-multilib \
time \
openjdk-11-jdk \
ant \
"

# add ppa for openjdk
java_version=`java -version 2>&1 | head -n 1 | cut -d\" -f 2 | cut -d\. -f 1`

add-apt-repository ppa:openjdk-r/ppa --yes
apt-get update

apt-get install --yes \
${essential} \
${extras} \
${archivers} \

if [ -z $java_version ] || [ $java_version -lt 10 ]; then
update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
fi

locale-gen en_US.utf8

echo $version > $statusfile

0 comments on commit 580bf8f

Please sign in to comment.