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

libcrypt symlink for ssh #1022

Closed
jan-grimo opened this issue Mar 2, 2021 · 2 comments · Fixed by #1023
Closed

libcrypt symlink for ssh #1022

jan-grimo opened this issue Mar 2, 2021 · 2 comments · Fixed by #1023
Labels

Comments

@jan-grimo
Copy link

Due to the manual removal of glibc's supplied /lib64/libcrypt.so.1 in pursuit of #305, the use of yum-installed ssh-agent from the openssh-clients package for CI work no longer functions in the manylinux2014 docker image.

The error is the following: ssh-agent: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory. ssh-agent seems to be stubborn regarding the location of libcrypt and cannot be persuaded with LD_LIBRARY_PATH. I'm not sure what finally broke it since the changes regarding libcrypt are fairly old.

I would suggest the addition of a ln -s /usr/local/lib/libcrypt.so.1 /lib64/libcrypt.so.1 or similar. I'm quite okay with a wontfix due to other possible conflicts that I cannot foresee or refusal to support packages installed after docker start (understandable) as well since I can fix this in each run with minimal effort, but it might be nice for others, too.

@mayeut
Copy link
Member

mayeut commented Mar 3, 2021

Thanks for the report.
The removal done at some point was not enough for manylinux_2_24 and it's been done a bit more aggressively in 32dbdd1 which broke manylinux2014 in your use case (and maybe others ?).
I didn't check why LD_LIBRARY_PATH is not honored with ssh-agent (ldd $(which ssh-agent) has no trouble finding the library but, as you reported, running ssh-agent fails). Before 32dbdd1, the symlink /lib64/libcrypt.so.1 was recreated by the system at some point somehow... with the more aggressive removal, the system fails to recreate this symlink and that explains why it broke recently rather than at first attempts at removal a while ago.

A PR is on its way to fix this.

@jan-grimo
Copy link
Author

Thank you @mayeut!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants