Skip to content

Commit

Permalink
gpkg/glibc: changing 'shared memory' location (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython authored Dec 6, 2023
1 parent cbd764a commit b0be86a
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 370 deletions.
2 changes: 1 addition & 1 deletion gpkg/glibc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="GNU C Library"
TERMUX_PKG_LICENSE="GPL-3.0, LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux-pacman"
TERMUX_PKG_VERSION=2.38
TERMUX_PKG_REVISION=9
TERMUX_PKG_REVISION=10
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/libc/glibc-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
TERMUX_PKG_DEPENDS="linux-api-headers-glibc"
Expand Down
20 changes: 20 additions & 0 deletions gpkg/glibc/sem_open.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- src/sysdeps/pthread/sem_open.c 2023-07-31 20:54:16.000000000 +0300
+++ src/sysdeps/pthread/sem_open.c.patch 2023-12-06 23:03:24.669640461 +0300
@@ -28,7 +28,7 @@

#if !PTHREAD_IN_LIBC
/* The private names are not exported from libc. */
-# define __link link
+# define __symlink symlink
# define __unlink unlink
#endif

@@ -168,7 +168,7 @@
fd, 0)) != MAP_FAILED)
{
/* Create the file. Don't overwrite an existing file. */
- if (__link (tmpfname, dirname.name) != 0)
+ if (__symlink (tmpfname, dirname.name) != 0)
{
/* Undo the mapping. */
__munmap (result, sizeof (sem_t));
Loading

0 comments on commit b0be86a

Please sign in to comment.