Skip to content

Commit a4b0b34

Browse files
committed
build: Avoid getrandom@GLIBC_2.25 symbol in libevent package
1 parent c93e123 commit a4b0b34

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

depends/packages/libevent.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $(package)_version=2.1.12-stable
33
$(package)_download_path=https://github.com/libevent/libevent/releases/download/release-$($(package)_version)/
44
$(package)_file_name=$(package)-$($(package)_version).tar.gz
55
$(package)_sha256_hash=92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
6+
$(package)_patches = glibc_compatibility.patch
67

78
# When building for Windows, we set _WIN32_WINNT to target the same Windows
89
# version as we do in configure. Due to quirks in libevents build system, this
@@ -16,6 +17,10 @@ define $(package)_set_vars
1617
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
1718
endef
1819

20+
define $(package)_preprocess_cmds
21+
patch -p1 -i $($(package)_patch_dir)/glibc_compatibility.patch
22+
endef
23+
1924
define $(package)_config_cmds
2025
$($(package)_autoconf)
2126
endef
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Avoid getrandom@GLIBC_2.25 symbol.
2+
3+
--- old/config.h.in
4+
+++ new/config.h.in
5+
@@ -101,9 +101,6 @@
6+
/* Define to 1 if you have the `getprotobynumber' function. */
7+
#undef HAVE_GETPROTOBYNUMBER
8+
9+
-/* Define to 1 if you have the `getrandom' function. */
10+
-#undef HAVE_GETRANDOM
11+
-
12+
/* Define to 1 if you have the `getservbyname' function. */
13+
#undef HAVE_GETSERVBYNAME
14+

0 commit comments

Comments
 (0)