Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable nghttp2 explicitly #835

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Apr 22, 2024

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.

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.
@joshcooper joshcooper marked this pull request as ready for review April 22, 2024 22:54
@joshcooper joshcooper requested review from a team as code owners April 22, 2024 22:54
@joshcooper
Copy link
Contributor Author

I built this on all supported agent main platforms

@joshcooper joshcooper merged commit 303ddf9 into puppetlabs:master Apr 22, 2024
3 checks passed
@joshcooper joshcooper deleted the no_nghttp2 branch April 22, 2024 22:54
@joshcooper joshcooper added the maintenance Maintenance chores are typically excluded from changelogs label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are typically excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants