termux-packages/packages/memcached
Henrik Grimler 836a10587e memcached: add patch to fix error for debug build
Took me an annoyingly long time to find a mask that the ndk was happy
with. The original mask gives identical permissions as this one (and
several other variants I tried). printf("%d\n", ~(S_IRUSR | S_IWUSR));
returns a negative number, and I guess that is the reason the ndk is
unhappy.

Original error message:

restart.c:233:48: error: 'umask' called with invalid mode
    mode_t oldmask = umask(~(S_IRUSR | S_IWUSR));
                                               ^
/home/builder/.termux-build/_cache/android-r21d-api-24-v3/bin/../sysroot/usr/include/bits/fortify/stat.h:47:5: note: from 'diagnose_if' attribute on 'umask':
    __clang_error_if(mode & ~0777, "'umask' called with invalid mode") {
    ^                ~~~~~~~~~~~~
/home/builder/.termux-build/_cache/android-r21d-api-24-v3/bin/../sysroot/usr/include/sys/cdefs.h:134:52: note: expanded from macro '__clang_error_if'
                                                   ^
1 error generated.
make[2]: *** [Makefile:1060: memcached-restart.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1699: all-recursive] Error 1
2021-02-04 19:20:18 +01:00
..
build.sh explicitly set maintainer for each package 2020-12-20 15:16:34 +02:00
configure.patch
crc32c.c.patch memcached: update patches 2020-11-22 14:28:16 +00:00
getsubopt.c
getsubopt.h
Makefile.am.patch memcached: update to 1.6.4 2020-04-13 12:17:24 +02:00
memcached.c.patch memcached: update patches 2020-11-22 14:28:16 +00:00
memcached.h.patch
restart.c.patch memcached: add patch to fix error for debug build 2021-02-04 19:20:18 +01:00
storage.c.patch memcached: update patches 2020-11-22 14:28:16 +00:00