Skip to content

Commit d596997

Browse files
committed
Disable nghttp2 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.
1 parent c7b0307 commit d596997

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
@@ -77,6 +77,7 @@
7777
--enable-threaded-resolver \
7878
--disable-ldap \
7979
--disable-ldaps \
80+
--disable-nghttp2 \
8081
--with-ca-bundle=#{settings[:prefix]}/ssl/cert.pem \
8182
--with-ca-path=#{settings[:prefix]}/ssl/certs \
8283
CFLAGS='#{settings[:cflags]} #{extra_cflags.join(" ")}' \

0 commit comments

Comments
 (0)