git.iko.soy/typeable/nixpkgs
on master help sign in
Revert #20139: mesa: 12.0.1 -> 13.0.0

x.y.0 aren't considered stable for general deployment; let's wait a bit for 13.0.1. This reverts commit 1c6b3bdc3532a6d2394cef6db1889fc9f0b94ff7, reversing changes made to d0ae7b973d8a4f064324a058a83385a68b177e72.

commit5ad7cf37283a1efb4e74d0798d6d7579042719e6 authorVladimír Čunát <vcunat@gmail.com> dateSat 5 Nov 2016, 08:15 (10 years ago) parentac59e2f
2 files changed+29−3
pkgs/development/libraries/mesa/default.nix+7−3 pkgs/development/libraries/mesa/dlopen-absolute-paths.diff+22
pkgs/development/libraries/mesa/default.nix+7−3
@@ -26,7 +26,7 @@ if ! lists.elem stdenv.system platforms.mesaPlatforms then
2626else
2727
2828let
29− version = "13.0.0";
29+ version = "12.0.3";
3030 branch = head (splitString "." version);
3131 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32";
3232in
@@ -40,7 +40,7 @@ stdenv.mkDerivation {
4040 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
4141 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
4242 ];
43− sha256 = "09yp4wh89srxqqzsnrqgw4gmx68mgxic5nbrprl6l1l2zzmv9vcl";
43+ sha256 = "1dc86dd9b51272eee1fad3df65e18cda2e556ef1bc0b6e07cd750b9757f493b1";
4444 };
4545
4646 prePatch = "patchShebangs .";
@@ -51,7 +51,11 @@ stdenv.mkDerivation {
5151 patches = [
5252 ./glx_ro_text_segm.patch # fix for grsecurity/PaX
5353 ./symlink-drivers.patch
54− ];
54+ ] ++ optional stdenv.isLinux
55+ (substituteAll {
56+ src = ./dlopen-absolute-paths.diff;
57+ libudev = systemd.lib;
58+ });
5559
5660 postPatch = ''
5761 substituteInPlace src/egl/main/egldriver.c \
pkgs/development/libraries/mesa/dlopen-absolute-paths.diffnew file+22
@@ -0,0 +1,22 @@
1+diff --git a/loader.c b/loader.c
2+index 4fdf3c2..69ea22d 100644
3+--- a/src/loader/loader.c
4++++ b/src/loader/loader.c
5+@@ -112,7 +112,7 @@ static void *udev_handle = NULL;
6+ static void *
7+ udev_dlopen_handle(void)
8+ {
9+- char name[80];
10++ char name[256];
11+ unsigned flags = RTLD_NOLOAD | RTLD_LOCAL | RTLD_LAZY;
12+ int version;
13+
14+@@ -126,7 +126,7 @@ udev_dlopen_handle(void)
15+ /* First try opening an already linked libudev, then try loading one */
16+ do {
17+ for (version = 1; version >= 0; version--) {
18+- snprintf(name, sizeof(name), "libudev.so.%d", version);
19++ snprintf(name, sizeof(name), "@libudev@/lib/libudev.so.%d", version);
20+ udev_handle = dlopen(name, flags);
21+ if (udev_handle)
22+ return udev_handle;