1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00

chromium: Hardcode dlopen() path for libexif.

This is needed for Chromium version 36 and higher.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-06-18 11:59:56 +02:00
parent 47214207b9
commit 0c50978cb8
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -144,6 +144,10 @@ let
sed -i -e '/base::FilePath exe_dir/,/^ *} *$/c \ sed -i -e '/base::FilePath exe_dir/,/^ *} *$/c \
sandbox_binary = base::FilePath(getenv("CHROMIUM_SANDBOX_BINARY_PATH")); sandbox_binary = base::FilePath(getenv("CHROMIUM_SANDBOX_BINARY_PATH"));
' ${toPatch} ' ${toPatch}
'' + optionalString (!versionOlder source.version "36.0.0.0") ''
sed -i -e '/module_path *=.*libexif.so/ {
s|= [^;]*|= base::FilePath().AppendASCII("${libexif}/lib/libexif.so")|
}' chrome/utility/media_galleries/image_metadata_extractor.cc
''; '';
gypFlags = mkGypFlags (gypFlagsUseSystemLibs // { gypFlags = mkGypFlags (gypFlagsUseSystemLibs // {