3
0
Fork 0
forked from mirrors/nixpkgs

glib: avoid runtime reference from gtk3

Fixes #21022.  Related: #15931.
This commit is contained in:
Vladimír Čunát 2016-12-09 18:53:39 +01:00
parent 31d672f4e5
commit ff62e8a72e
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -99,7 +99,12 @@ stdenv.mkDerivation rec {
moveToOutput "share/glib-2.0" "$dev"
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev"
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|"
'';
''
# This file is *included* in gtk3 and would introduce runtime reference via __FILE__.
+ ''
sed '1i#line 1 "${name}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c
'';
inherit doCheck;
preCheck = optionalString doCheck