From d859f338a4419a2746bc112f94cb4ee8079b4994 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 5 Jan 2020 16:57:20 +0200 Subject: [PATCH] libice: restore locking functionality Unlike xorg-iceauth, there should be used symlink() instead of rename(). --- x11-packages/libice/build.sh | 2 +- x11-packages/libice/src-authutil.c.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x11-packages/libice/build.sh b/x11-packages/libice/build.sh index 053fc9166..54f59d128 100644 --- a/x11-packages/libice/build.sh +++ b/x11-packages/libice/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="X11 Inter-Client Exchange library" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="Leonid Plyushch " TERMUX_PKG_VERSION=1.0.10 -TERMUX_PKG_REVISION=5 +TERMUX_PKG_REVISION=6 TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libICE-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SHA256=6f86dce12cf4bcaf5c37dddd8b1b64ed2ddf1ef7b218f22b9942595fb747c348 TERMUX_PKG_BUILD_DEPENDS="xorgproto, xorg-util-macros, xtrans" diff --git a/x11-packages/libice/src-authutil.c.patch b/x11-packages/libice/src-authutil.c.patch index a5cc9bb90..d86dda788 100644 --- a/x11-packages/libice/src-authutil.c.patch +++ b/x11-packages/libice/src-authutil.c.patch @@ -6,7 +6,7 @@ diff -uNr libICE-1.0.10/src/authutil.c libICE-1.0.10.mod/src/authutil.c if (creat_fd != -1) { - if (link (creat_name, link_name) != -1) -+ if (rename (creat_name, link_name) != -1) ++ if (symlink (creat_name, link_name) != -1) return (IceAuthLockSuccess); if (errno == ENOENT)