Diff libmicrohttpd-0.9.76 with a libmicrohttpd-0.9.77

/usr/portage/net-libs/libmicrohttpd/libmicrohttpd-0.9.77.ebuild 2024-12-25 14:59:51.251270144 +0300
3 3

  
4 4
EAPI="8"
5 5

  
6
inherit multilib-minimal
6
inherit linux-info multilib-minimal
7 7

  
8 8
MY_P="${P/_/}"
9 9

  
......
14 14

  
15 15
LICENSE="|| ( LGPL-2.1+ !ssl? ( GPL-2+-with-eCos-exception-2 ) )"
16 16
SLOT="0/12"
17
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
18
IUSE="+epoll ssl static-libs test +thread-names"
17
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
18
IUSE="+epoll +eventfd ssl static-libs test +thread-names"
19
REQUIRED_USE="epoll? ( kernel_linux )"
19 20
RESTRICT="!test? ( test )"
20 21

  
21 22
RDEPEND="ssl? ( >net-libs/gnutls-2.12.20:=[${MULTILIB_USEDEP}] )"
......
26 27

  
27 28
DOCS=( AUTHORS NEWS COPYING README ChangeLog )
28 29

  
29
PATCHES=( "${FILESDIR}"/${PN}-0.9.75-fix-testsuite-with-lto.patch )
30

  
31 30
# All checks in libmicrohttpd's configure are correct
32
# Gentoo Bug #898662
33 31
# Gentoo Bug #923760
34 32
QA_CONFIG_IMPL_DECL_SKIP=(
35
	'pthread_sigmask'
36
	'CreateThread'
37
	'pthread_attr_init'
38
	'pthread_attr_setname_np'
39
	'pthread_setname_np'
40
	'__builtin_bswap32'
41
	'__builtin_bswap64'
42
	'WSAPoll'
43
	'epoll_create1'
44
	'eventfd'
45
	'pipe'
46
	'pipe2'
47
	'socketpair'
48
	'gmtime_s'
49
	'host_get_clock_service'
50
	'clock_get_time'
51
	'mach_port_deallocate'
52
	'gethrtime'
53
	'timespec_get'
54
	'gettimeofday'
55
	'sendfile'
56
	'gnutls_privkey_import_x509_raw'
57
	'calloc'
58
	'fork'
59
	'waitpid'
60
	'random'
61
	'rand'
62
	'getsockname'
63
	'sysconf'
64
	'sysctl'
65
	'sysctlbyname'
66
	'usleep'
67
	'nanosleep'
68 33
	'stpncpy'
69 34
)
70 35

  
36
pkg_pretend() {
37
	if use kernel_linux ; then
38
		CONFIG_CHECK=""
39
		use epoll && CONFIG_CHECK+=" ~EPOLL"
40
		ERROR_EPOLL="EPOLL is not enabled in kernel, but enabled in libmicrohttpd."
41
		ERROR_EPOLL+=" libmicrohttpd will fail to start with 'automatic' configuration."
42
		use eventfd && CONFIG_CHECK+=" ~EVENTFD"
43
		ERROR_EVENTFD="EVENTFD is not enabled in kernel, but enabled in libmicrohttpd."
44
		ERROR_EVENTFD+=" libmicrohttpd will not work."
45
		check_extra_config
46
	fi
47
}
48

  
71 49
multilib_src_configure() {
50
	local itc_type
51
	if use eventfd ; then
52
		itc_type="eventfd"
53
	else
54
		itc_type="pipe"
55
	fi
72 56
	ECONF_SOURCE="${S}" \
73 57
	econf \
74 58
		--enable-shared \
......
82 66
		--enable-httpupgrade \
83 67
		--disable-experimental \
84 68
		--disable-heavy-tests \
69
		--enable-itc=${itc_type} \
85 70
		$(use_enable thread-names) \
86 71
		$(use_enable epoll) \
87 72
		$(use_enable test curl) \
88
		$(use_enable ssl https) \
89
		$(use_with ssl gnutls)
73
		$(use_enable ssl https)
90 74
}
91 75

  
92 76
multilib_src_install_all() {
Thank you!