Сравнение libcgroup-3.1.0 с libcgroup-3.2.0

/usr/portage/dev-libs/libcgroup/libcgroup-3.2.0.ebuild 2026-04-29 00:17:39.253954232 +0300
14 14
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv x86"
15 15
IUSE="+daemon pam selinux static-libs systemd test +tools"
16 16
REQUIRED_USE="daemon? ( tools )"
17

  
18
# Test failure needs investigation
19
RESTRICT="!test? ( test ) test"
17
RESTRICT="!test? ( test ) "
20 18

  
21 19
DEPEND="
22 20
	elibc_musl? ( sys-libs/fts-standalone )
......
30 28
BDEPEND="
31 29
	sys-devel/bison
32 30
	sys-devel/flex
31
	test? ( dev-cpp/gtest )
33 32
"
34 33

  
34
PATCHES=(
35
	"${FILESDIR}"/${PN}-3.2.0-use-system-gtest.patch
36
)
37

  
35 38
pkg_setup() {
36 39
	local CONFIG_CHECK="~CGROUPS"
37 40
	if use daemon; then
......
49 52
	sed -i 's:/etc/cg:/etc/cgroup/cg:' \
50 53
		doc/man/cg* samples/config/*.conf README* || die "sed failed"
51 54

  
52
	# Drop native libcgconfig init config
53
	sed -i '/^man_MANS/s:cgred.conf.5::' \
54
		doc/man/Makefile.am || die "sed failed"
55

  
56
	# If we're not running tests, don't bother building them.
57
	if ! use test; then
58
		sed -i '/^SUBDIRS/s:tests::' Makefile.am || die
59
	fi
60

  
61 55
	eautoreconf
62 56
}
63 57

  
......
66 60
		append-ldflags -lfts
67 61
	fi
68 62

  
63
	# gtest needs >=C++14, just pick gnu++17
64
	append-cxxflags -std=gnu++17
65

  
66
	# Test failures (bug #956346)
67
	filter-lto
68

  
69 69
	# Needs flex+bison
70 70
	unset LEX YACC
71 71

  
......
77 77
		$(use_enable systemd)
78 78
		$(use_enable tools)
79 79
		$(use_enable test tests)
80
		$(use_enable test unittests)
80 81
	)
81 82

  
82 83
	if use pam; then
......
87 88
}
88 89

  
89 90
src_test() {
91
	# Sandboxes confuse this as it expects specific cgroup layout
92
	local -x GTEST_FILTER="-CgroupProcessV1MntTest.AddV1NamedMount"
93

  
90 94
	# Run just the unit tests rather than the full lot as they
91 95
	# need fewer permissions, no containers, etc.
92 96
	emake -C tests/gunit check
Спасибо!