Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 158525da9f50
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 43c77db3aa58
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 9, 2018

  1. pythonPackages.pylibmc: fix runtime dependency on libsasl2.so, by way…

    … of cyrus_sasl
    
    Without explicitly specifying that libsasl2 is part of the build, and
    without explicitly making it part of pylibmc's linker flags for its
    CPython extension, the cpython code enters a build state error where it
    instead attempts to blindly `dlopen("libsasl2.so")` out of
    $LD_LIBRARY_PATH; this fails as it can't be found in the store,
    obviously.
    
    The bigger problem with this is that it otherwise makes pylibmc
    unusable, as it will try to immediately load libsasl2 at startup. This
    means even using 'import pylibmc' at all will cause a failure.
    
    Instead, add cyrus_sasl into the build closure of the library, and pass
    an argument to the setup.py script to properly pass -lsasl2 to the C
    extension. This causes a link to properly be formed.
    
    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 350f497)
    thoughtpolice committed Jun 9, 2018
    Copy the full SHA
    43c77db View commit details
    Browse the repository at this point in the history