Commit Graph

12 Commits

Author SHA1 Message Date
Aditya Alok e47633889e
ghc-libs: Enable `network` support in `libiserv`
It will be used to build `iserv-proxy` which will be used to cross compile
template-haskell.

For reference see: https://medium.com/@zw3rk/cross-compiling-template-haskell-7e38c00c2914

Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-22 13:14:32 +05:30
Aditya Alok 3c9ce2423f
ghc-libs: Include symlinks too in subpackage
Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 03:09:33 +05:30
Aditya Alok ef9d15744e
ghc-libs: Bump to 9.2.5
- disable static splitting of package (see #1280)

Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 03:09:32 +05:30
Tee KOBAYASHI 7a283e3e16 ghc: Depend on binutils-is-llvm or binutils
%ci:no-build
2022-11-12 17:53:11 +09:00
Aditya Alok d0fd4b0baf
refactor: update @MrAdityaAlok email address
- use alok@termux.org instead

%ci:no-build

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-05-10 00:15:34 +05:30
Tee KOBAYASHI d25d42347b packages: Fix hardcoded package name
in `termux_step_install_license()`.

%ci:no-build
2022-05-07 07:31:31 +09:00
Aditya Alok 3165e3c2f4
feat(ghc-libs): link against libandroid-posix-semaphore
GHC unix lib uses `ccall` ffi which ignores include indirection. It
directly links against available symbols during compile.

Although, directly linking to `libandroid-posix-semaphore` should work
too, but that depends upon library load order during runtime, i.e if
`libc` is loaded before (very unlikely, unless LD_PRELOAD is set)
`libandroid-posix-semaphore`, it would use sem_{open,close,unlink} from
it, which isn't implemented.

So, to be sure that it always links against `libandroid-posix-semaphore`
symbols, I have patched it to use `capi` ffi which considers include
indirections.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-11 19:47:18 +05:30
Tee KOBAYASHI f4461530fa Revert "ghc-libs: depend on libandroid-posix-semaphore"
This reverts commit 3f8aeb2fb2.

`lib/ghc-8.10.7/unix-2.7.2.2/libHSunix-2.7.2.2-ghc8.10.7.so` continues
referencing libc symbols, i.e. `sem_{open,close,unlink}`, regardless of
declarations in `<semaphore.h>`.

%ci:no-build
2022-04-09 22:34:02 +09:00
Henrik Grimler 3f8aeb2fb2
ghc-libs: depend on libandroid-posix-semaphore 2022-04-09 10:53:40 +02:00
Aditya Alok a83ee27363
chore(ghc-libs): bump revision after massage step fix
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-22 21:39:09 +01:00
Aditya Alok a1c51b25b3
fix(ghc-libs): do not update alternatives
- ghc might not be installed

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-22 14:19:59 +01:00
Aditya Alok 80f7a2a0df refactor(ghc-libs): rename ghc to ghc-libs
- seperate ghc libraries from ghc bins
- enable dynamic libs for ghc
  * ghc-libs is further seperated into static and dynamic packages
  * enabling dynamic support will reduce package size as well as there
    performance  on device.

closes #5973

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-09 10:01:57 +09:00