From 92eec8751f4635ac0b4eb52f6f6a335b73fe74fbb33e07592440879409ac5a48 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Fri, 22 Mar 2019 13:41:45 +0000 Subject: [PATCH] - n_unifdef-LBXPROXY_t-and-TEST_t.patch * reverse apply in order to fix build of lbxproxy again ... OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xtrans?expand=0&rev=21 --- n_unifdef-LBXPROXY_t-and-TEST_t.patch | 62 +++++++++++++++++++++++++++ xtrans.changes | 6 +++ xtrans.spec | 2 + 3 files changed, 70 insertions(+) create mode 100644 n_unifdef-LBXPROXY_t-and-TEST_t.patch diff --git a/n_unifdef-LBXPROXY_t-and-TEST_t.patch b/n_unifdef-LBXPROXY_t-and-TEST_t.patch new file mode 100644 index 0000000..9ba714a --- /dev/null +++ b/n_unifdef-LBXPROXY_t-and-TEST_t.patch @@ -0,0 +1,62 @@ +From 0794b1b712a90b40e2b019c9edc6f96874493c52 Mon Sep 17 00:00:00 2001 +From: Adam Jackson +Date: Wed, 18 May 2016 12:41:41 -0400 +Subject: [PATCH] unifdef LBXPROXY_t and TEST_t + +LBX is dead, and TEST_t is unused. + +Reviewed-by: Keith Packard +Signed-off-by: Adam Jackson +--- + Xtrans.h | 15 --------------- + Xtranssock.c | 8 -------- + 2 files changed, 23 deletions(-) + +diff --git a/Xtrans.h b/Xtrans.h +index 3fd73b8..7ed033b 100644 +--- a/Xtrans.h ++++ b/Xtrans.h +@@ -111,21 +111,6 @@ static const char *__xtransname = "_IceTrans"; + #endif + #endif /* ICE_t */ + +-#ifdef TEST_t +-#define TRANS(func) _TESTTrans##func +-#ifdef XTRANSDEBUG +-static const char *__xtransname = "_TESTTrans"; +-#endif +-#endif /* TEST_t */ +- +-#ifdef LBXPROXY_t +-#define TRANS(func) _LBXPROXYTrans##func +-#define X11_t /* The server defines this - so should the LBX proxy */ +-#ifdef XTRANSDEBUG +-static const char *__xtransname = "_LBXPROXYTrans"; +-#endif +-#endif /* LBXPROXY_t */ +- + #if !defined(TRANS) + #define TRANS(func) _XTrans##func + #ifdef XTRANSDEBUG +diff --git a/Xtranssock.c b/Xtranssock.c +index 2cda9bb..866f4ab 100644 +--- a/Xtranssock.c ++++ b/Xtranssock.c +@@ -215,14 +215,6 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr); + #define UNIX_PATH "/tmp/.ICE-unix/" + #define UNIX_DIR "/tmp/.ICE-unix" + #endif /* ICE_t */ +-#if defined(TEST_t) +-#define UNIX_PATH "/tmp/.Test-unix/test" +-#define UNIX_DIR "/tmp/.Test-unix" +-#endif +-#if defined(LBXPROXY_t) +-#define UNIX_PATH "/tmp/.X11-unix/X" +-#define UNIX_DIR "/tmp/.X11-unix" +-#endif + + + #endif /* UNIXCONN */ +-- +2.16.4 + diff --git a/xtrans.changes b/xtrans.changes index fc5f764..3886c46 100644 --- a/xtrans.changes +++ b/xtrans.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 22 13:38:03 UTC 2019 - Stefan Dirsch + +- n_unifdef-LBXPROXY_t-and-TEST_t.patch + * reverse apply in order to fix build of lbxproxy again ... + ------------------------------------------------------------------- Fri Mar 22 11:11:11 UTC 2019 - Stefan Dirsch diff --git a/xtrans.spec b/xtrans.spec index 35dae9b..e36a698 100644 --- a/xtrans.spec +++ b/xtrans.spec @@ -25,6 +25,7 @@ Group: Development/Libraries/X11 Url: http://xorg.freedesktop.org/ Source: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 Patch0: p_xauth.diff +Patch1: n_unifdef-LBXPROXY_t-and-TEST_t.patch BuildRequires: pkg-config BuildRequires: pkgconfig(xorg-macros) >= 1.12 BuildRequires: pkgconfig(xshmfence) @@ -45,6 +46,7 @@ libX11, libICE, the X font server, and related components. %prep %setup -q %patch0 -p0 +%patch1 -p1 -R %build %configure --docdir=%{_docdir}/xtrans