build: Avoid getrandom@GLIBC_2.25 symbol in libevent package

This commit is contained in:
Hennadii Stepanov 2021-06-22 18:21:47 +03:00 committed by Patrick Lodder
parent 612b4b89ed
commit 211db366c4
No known key found for this signature in database
GPG Key ID: 2D3A345B98D0DC1F
2 changed files with 19 additions and 0 deletions

View File

@ -3,6 +3,7 @@ $(package)_version=2.1.12-stable
$(package)_download_path=https://github.com/libevent/libevent/releases/download/release-$($(package)_version)/
$(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
$(package)_patches = glibc_compatibility.patch
define $(package)_preprocess_cmds
./autogen.sh
@ -14,6 +15,10 @@ define $(package)_set_vars
$(package)_config_opts_linux=--with-pic
endef
define $(package)_preprocess_cmds
patch -p1 -i $($(package)_patch_dir)/glibc_compatibility.patch
endef
define $(package)_config_cmds
$($(package)_autoconf)
endef

View File

@ -0,0 +1,14 @@
Avoid getrandom@GLIBC_2.25 symbol.
--- old/config.h.in
+++ new/config.h.in
@@ -101,9 +101,6 @@
/* Define to 1 if you have the `getprotobynumber' function. */
#undef HAVE_GETPROTOBYNUMBER
-/* Define to 1 if you have the `getrandom' function. */
-#undef HAVE_GETRANDOM
-
/* Define to 1 if you have the `getservbyname' function. */
#undef HAVE_GETSERVBYNAME