Skip to content

Commit

Permalink
(PA-4872) OpenSSL 3 work for Solaris-11-x86-64
Browse files Browse the repository at this point in the history
This PR continues Aria's work for getting Solaris 11 x86-64 building openssl 3.
This uses OpenCSW's GCC to build openssl.
  • Loading branch information
cthorn42 committed Jul 6, 2023
1 parent c40aaf4 commit c47a9e2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
8 changes: 0 additions & 8 deletions configs/components/libffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
pkg.environment "LDFLAGS", settings[:ldflags]
elsif platform.is_solaris?
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}"
# use pl-build-tools for agent-runtime-7.x and /opt/csw for agent-runtime-main project
# if settings[:runtime_project] =~ /7.x/ # try using pl-build-tools to see if that's what the issue is
# pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}"
# else
# pkg.environment "PATH", "/opt/csw/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}"
# pkg.environment "LD", "/opt/csw/bin/gld"
# pkg.environment "AR", "/opt/csw/bin/gar"
# end
pkg.environment "CFLAGS", "#{settings[:cflags]} -std=c99"
pkg.environment "LDFLAGS", settings[:ldflags]
pkg.environment 'MAKE', 'gmake'
Expand Down
2 changes: 1 addition & 1 deletion configs/components/openssl-3.0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
target = 'aix-gcc'
elsif platform.is_solaris?
pkg.environment 'PATH', '/opt/csw/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin'
pkg.environment 'CC', "/opt/csw/bin/#{settings[:platform_triple]}-gcc"
pkg.environment 'CC', "/opt/csw/bin/gcc"

cflags = "#{settings[:cflags]} -fPIC"
ldflags = "-R/opt/csw/#{settings[:platform_triple]}/lib -Wl,-rpath=#{settings[:libdir]} -L/opt/csw/#{settings[:platform_triple]}/lib"
Expand Down
1 change: 0 additions & 1 deletion configs/platforms/solaris-11-i386.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
echo "mirror=https://artifactory.delivery.puppetlabs.net/artifactory/generic__remote_opencsw_mirror/testing" > /var/tmp/vanagon-pkgutil.conf;
pkgadd -n -a /var/tmp/vanagon-noask -d http://get.opencsw.org/now all
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i libffi_dev autoconf gcc4core || exit 1;
ntpdate pool.ntp.org]
plat.output_dir File.join("solaris", "11", "PC1")
end
2 changes: 1 addition & 1 deletion configs/projects/_shared-agent-settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
proj.setting(:ldflags, "-L#{proj.libdir} -Wl,-rpath=#{proj.libdir},-z,relro,-z,now")
end

if ruby_version_x == "3"
if ruby_version_x == "3"
proj.setting(:openssl_version, '3.0')
elsif platform.name =~ /^redhatfips-/
proj.setting(:openssl_version, '1.1.1-fips')
Expand Down

0 comments on commit c47a9e2

Please sign in to comment.