Skip to content

Commit

Permalink
gpkg-dev/glibc: real fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Jul 21, 2023
1 parent ef77469 commit 13e636f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gpkg-dev/glibc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=glibc
pkgver=2.37
pkgrel=9
pkgrel=10
_commit=be176490b818b65b5162c332eb6b581690b16e5c
pkgdesc="GNU C Library"
arch=(any)
Expand Down Expand Up @@ -83,7 +83,7 @@ sha256sums=('2257eff111a1815d74f46856daaf40b019c1e553156c69d48ba0cbfc1bb91a43'
'6a63b915b8f50e05a9a2287241e907f0c2a2b39f8d696c18a3e23267805d6a92'
'f29c92c48adae65e86256b4ae5180c77aa6957d90bbc7abb54042c2820b2a26f'
'e378b410d1f1750b7751910dffcd525f58be71ab1b4f54a09e1eedd7fa3829f4'
'01f0c982181626e32d485015215de4f80b17952e7ad46618bd00497918f079e2')
'c687077cb59ff3559484674843fbee4441aca2dce3df4d73e6c3b5eeb0ea3b60')
groups=('gpkg-dev')

prepare() {
Expand Down
4 changes: 2 additions & 2 deletions gpkg-dev/glibc/mprotect.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
If you run mprotect with the PROT_EXEC flag,
then the error "Permission denied" is displayed.
Cause: https://stackoverflow.com/questions/41174549/mprotect-permission-denied-error-on-rhel-6-8
Cause: https://github.com/termux/proot/commit/89bfa991cb3cb7fc78099d06d0f7e7c840cb62d1
Issue: https://github.com/termux-pacman/glibc-packages/issues/49
*/

Expand All @@ -13,7 +13,7 @@ int
__mprotect (void *addr, size_t len, int prot)
{
if (prot & PROT_EXEC)
prot &= ~PROT_EXEC;
addr = mmap (addr, len, prot, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, 0, 0);

return INLINE_SYSCALL_CALL (mprotect, addr, len, prot);
}
Expand Down

0 comments on commit 13e636f

Please sign in to comment.