Skip to content

Commit

Permalink
Add required library for Configure to work on Ubuntu 22 onwards. (ado…
Browse files Browse the repository at this point in the history
…ptium#3548)

* Add library path for ubuntu 22 onwards for x64

* Tidy Ubuntu check logic

* Linter fix

* Linter fix
  • Loading branch information
steelhead31 authored Nov 29, 2023
1 parent 1efe1e1 commit 429cfe5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ function downloadBootJDK()
if [ "${ARCHITECTURE}" == "x64" ]
then
export PATH=/opt/rh/devtoolset-2/root/usr/bin:$PATH
## Fix For Issue https://github.com/adoptium/temurin-build/issues/3547
## Add Missing Library Path For Ubuntu 22+
if [ -e /etc/os-release ]; then
ID=$(grep "^ID=" /etc/os-release | awk -F'=' '{print $2}')
INT_VERSION_ID=$(grep "^VERSION_ID=" /etc/os-release | awk -F'"' '{print $2}' | awk -F'.' '{print $1}')
if [ "$ID" == "ubuntu" ] && [ "$INT_VERSION_ID" -ge "22" ]; then
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
fi
fi
fi

if [ "${ARCHITECTURE}" == "s390x" ]
Expand Down

0 comments on commit 429cfe5

Please sign in to comment.