Skip to content
This repository

Perl package need to set DYLD_LIBRARY_PATH on OS X #102

Open
jwiegley opened this Issue · 8 comments

2 participants

John Wiegley Shea Levy
John Wiegley

I tried this command on OS X 10.7 today:

sudo nix-env -iA nixpkgs.perlPackages.CompressRawZlib

It fails all of the tests, because the version of zlib it built with (Nix: 1.2.7) is not the version of zlib the tests find (OS: 1.2.5).

The hack was easy: I added the following to nixpkgs/pkgs/development/perl-modules/generic/build.sh, right before the call to perl Makefile.PL:

export DYLD_LIBRARY_PATH=/nix/store/8lb441lznfdn92aj8jl5gwq0xsg2kxmw-zlib-1.2.7/lib

However, this is something the package should be declaring. I just don't know what that syntax should look like.

Shea Levy
Collaborator

Is it just the test script that fails, or does the built module have a problem too?

John Wiegley
Shea Levy shlevy closed this in 1e16346
Shea Levy
Collaborator

This isn't a perfect solution, but as I don't have a test machine this will probably have to do for now.

John Wiegley

That's a pretty suboptimal solution, I'd say, and doesn't solve the fact that this will bite any future Perl module whose tests depend on a shared library to run.

Shea Levy
Collaborator

Agreed, I'm working on something now but will need someone to test it for me.

John Wiegley
Shea Levy shlevy reopened this
Shea Levy
Collaborator

Reopening this until I have time to really look at it (hopefully this week?)

Shea Levy
Collaborator

Hopefully will be fixed as part of #1484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.