Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-libs/tevent/, sys-libs/tevent/files/
Date: Thu, 07 May 2020 23:57:26
Message-Id: 1588895834.5ed6fc71bb14219636557eb69693a7ffdc62f7b4.anarchy@gentoo
1 commit: 5ed6fc71bb14219636557eb69693a7ffdc62f7b4
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 7 23:57:14 2020 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Thu May 7 23:57:14 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=5ed6fc71
7
8 sys-libs/tevent: add missing sys/types.h header for pid_t
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
12
13 sys-libs/tevent/Manifest | 1 +
14 .../tevent/files/tevent-add-missing-header.patch | 25 +++++++
15 sys-libs/tevent/metadata.xml | 12 ++++
16 sys-libs/tevent/tevent-0.10.2.ebuild | 76 ++++++++++++++++++++++
17 4 files changed, 114 insertions(+)
18
19 diff --git a/sys-libs/tevent/Manifest b/sys-libs/tevent/Manifest
20 new file mode 100644
21 index 0000000..09de55d
22 --- /dev/null
23 +++ b/sys-libs/tevent/Manifest
24 @@ -0,0 +1 @@
25 +DIST tevent-0.10.2.tar.gz 800731 BLAKE2B 5ea6b83378b04dbe1666432db0dbd4c0df2e6b0bf5ebcc8ec4ec9bdeb834efec75c87b2019dc78c691aba6c4f6467394101febd6010f106046a1fb8848e27405 SHA512 1da8f28898f35daab515892b880d1de601062cc3e2b2570cd62e6913df17b0195a05acb7b484c628cddc0eb8b0cde893105ede3feb32bc5764e7d25684f332ba
26
27 diff --git a/sys-libs/tevent/files/tevent-add-missing-header.patch b/sys-libs/tevent/files/tevent-add-missing-header.patch
28 new file mode 100644
29 index 0000000..9f4a448
30 --- /dev/null
31 +++ b/sys-libs/tevent/files/tevent-add-missing-header.patch
32 @@ -0,0 +1,25 @@
33 +From 63ba9622d49270a1f9795da9aab8f9934c6e088b Mon Sep 17 00:00:00 2001
34 +From: Jory Pratt <anarchy@g.o>
35 +Date: Thu, 7 May 2020 18:50:57 -0500
36 +Subject: [PATCH] tevent.h needs sys/types.h for pid_t
37 +
38 +Signed-off-by: Jory Pratt <anarchy@g.o>
39 +---
40 + tevent.h | 1 +
41 + 1 file changed, 1 insertion(+)
42 +
43 +diff --git a/tevent.h b/tevent.h
44 +index 3c3e3cc..011e1ad 100644
45 +--- a/tevent.h
46 ++++ b/tevent.h
47 +@@ -31,6 +31,7 @@
48 + #include <stdint.h>
49 + #include <talloc.h>
50 + #include <sys/time.h>
51 ++#include <sys/types.h>
52 + #include <stdbool.h>
53 +
54 + struct tevent_context;
55 +--
56 +2.26.2
57 +
58
59 diff --git a/sys-libs/tevent/metadata.xml b/sys-libs/tevent/metadata.xml
60 new file mode 100644
61 index 0000000..00dd5f3
62 --- /dev/null
63 +++ b/sys-libs/tevent/metadata.xml
64 @@ -0,0 +1,12 @@
65 +<?xml version="1.0" encoding="UTF-8"?>
66 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
67 +<pkgmetadata>
68 + <maintainer type="person">
69 + <email>patrick@g.o</email>
70 + <name>Patrick Lauer</name>
71 + </maintainer>
72 +<maintainer type="project">
73 + <email>samba@g.o</email>
74 + <name>Samba</name>
75 + </maintainer>
76 +</pkgmetadata>
77
78 diff --git a/sys-libs/tevent/tevent-0.10.2.ebuild b/sys-libs/tevent/tevent-0.10.2.ebuild
79 new file mode 100644
80 index 0000000..b0b256c
81 --- /dev/null
82 +++ b/sys-libs/tevent/tevent-0.10.2.ebuild
83 @@ -0,0 +1,76 @@
84 +# Copyright 1999-2020 Gentoo Authors
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +EAPI=6
88 +PYTHON_COMPAT=( python3_{6,7,8} )
89 +PYTHON_REQ_USE="threads(+)"
90 +
91 +inherit waf-utils multilib-minimal python-single-r1
92 +
93 +DESCRIPTION="Samba tevent library"
94 +HOMEPAGE="https://tevent.samba.org/"
95 +SRC_URI="https://www.samba.org/ftp/tevent/${P}.tar.gz"
96 +
97 +LICENSE="GPL-3"
98 +SLOT="0"
99 +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x86-linux"
100 +IUSE="elibc_glibc python"
101 +
102 +RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
103 + >=sys-libs/talloc-2.3.1[${MULTILIB_USEDEP}]
104 + python? ( ${PYTHON_DEPS} )"
105 +
106 +DEPEND="${RDEPEND}
107 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
108 + elibc_glibc? (
109 + net-libs/libtirpc[${MULTILIB_USEDEP}]
110 + || (
111 + net-libs/rpcsvc-proto
112 + <sys-libs/glibc-2.26[rpc(+)]
113 + )
114 + )
115 + ${PYTHON_DEPS}
116 +"
117 +# build system does not work with python3
118 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
119 +
120 +WAF_BINARY="${S}/buildtools/bin/waf"
121 +
122 +RESTRICT="test"
123 +
124 +PATCHES=(
125 + "${FILESDIR}/${PN}-add-missing-header.patch"
126 +)
127 +
128 +pkg_setup() {
129 + python-single-r1_pkg_setup
130 +}
131 +
132 +src_prepare() {
133 + default
134 + multilib_copy_sources
135 +}
136 +
137 +multilib_src_configure() {
138 + waf-utils_src_configure \
139 + --bundled-libraries=NONE \
140 + --builtin-libraries=NONE \
141 + $(multilib_native_usex python '' '--disable-python')
142 +}
143 +
144 +multilib_src_compile() {
145 + # need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
146 + unset MAKEOPTS
147 + waf-utils_src_compile
148 +}
149 +
150 +multilib_src_install() {
151 + waf-utils_src_install
152 +
153 + multilib_is_native_abi && use python && python_domodule tevent.py
154 +}
155 +
156 +multilib_src_install_all() {
157 + insinto /usr/include
158 + doins tevent_internal.h
159 +}