libice: avoid hardlinking

This commit is contained in:
Leonid Pliushch 2020-01-05 16:11:12 +02:00 committed by Yaksh Bariya
parent 4d4d8d2219
commit 8fcea6f835
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="X11 Inter-Client Exchange library"
TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>" TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=1.0.10 TERMUX_PKG_VERSION=1.0.10
TERMUX_PKG_REVISION=4 TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libICE-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libICE-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=6f86dce12cf4bcaf5c37dddd8b1b64ed2ddf1ef7b218f22b9942595fb747c348 TERMUX_PKG_SHA256=6f86dce12cf4bcaf5c37dddd8b1b64ed2ddf1ef7b218f22b9942595fb747c348
TERMUX_PKG_BUILD_DEPENDS="xorgproto, xorg-util-macros, xtrans" TERMUX_PKG_BUILD_DEPENDS="xorgproto, xorg-util-macros, xtrans"

View File

@ -0,0 +1,12 @@
diff -uNr libICE-1.0.10/src/authutil.c libICE-1.0.10.mod/src/authutil.c
--- libICE-1.0.10/src/authutil.c 2019-07-14 20:43:16.000000000 +0300
+++ libICE-1.0.10.mod/src/authutil.c 2020-01-05 16:10:46.039276106 +0200
@@ -188,7 +188,7 @@
if (creat_fd != -1)
{
- if (link (creat_name, link_name) != -1)
+ if (rename (creat_name, link_name) != -1)
return (IceAuthLockSuccess);
if (errno == ENOENT)