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 Jun 30, 2023
1 parent 9d535a1 commit 52bfb2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
10 changes: 1 addition & 9 deletions configs/components/libffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@
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", platform.make
pkg.environment 'MAKE', 'gmake'
elsif platform.is_macos?
pkg.environment "LDFLAGS", settings[:ldflags]
pkg.environment "CFLAGS", settings[:cflags]
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 @@ -60,7 +60,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
17 changes: 7 additions & 10 deletions configs/platforms/solaris-11-i386.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
plat.inherit_from_default
plat.make "gmake"

# packages = %w(
# # pl-binutils-i386
# # pl-cmake
# # pl-gcc-i386
# # pl-pkg-config
# )
packages = %w(
pl-binutils-i386
pl-cmake
pl-gcc-i386
pl-pkg-config
)

plat.provision_with("pkg install #{packages.join(' ')}")

Expand Down Expand Up @@ -41,10 +41,7 @@
basedir=default" > /var/tmp/vanagon-noask;
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 -y -i autoconf || exit 1;
/opt/csw/bin/pkgutil -y -i gcc4core || exit 1;
# /opt/csw/bin/pkgutil -y -i perl;
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i libffi_dev || exit 1;
/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")
Expand Down

0 comments on commit 52bfb2b

Please sign in to comment.