Skip to content

Commit 25fdb20

Browse files
committed
Disable nghttp2 package explicitly
After commit 9a62dd5, curl 8 on AIX was adding a runtime dependency on libnghttp2 because the library happened to be present in /opt/freeware/lib: # ldd /opt/puppetlabs/puppet/bin/curl /opt/puppetlabs/puppet/bin/curl needs: /usr/lib/libc.a(shr.o) /usr/lib/libpthreads.a(shr_xpg5.o) /opt/puppetlabs/puppet/lib/libcurl.a(libcurl.so.4) /opt/puppetlabs/puppet/lib/libz.a(libz.so.1) Cannot find libnghttp2.a(libnghttp2.so.14) However, libnghttp2 is not a runtime component nor is it redistributed with the agent, so curl would fail to load: exec(): 0509-036 Cannot load program curl because of the following errors: 0509-150 Dependent module libnghttp2.a(libnghttp2.so.14) could not be loaded. 0509-022 Cannot load module libnghttp2.a(libnghttp2.so.14). 0509-026 System error: A file or directory in the path name does not exist. Since we don't enable nghttp2 on other platforms, explicitly disable it so we're not sensitive to build host differences. Note curl uses enable/disable for optional features like ldap, but with/without for optional packages like nghttp2.
1 parent c7b0307 commit 25fdb20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configs/components/curl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
--disable-ldaps \
8080
--with-ca-bundle=#{settings[:prefix]}/ssl/cert.pem \
8181
--with-ca-path=#{settings[:prefix]}/ssl/certs \
82+
--without-nghttp2 \
8283
CFLAGS='#{settings[:cflags]} #{extra_cflags.join(" ")}' \
8384
#{settings[:host]}"]
8485
end

0 commit comments

Comments
 (0)