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

Fix circular dependencies #187

Open
haampie opened this issue Jul 2, 2024 · 0 comments
Open

Fix circular dependencies #187

haampie opened this issue Jul 2, 2024 · 0 comments

Comments

@haampie
Copy link

haampie commented Jul 2, 2024

  • libxcrypt has a build dependency on perl
  • perl links to libcrypt

This makes it annoying to distribute binaries (when not cross compiling).

To distribute perl binaries, you have to ensure it does not link to glibc's libcrypt, since that may not exist on other systems, so it's best to build libxcrypt and distribute together...

But to configure libxcrypt, you need perl 5.14 with open.pm, which is not available on RHEL and derivatives by default, and you may not have access to yum install perl-open.

So without root access, you have to bootstrap a minimal perl yourself to configure libxcrypt, so you can build perl with crypt support.

The latter is not satisfactory cause it's overly complex, and the bootstrap perl won't be a deterministic build (it may or may not link against glibcs libcrypt), and cannot be distributed itself.

Would it be possible to drop the build dependency on perl in favor of something that does not depend on libcrypt?

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

No branches or pull requests

1 participant