libucontext: Add package
authorVolker Christian <me@vchrist.at>
Fri, 1 Sep 2023 14:53:28 +0000 (16:53 +0200)
committerTianling Shen <cnsztl@gmail.com>
Sun, 3 Sep 2023 08:37:34 +0000 (16:37 +0800)
commit635a702255e77b211c77e4a5bcd513abe6041721
tree3464b5903817e3b4f0b43957def8608827f49fa3
parenta5314681149259827c1eec074ae11fe6b7a80961
libucontext: Add package

Description (from libucontext github page):
libucontext (https://https://github.com/kaniini/libucontext) is a
library which provides the ucontext.h C API. Unlike other
implementations, it faithfully follows the kernel process ABI when
doing context swaps. libucontext is used on almost all musl
distributions to provide the legacy ucontext.h API.

This package is meant as a development package. There is no need
to install a package on the router if an application or library
is linked against the static libraries. Though, shared libraries
are provided also.

It is used to link libraries/applications against it which need the
system calls

* makecontext
* swapcontext
* getcontext
* setcontext

E.g. the asynchronous API of libmariadb (c-connector) uses this
system calls. Because libmusl didn't provide that system calls this
synchronous API is currently (without libucontexe) not working - it
segfaults.

Co-developed-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Volker Christian <me@vchrist.at>
libs/libucontext/Makefile [new file with mode: 0644]
libs/libucontext/patches/010-return_values_fix.patch [new file with mode: 0644]
libs/libucontext/patches/020-honor_return_values_fix.patch [new file with mode: 0644]