aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2020-05-07 18:57:14 -0500
committerJory Pratt <anarchy@gentoo.org>2020-05-07 18:57:14 -0500
commit5ed6fc71bb14219636557eb69693a7ffdc62f7b4 (patch)
treedd753a2a59d596b0f43f44675d2a50ad5742f899 /sys-libs
parentsys-devel/gcc: Drop old ebuilds (diff)
downloadmusl-5ed6fc71bb14219636557eb69693a7ffdc62f7b4.tar.gz
musl-5ed6fc71bb14219636557eb69693a7ffdc62f7b4.tar.bz2
musl-5ed6fc71bb14219636557eb69693a7ffdc62f7b4.zip
sys-libs/tevent: add missing sys/types.h header for pid_t
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jory Pratt <anarchy@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/tevent/Manifest1
-rw-r--r--sys-libs/tevent/files/tevent-add-missing-header.patch25
-rw-r--r--sys-libs/tevent/metadata.xml12
-rw-r--r--sys-libs/tevent/tevent-0.10.2.ebuild76
4 files changed, 114 insertions, 0 deletions
diff --git a/sys-libs/tevent/Manifest b/sys-libs/tevent/Manifest
new file mode 100644
index 0000000..09de55d
--- /dev/null
+++ b/sys-libs/tevent/Manifest
@@ -0,0 +1 @@
+DIST tevent-0.10.2.tar.gz 800731 BLAKE2B 5ea6b83378b04dbe1666432db0dbd4c0df2e6b0bf5ebcc8ec4ec9bdeb834efec75c87b2019dc78c691aba6c4f6467394101febd6010f106046a1fb8848e27405 SHA512 1da8f28898f35daab515892b880d1de601062cc3e2b2570cd62e6913df17b0195a05acb7b484c628cddc0eb8b0cde893105ede3feb32bc5764e7d25684f332ba
diff --git a/sys-libs/tevent/files/tevent-add-missing-header.patch b/sys-libs/tevent/files/tevent-add-missing-header.patch
new file mode 100644
index 0000000..9f4a448
--- /dev/null
+++ b/sys-libs/tevent/files/tevent-add-missing-header.patch
@@ -0,0 +1,25 @@
+From 63ba9622d49270a1f9795da9aab8f9934c6e088b Mon Sep 17 00:00:00 2001
+From: Jory Pratt <anarchy@gentoo.org>
+Date: Thu, 7 May 2020 18:50:57 -0500
+Subject: [PATCH] tevent.h needs sys/types.h for pid_t
+
+Signed-off-by: Jory Pratt <anarchy@gentoo.org>
+---
+ tevent.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tevent.h b/tevent.h
+index 3c3e3cc..011e1ad 100644
+--- a/tevent.h
++++ b/tevent.h
+@@ -31,6 +31,7 @@
+ #include <stdint.h>
+ #include <talloc.h>
+ #include <sys/time.h>
++#include <sys/types.h>
+ #include <stdbool.h>
+
+ struct tevent_context;
+--
+2.26.2
+
diff --git a/sys-libs/tevent/metadata.xml b/sys-libs/tevent/metadata.xml
new file mode 100644
index 0000000..00dd5f3
--- /dev/null
+++ b/sys-libs/tevent/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+<maintainer type="project">
+ <email>samba@gentoo.org</email>
+ <name>Samba</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-libs/tevent/tevent-0.10.2.ebuild b/sys-libs/tevent/tevent-0.10.2.ebuild
new file mode 100644
index 0000000..b0b256c
--- /dev/null
+++ b/sys-libs/tevent/tevent-0.10.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit waf-utils multilib-minimal python-single-r1
+
+DESCRIPTION="Samba tevent library"
+HOMEPAGE="https://tevent.samba.org/"
+SRC_URI="https://www.samba.org/ftp/tevent/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x86-linux"
+IUSE="elibc_glibc python"
+
+RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
+ >=sys-libs/talloc-2.3.1[${MULTILIB_USEDEP}]
+ python? ( ${PYTHON_DEPS} )"
+
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+ elibc_glibc? (
+ net-libs/libtirpc[${MULTILIB_USEDEP}]
+ || (
+ net-libs/rpcsvc-proto
+ <sys-libs/glibc-2.26[rpc(+)]
+ )
+ )
+ ${PYTHON_DEPS}
+"
+# build system does not work with python3
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+WAF_BINARY="${S}/buildtools/bin/waf"
+
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-add-missing-header.patch"
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ waf-utils_src_configure \
+ --bundled-libraries=NONE \
+ --builtin-libraries=NONE \
+ $(multilib_native_usex python '' '--disable-python')
+}
+
+multilib_src_compile() {
+ # need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
+ unset MAKEOPTS
+ waf-utils_src_compile
+}
+
+multilib_src_install() {
+ waf-utils_src_install
+
+ multilib_is_native_abi && use python && python_domodule tevent.py
+}
+
+multilib_src_install_all() {
+ insinto /usr/include
+ doins tevent_internal.h
+}