Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcgroup/
Date: Sat, 21 Sep 2019 09:15:55
Message-Id: 1569057321.cd7a823cb532735ce9541172f7c2af69b6fc532f.mgorny@gentoo
1 commit: cd7a823cb532735ce9541172f7c2af69b6fc532f
2 Author: Bernardo Meurer <meurerbernardo <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 11 00:42:22 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 21 09:15:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd7a823c
7
8 dev-libs/libcgroup: EAPI-7
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Bernardo Meurer <bernardo <AT> standard.ai>
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 dev-libs/libcgroup/libcgroup-0.41-r6.ebuild | 35 ++++++++++++++++-------------
15 1 file changed, 20 insertions(+), 15 deletions(-)
16
17 diff --git a/dev-libs/libcgroup/libcgroup-0.41-r6.ebuild b/dev-libs/libcgroup/libcgroup-0.41-r6.ebuild
18 index 14021a85a76..f0164a2fa06 100644
19 --- a/dev-libs/libcgroup/libcgroup-0.41-r6.ebuild
20 +++ b/dev-libs/libcgroup/libcgroup-0.41-r6.ebuild
21 @@ -1,7 +1,7 @@
22 # Copyright 1999-2019 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 inherit autotools flag-o-matic linux-info pam systemd
29
30 @@ -13,18 +13,27 @@ LICENSE="LGPL-2.1"
31 SLOT="0"
32 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
33 IUSE="+daemon elibc_musl pam static-libs test +tools"
34 +REQUIRED_USE="daemon? ( tools )"
35
36 -RDEPEND="pam? ( virtual/pam )"
37 +# Use mount cgroup to build directory
38 +# sandbox restricted to trivial build,
39 +RESTRICT="test"
40
41 -DEPEND="
42 - ${RDEPEND}
43 +BDEPEND="
44 sys-devel/bison
45 sys-devel/flex
46 elibc_musl? ( sys-libs/fts-standalone )
47 - "
48 -REQUIRED_USE="daemon? ( tools )"
49 +"
50 +DEPEND="pam? ( virtual/pam )"
51 +RDEPEND="${DEPEND}"
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/${P}-replace-DECLS.patch
55 + "${FILESDIR}"/${P}-replace-INLCUDES.patch
56 + "${FILESDIR}"/${P}-reorder-headers.patch
57 + "${FILESDIR}"/${P}-remove-umask.patch
58 +)
59
60 -DOCS=(README_daemon README README_systemd INSTALL)
61 pkg_setup() {
62 local CONFIG_CHECK="~CGROUPS"
63 if use daemon; then
64 @@ -56,6 +65,9 @@ src_prepare() {
65 sed -i '/^SUBDIRS/s:tests::' Makefile.am || die
66 fi
67
68 + # Workaround configure.in
69 + mv configure.in configure.ac || die
70 +
71 eautoreconf
72 }
73
74 @@ -75,16 +87,9 @@ src_configure() {
75 ${my_conf}
76 }
77
78 -src_test() {
79 - # Use mount cgroup to build directory
80 - # sandbox restricted to trivial build,
81 - # possible kill Diego tanderbox ;)
82 - true
83 -}
84 -
85 src_install() {
86 default
87 - prune_libtool_files --all
88 + find "${D}" -name '*.la' -delete || die
89
90 insinto /etc/cgroup
91 doins samples/*.conf