Browse Source

apache2: avoid use of getrandom() which may not be implemented

Issue https://github.com/termux/termux-packages/issues/3883.

***

Fix doesn't seem to be needed on devices running Android 7+, but in
NDK getrandom() declared as:

  ssize_t getrandom(void* __buffer, size_t __buffer_size, unsigned int __flags) __wur __INTRODUCED_IN(28);

So applying patch anyway.
emacs-27
Leonid Plyushch 6 years ago
parent
commit
07bae2ddc1
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 5
      packages/apr/build.sh

5
packages/apr/build.sh

@ -2,13 +2,16 @@ TERMUX_PKG_HOMEPAGE=https://apr.apache.org/
TERMUX_PKG_DESCRIPTION="Apache Portable Runtime Library" TERMUX_PKG_DESCRIPTION="Apache Portable Runtime Library"
TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=1.7.0 TERMUX_PKG_VERSION=1.7.0
TERMUX_PKG_SHA256=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://apache.mirrors.spacedump.net/apr/apr-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=http://apache.mirrors.spacedump.net/apr/apr-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea
TERMUX_PKG_DEPENDS="libuuid" TERMUX_PKG_DEPENDS="libuuid"
TERMUX_PKG_BUILD_IN_SRC="yes" TERMUX_PKG_BUILD_IN_SRC="yes"
# "ac_cv_search_crypt=" to avoid needlessly linking to libcrypt. # "ac_cv_search_crypt=" to avoid needlessly linking to libcrypt.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-installbuilddir=$TERMUX_PREFIX/share/apr-1/build --with-installbuilddir=$TERMUX_PREFIX/share/apr-1/build
ac_cv_func_getrandom=no
ac_cv_have_decl_SYS_getrandom=no
ac_cv_file__dev_zero=yes ac_cv_file__dev_zero=yes
ac_cv_func_setpgrp_void=yes ac_cv_func_setpgrp_void=yes
apr_cv_process_shared_works=no apr_cv_process_shared_works=no

Loading…
Cancel
Save