Commit 4e4b4036 authored by Jérome Perrin's avatar Jérome Perrin

component/xorg: version ↑ libxcb 1.9.1

parent 4e614f13
...@@ -107,8 +107,9 @@ md5sum = e8fa31b42e13f87e8f5a7a2b731db7ee ...@@ -107,8 +107,9 @@ md5sum = e8fa31b42e13f87e8f5a7a2b731db7ee
[libxcb] [libxcb]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
shared = true shared = true
url = http://xcb.freedesktop.org/dist/libxcb-1.9.1.tar.bz2 url = https://xorg.freedesktop.org/archive/individual/xcb/libxcb-1.13.tar.bz2
md5sum = ed632cb0dc31b6fbd7ea5c0f931cf5a4 md5sum = c2b6cf928afa16b0047c974e7aaa783f
patches = patches =
${:_profile_base_location_}/libxcb_tmp_env.patch#${libxcb_tmp_env.patch:md5sum} ${:_profile_base_location_}/libxcb_tmp_env.patch#${libxcb_tmp_env.patch:md5sum}
patch-options = -p1 patch-options = -p1
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[libxcb_tmp_env.patch] [libxcb_tmp_env.patch]
filename = libxcb_tmp_env.patch filename = libxcb_tmp_env.patch
md5sum = 03bc7279f2a37bac7bf426af213123b2 md5sum = 5a2875e62216d2f41a75e92d1bf0ae67
[xorg-server_tmp_env.patch] [xorg-server_tmp_env.patch]
filename = xorg-server_tmp_env.patch filename = xorg-server_tmp_env.patch
......
Store Xorg lock files and sockets in different directories From 8469ef2a978e19145a56adb54925cf5936ab2d49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 17 Sep 2018 16:07:02 +0200
Subject: [PATCH] SlapOS: Store Xorg lock files and sockets in different
directories
see xorg-server_tmp_env.patch see xorg-server_tmp_env.patch
---
src/xcb_util.c | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
--- libxcb-1.7/src/xcb_util.c.back 2012-04-03 13:30:36.000000000 +0200 diff --git a/src/xcb_util.c b/src/xcb_util.c
+++ libxcb-1.7/src/xcb_util.c 2012-04-03 14:47:00.000000000 +0200 index a16270c..d05f8a1 100644
@@ -147,11 +147,31 @@ --- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -223,15 +223,37 @@ static int _xcb_open_unix(char *protocol, const char *file);
static int _xcb_open_abstract(char *protocol, const char *file, size_t filelen); static int _xcb_open_abstract(char *protocol, const char *file, size_t filelen);
#endif #endif
...@@ -27,14 +36,23 @@ see xorg-server_tmp_env.patch ...@@ -27,14 +36,23 @@ see xorg-server_tmp_env.patch
+ } + }
+ return strncat(path_list[0], suffix, PATH_MAX); + return strncat(path_list[0], suffix, PATH_MAX);
+} +}
+
+ +
static int _xcb_open(const char *host, char *protocol, const int display) static int _xcb_open(const char *host, char *protocol, const int display)
{ {
int fd; int fd;
#ifdef __hpux
static const char unix_base[] = "/usr/spool/sockets/X11/";
+ #error "SlapOS: no patch for hpux"
#else
- static const char unix_base[] = "/tmp/.X11-unix/X"; - static const char unix_base[] = "/tmp/.X11-unix/X";
- const char *base = unix_base;
+ char *base; + char *base;
+ base = _xcb_getandappendcompatibleenv("XORG_LOCK_DIR", "/tmp", "/.X11-unix/X"); + base = _xcb_getandappendcompatibleenv("XORG_LOCK_DIR", "/tmp", "/.X11-unix/X");
#endif
- const char *base = unix_base;
size_t filelen; size_t filelen;
char *file = NULL; char *file = NULL;
int actual_filelen; int actual_filelen;
--
2.11.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment