mesa: fix libudev path

This commit is contained in:
Vladimír Čunát 2015-04-19 00:48:25 +02:00
parent 3c793aca79
commit 92b968863a
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ stdenv.mkDerivation {
] ++ optional stdenv.isLinux ] ++ optional stdenv.isLinux
(substituteAll { (substituteAll {
src = ./dlopen-absolute-paths.diff; src = ./dlopen-absolute-paths.diff;
inherit udev; inherit (udev) libudev;
}); });
postPatch = '' postPatch = ''

View File

@ -7,7 +7,7 @@ index 666d015..4d7a9be 100644
{ {
if (!udev_handle) { if (!udev_handle) {
- udev_handle = dlopen("libudev.so.1", RTLD_LOCAL | RTLD_LAZY); - udev_handle = dlopen("libudev.so.1", RTLD_LOCAL | RTLD_LAZY);
+ udev_handle = dlopen("@udev@/lib/libudev.so.1", RTLD_LOCAL | RTLD_LAZY); + udev_handle = dlopen("@libudev@/lib/libudev.so.1", RTLD_LOCAL | RTLD_LAZY);
if (!udev_handle) { if (!udev_handle) {
/* libudev.so.1 changed the return types of the two unref functions /* libudev.so.1 changed the return types of the two unref functions