summary refs log tree commit diff
path: root/pkgs/tools/archivers/p7zip
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-06-09 17:31:00 -0500
committerAustin Seipp <aseipp@pobox.com>2018-06-09 17:35:12 -0500
commit350f49734b161895803df1e3eb712df4f9c0e81e (patch)
treed897141bd64acbef28d1e7862849ca1c7d6cac3f /pkgs/tools/archivers/p7zip
parent84670fb9c827e5f1c77d70013e4bb637e051aa2a (diff)
downloadnixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.tar
nixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.tar.gz
nixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.tar.bz2
nixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.tar.lz
nixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.tar.xz
nixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.tar.zst
nixpkgs-350f49734b161895803df1e3eb712df4f9c0e81e.zip
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>
Diffstat (limited to 'pkgs/tools/archivers/p7zip')
0 files changed, 0 insertions, 0 deletions