Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxc/
Date: Mon, 14 Sep 2020 05:11:46
Message-Id: 1600060294.f91e2c096c0cc94133a233942cc1c79d694c98ff.juippis@gentoo
1 commit: f91e2c096c0cc94133a233942cc1c79d694c98ff
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 14 05:07:21 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 14 05:11:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f91e2c09
7
8 app-emulation/lxc: remove old 4.0.3
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 app-emulation/lxc/Manifest | 1 -
13 app-emulation/lxc/lxc-4.0.3.ebuild | 162 -------------------------------------
14 2 files changed, 163 deletions(-)
15
16 diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest
17 index 814ef80d2ef..1f1a926377b 100644
18 --- a/app-emulation/lxc/Manifest
19 +++ b/app-emulation/lxc/Manifest
20 @@ -1,2 +1 @@
21 -DIST lxc-4.0.3.tar.gz 1368461 BLAKE2B 861bd8f3736ecda9075c57338845d386811ae3aeceb72cd054023a25a9758d5d7c9ceec917fc634c118a13f8fb142b28bd93f27138b9ee1d0817f8360fda88da SHA512 a5d45626b1f26c0f098f6f0f5852472ea065f65f9918b972826e087a9a71a34253c85dd6f1b6b6837ca97303f8d43478a66595057d65a6e72a72334a3257ef88
22 DIST lxc-4.0.4.tar.gz 844684 BLAKE2B 438f9c79787cfab493a159a03dad214519b979c192264cb4acff21174f5642e2c10a899504ed2ac697906ca1ea9ad5cd92e01dbb8c6420651e7130b56022032a SHA512 5c5bb3c474b37284e862cbaf35daab01be7606992eb101cbea7097951ccee81dad8ab8d2624ba5f62279ece17889b1245fd6b2b63e8b17ed728560c5d40309b2
23
24 diff --git a/app-emulation/lxc/lxc-4.0.3.ebuild b/app-emulation/lxc/lxc-4.0.3.ebuild
25 deleted file mode 100644
26 index c5119e1d542..00000000000
27 --- a/app-emulation/lxc/lxc-4.0.3.ebuild
28 +++ /dev/null
29 @@ -1,162 +0,0 @@
30 -# Copyright 1999-2020 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -inherit autotools bash-completion-r1 linux-info flag-o-matic pam readme.gentoo-r1 systemd
36 -
37 -DESCRIPTION="LinuX Containers userspace utilities"
38 -HOMEPAGE="https://linuxcontainers.org/ https://github.com/lxc/lxc"
39 -SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz"
40 -
41 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
42 -
43 -LICENSE="LGPL-3"
44 -SLOT="0"
45 -IUSE="apparmor +caps doc examples libressl pam seccomp selinux +ssl +templates +tools"
46 -
47 -RDEPEND="app-misc/pax-utils
48 - sys-apps/util-linux
49 - sys-libs/libcap
50 - virtual/awk
51 - caps? ( sys-libs/libcap )
52 - pam? ( sys-libs/pam )
53 - seccomp? ( sys-libs/libseccomp )
54 - selinux? ( sys-libs/libselinux )
55 - ssl? (
56 - !libressl? ( dev-libs/openssl:0= )
57 - libressl? ( dev-libs/libressl:0= )
58 - )"
59 -DEPEND="${RDEPEND}
60 - >=app-text/docbook-sgml-utils-0.6.14-r2
61 - >=sys-kernel/linux-headers-3.2
62 - apparmor? ( sys-apps/apparmor )"
63 -BDEPEND="doc? ( app-doc/doxygen )"
64 -PDEPEND="templates? ( app-emulation/lxc-templates )"
65 -
66 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
67 - ~CPUSETS ~CGROUP_CPUACCT
68 - ~CGROUP_SCHED
69 - ~MEMCG
70 -
71 - ~NAMESPACES
72 - ~IPC_NS ~USER_NS ~PID_NS
73 -
74 - ~CGROUP_FREEZER
75 - ~UTS_NS ~NET_NS
76 - ~VETH ~MACVLAN
77 -
78 - ~POSIX_MQUEUE
79 - ~!NETPRIO_CGROUP"
80 -
81 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
82 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
83 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
84 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
85 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
86 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
87 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
88 -ERROR_MEMCG="CONFIG_MEMCG is not set. This is needed for memory resource control in containers."
89 -
90 -DOCS=( AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt )
91 -
92 -pkg_setup() {
93 - linux-info_pkg_setup
94 -}
95 -
96 -PATCHES=(
97 - "${FILESDIR}"/${PN}-3.0.0-bash-completion.patch
98 - "${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch # bug 558854
99 -)
100 -
101 -src_prepare() {
102 - default
103 - eautoreconf
104 -}
105 -
106 -src_configure() {
107 - append-flags -fno-strict-aliasing
108 -
109 - # --enable-doc is for manpages which is why we don't link it to a "doc"
110 - # USE flag. We always want man pages.
111 - local myeconfargs=(
112 - --bindir=/usr/bin
113 - --localstatedir=/var
114 - --sbindir=/usr/bin
115 -
116 - --with-config-path=/var/lib/lxc
117 - --with-distro=gentoo
118 - --with-init-script=systemd
119 - --with-rootfs-path=/var/lib/lxc/rootfs
120 - --with-runtime-path=/run
121 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
122 -
123 - --disable-asan
124 - --disable-coverity-build
125 - --disable-dlog
126 - --disable-mutex-debugging
127 - --disable-rpath
128 - --disable-tests
129 - --disable-ubsan
130 - --disable-werror
131 -
132 - --enable-bash
133 - --enable-commands
134 - --enable-doc
135 - --enable-memfd-rexec
136 - --enable-thread-safety
137 -
138 - $(use_enable apparmor)
139 - $(use_enable caps capabilities)
140 - $(use_enable doc api-docs)
141 - $(use_enable examples)
142 - $(use_enable pam)
143 - $(use_enable seccomp)
144 - $(use_enable selinux)
145 - $(use_enable ssl openssl)
146 - $(use_enable tools)
147 -
148 - $(use_with pam pamdir $(getpam_mod_dir))
149 - )
150 -
151 - econf "${myeconfargs[@]}"
152 -}
153 -
154 -src_install() {
155 - default
156 -
157 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
158 - bashcomp_alias ${PN}-start \
159 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,stop,unfreeze,wait}
160 -
161 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
162 - rmdir "${D}"/var/cache/lxc "${D}"/var/cache || die "rmdir failed"
163 -
164 - find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die
165 -
166 - # Gentoo-specific additions!
167 - newinitd "${FILESDIR}/${PN}.initd.8" ${PN}
168 -
169 - # Remember to compare our systemd unit file with the upstream one
170 - # config/init/systemd/lxc.service.in
171 - systemd_newunit "${FILESDIR}"/${PN}_at.service.4.0.0 "lxc@.service"
172 -
173 - DOC_CONTENTS="
174 - For openrc, there is an init script provided with the package.
175 - You _should_ only need to symlink /etc/init.d/lxc to
176 - /etc/init.d/lxc.configname to start the container defined in
177 - /etc/lxc/configname.conf.
178 -
179 - Correspondingly, for systemd a service file lxc@.service is installed.
180 - Enable and start lxc@configname in order to start the container defined
181 - in /etc/lxc/configname.conf.
182 -
183 - If you want checkpoint/restore functionality, please install criu
184 - (sys-process/criu)."
185 - DISABLE_AUTOFORMATTING=true
186 - readme.gentoo_create_doc
187 -}
188 -
189 -pkg_postinst() {
190 - readme.gentoo_print_elog
191 -}