Skip to content

Commit 513198d

Browse files
authored
Merge pull request #1868 from craigcomstock/ENT-12528/master
Adjusted compile-options to not bundle OpenSSL on newer SuSE systems due to libpam/openssl incompatability
2 parents 960e5ad + d0acb71 commit 513198d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

build-scripts/compile-options

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@ export PROJECT
3636
# Otherwise, we build it.
3737
if [ x"$SYSTEM_SSL" = x ]
3838
then
39-
# We don't bundle OpenSSL on RHEL 8 (and newer in the future)
40-
if [ "$OS" = "rhel" ] && expr "$OS_VERSION" ">=" "8" >/dev/null
39+
# We don't bundle OpenSSL on some redhat-derived systems due to incompatability with libpam and our openssl.
40+
_OS_MAJOR_VERSION="$(echo "$OS_VERSION" | cut -d. -f1)"
41+
if [ "$OS" = "rhel" ] && expr "$_OS_MAJOR_VERSION" ">=" "8" >/dev/null
4142
then
4243
SYSTEM_SSL=1
4344
fi
45+
if [ "$OS" = "opensuse" ] || [ "$OS" = "sles" ]
46+
then
47+
if expr "$_OS_MAJOR_VERSION" ">=" "15"
48+
then
49+
SYSTEM_SSL=1
50+
fi
51+
fi
4452
# Detect using system ssl when running a Jenkins job
4553
if expr x"$label" ":" ".*systemssl" >/dev/null
4654
then

ci/cfengine-build-host-setup.cf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ bundle agent cfengine_build_host_setup
129129
"platform-python-devel" -> { "cfbs shebang", "ENT-11338" }
130130
comment => "py3_shebang_fix macro needs /usr/bin/pathfix.py from platform-python-devel package";
131131

132+
suse_15::
133+
"libopenssl-devel" -> { "ENT-12528" }
134+
comment => "like redhat, suse 15+ needs to build with system openssl.";
135+
132136
(redhat_8|centos_8|redhat_9).(yum_dnf_conf_ok)::
133137
"java-1.8.0-openjdk-headless" package_policy => "delete",
134138
comment => "Installing Development Tools includes this jdk1.8 which we do not want.";

0 commit comments

Comments
 (0)