Skip to content

Commit

Permalink
(PA-6263) Add amazon linux2 to pxp-agent 7.x and upgrade cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkarsale committed May 8, 2024
1 parent 06fcb25 commit 56c5f49
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
6 changes: 5 additions & 1 deletion configs/components/cpp-hocon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@
# These platforms use the default OS toolchain, rather than pl-build-tools
pkg.environment 'CPPFLAGS', settings[:cppflags]
pkg.environment 'LDFLAGS', settings[:ldflags]
cmake = 'cmake'
toolchain = ''
boost_static_flag = '-DBOOST_STATIC=OFF'
special_flags = " -DENABLE_CXX_WERROR=OFF -DCMAKE_CXX_FLAGS='#{settings[:cflags]}'"
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

# Until we build our own gettext packages, disable using locales.
Expand Down
6 changes: 5 additions & 1 deletion configs/components/cpp-pcp-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@
# These platforms use the default OS toolchain, rather than pl-build-tools
pkg.environment 'CPPFLAGS', settings[:cppflags]
pkg.environment 'LDFLAGS', settings[:ldflags]
cmake = 'cmake'
toolchain = ''
platform_flags = "-DCMAKE_CXX_FLAGS='#{settings[:cflags]} -Wimplicit-fallthrough=0'"
special_flags = ' -DENABLE_CXX_WERROR=OFF'
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

# Boost_NO_BOOST_CMAKE=ON was added while upgrading to boost
Expand Down
6 changes: 5 additions & 1 deletion configs/components/leatherman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,13 @@
# These platforms use the default OS toolchain, rather than pl-build-tools
pkg.environment 'CPPFLAGS', settings[:cppflags]
pkg.environment 'LDFLAGS', settings[:ldflags]
cmake = 'cmake'
toolchain = ''
boost_static_flag = ''
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end

# Workaround for hanging leatherman tests (-fno-strict-overflow)
special_flags = " -DENABLE_CXX_WERROR=OFF -DCMAKE_CXX_FLAGS='#{settings[:cflags]} -fno-strict-overflow -Wno-deprecated-declarations' "
Expand Down
2 changes: 1 addition & 1 deletion configs/components/puppet-runtime.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"location":"https://builds.delivery.puppetlabs.net/puppet-runtime/202404260/artifacts/","version":"202404260"}
{"location":"https://builds.delivery.puppetlabs.net/puppet-runtime/202405020/artifacts/","version":"202405020"}
6 changes: 5 additions & 1 deletion configs/components/pxp-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@
# use default that is pl-build-tools
else
# These platforms use the default OS toolchain, rather than pl-build-tools
cmake = 'cmake'
toolchain = ''
special_flags += " -DCMAKE_CXX_FLAGS='#{settings[:cflags]} -Wno-deprecated -Wimplicit-fallthrough=0' "
special_flags += ' -DENABLE_CXX_WERROR=OFF ' unless platform.name =~ /sles-15/
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

# Boost_NO_BOOST_CMAKE=ON was added while upgrading to boost
Expand Down
3 changes: 3 additions & 0 deletions configs/platforms/amazon-7-aarch64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
platform "amazon-7-aarch64" do |plat|
plat.inherit_from_default
end

0 comments on commit 56c5f49

Please sign in to comment.