Skip to content

Commit

Permalink
Update setup_script.sh for libopenssl3 15-SP6
Browse files Browse the repository at this point in the history
Add support for libopenssl3 on 15-SP6

Signed-off-by: Giuliano Belinassi <[email protected]>
  • Loading branch information
giulianobelinassi committed Jun 28, 2024
1 parent b11427c commit 64850d3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions scripts/setup_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ get_sle_version_from_package_name()
["150200"]="15-SP2"
["150300"]="15-SP3"
["150400"]="15-SP4"
["150500"]="15-SP5")
["150500"]="15-SP5"
["150600"]="15-SP6")


local version=$(echo "$1" | grep -Eo "($SLE_VERSION_REGEX)")
Expand Down Expand Up @@ -195,6 +196,11 @@ get_list_of_ipa_clones()
package_name="openssl"
fi

# libopenssl-3 ipa-clones artifacts are named openssl-3
if [ "$package_name" = "libopenssl3" ]; then
package_name="openssl-3"
fi

ipa_clones_list="$ipa_clones_list $package_name-livepatch-$version.x86_64.tar.xz"
done

Expand All @@ -216,6 +222,11 @@ get_list_of_src_packages()
package_name="openssl-1_1"
fi

# libopenssl-3 src comes from openssl-3
if [ "$package_name" = "libopenssl3" ]; then
package_name="openssl-3"
fi

src_package_list="$src_package_list $package_name-$version.src.rpm"
done

Expand Down Expand Up @@ -300,7 +311,10 @@ extract_libs_from_package()
cp $ipa_clones $PLATFORM/$name/$version/$ipa_clones
if [ $? -ne 0 ]; then
echo "error: $ipa_clones not downloaded."
exit 1
read -r -p "Continue without it? [y/N] " response
if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
exit 1
fi
fi
fi

Expand Down Expand Up @@ -441,7 +455,7 @@ dump_interesting_info_from_elfs_in_lib()

sanitize_platform()
{
local platforms="15-SP3 15-SP4 15-SP5"
local platforms="15-SP3 15-SP4 15-SP5 15-SP6"

for platform in ${platforms}; do
if [ "$PLATFORM" = "$platform" ]; then
Expand All @@ -456,8 +470,7 @@ sanitize_platform()

sanitize_package()
{
local packages="glibc libopenssl1_1"

local packages="glibc libopenssl1_1 libopenssl3"
if [ "x$PACKAGE" = "x" ]; then
echo "You must pass a --package=<PACKAGE> parameter!"
exit 1
Expand Down

0 comments on commit 64850d3

Please sign in to comment.