From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/criu/
Date: Wed, 25 Nov 2020 03:45:53 +0000 (UTC) [thread overview]
Message-ID: <1606275941.444567e130d35a09a866626727df2921860111ef.chutzpah@gentoo> (raw)
commit: 444567e130d35a09a866626727df2921860111ef
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 25 03:45:41 2020 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Nov 25 03:45:41 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=444567e1
sys-process/criu-3.15: Version bump
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
sys-process/criu/Manifest | 1 +
sys-process/criu/criu-3.15.ebuild | 137 ++++++++++++++++++++++++++++++++++++++
2 files changed, 138 insertions(+)
diff --git a/sys-process/criu/Manifest b/sys-process/criu/Manifest
index dc1a71857ab..84332204a0a 100644
--- a/sys-process/criu/Manifest
+++ b/sys-process/criu/Manifest
@@ -1 +1,2 @@
DIST criu-3.14.tar.bz2 881407 BLAKE2B 418412681baf7ec9d3a03afe3860590c857bffcb6c57d01e60b77e85dd5ba2b30deee280c884ba1574665be5fcfd03f3cc058a4b7ae08f66aabe63a80373089b SHA512 97d064c5ffc41daf6e89edd6208b30e4198f313afc6d621d0dc74dadf94c303be70ba448d4e1ced9500f1c65f1bd12206eb88883be398911cc2c995310b17cc6
+DIST criu-3.15.tar.bz2 913904 BLAKE2B 2a3c7ad7ac32a407493e8908886d2929606e1dd0a1dd499be75cb954c1c4d60d0c59f0524d173dcdd89fa638e1edcc0c31886262069e3478173648ef09b4c159 SHA512 7bfd32053e47b95d10cdd5e99494bff6a21aa3179518179f8c72e870f0aab960dd76c9f6cb6982e5b881472cf6962eefee3cf7d8ae9128b3379bcaecc937ebbc
diff --git a/sys-process/criu/criu-3.15.ebuild b/sys-process/criu/criu-3.15.ebuild
new file mode 100644
index 00000000000..4ea6dc9f39a
--- /dev/null
+++ b/sys-process/criu/criu-3.15.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit toolchain-funcs linux-info flag-o-matic python-r1
+
+DESCRIPTION="utility to checkpoint/restore a process tree"
+HOMEPAGE="https://criu.org/"
+SRC_URI="https://download.openvz.org/criu/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
+IUSE="doc selinux setproctitle static-libs"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/protobuf-c
+ dev-libs/libnl:3
+ net-libs/libnet:1.1
+ sys-libs/libcap
+ selinux? ( sys-libs/libselinux )
+ setproctitle? ( dev-libs/libbsd )"
+DEPEND="${RDEPEND}
+ doc? (
+ app-text/asciidoc
+ app-text/xmlto
+ )"
+RDEPEND="${RDEPEND}
+ dev-python/protobuf-python[${PYTHON_USEDEP}]
+"
+
+CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER
+ ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG ~TUN ~NETFILTER_XT_MARK"
+
+# root access required for tests
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/2.2/${PN}-2.2-flags.patch
+ "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch
+ "${FILESDIR}"/${PN}-3.12-automagic-libbsd.patch
+)
+
+criu_arch() {
+ # criu infers the arch from $(uname -m). We never want this to happen.
+ case ${ARCH} in
+ amd64) echo "x86";;
+ arm64) echo "aarch64";;
+ ppc64*) echo "ppc64";;
+ *) echo "${ARCH}";;
+ esac
+}
+
+pkg_setup() {
+ use amd64 && CONFIG_CHECK+=" ~IA32_EMULATION"
+ linux-info_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ if ! use selinux; then
+ sed \
+ -e 's:libselinux:no_libselinux:g' \
+ -i Makefile.config || die
+ fi
+
+ use doc || sed -i 's_\(install: \)install-man _\1_g' Makefile.install
+}
+
+src_configure() {
+ # Gold linker generates invalid object file when used with criu's custom
+ # linker script. Use the bfd linker instead. See https://crbug.com/839665#c3
+ tc-ld-disable-gold
+
+ # Build system uses this variable as a trigger to append coverage flags
+ # we'd like to avoid it. https://bugs.gentoo.org/744244
+ unset GCOV
+
+ python_setup
+}
+
+src_compile() {
+ local target="all $(usex doc 'docs' '')"
+ emake \
+ HOSTCC="$(tc-getBUILD_CC)" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ AR="$(tc-getAR)" \
+ PYTHON="${EPYTHON%.?}" \
+ FULL_PYTHON="${PYTHON%.?}" \
+ OBJCOPY="$(tc-getOBJCOPY)" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ ARCH="$(criu_arch)" \
+ V=1 WERROR=0 DEBUG=0 \
+ SETPROCTITLE=$(usex setproctitle) \
+ ${target}
+}
+
+src_test() {
+ # root privileges are required to dump all necessary info
+ if [[ ${EUID} -eq 0 ]] ; then
+ emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test
+ fi
+}
+
+install_crit() {
+ "${EPYTHON}" scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" || die
+ python_optimize
+}
+
+src_install() {
+ emake \
+ ARCH="$(criu_arch)" \
+ PREFIX="${EPREFIX}"/usr \
+ PYTHON="${EPYTHON%.?}" \
+ FULL_PYTHON="${PYTHON%.?}" \
+ LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \
+ DESTDIR="${D}" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ V=1 WERROR=0 DEBUG=0 \
+ install
+
+ use doc && dodoc CREDITS README.md
+
+ python_foreach_impl install_crit
+
+ if ! use static-libs; then
+ find "${D}" -name "*.a" -delete || die
+ fi
+}
next reply other threads:[~2020-11-25 3:45 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 3:45 Patrick McLean [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-22 8:55 [gentoo-commits] repo/gentoo:master commit in: sys-process/criu/ WANG Xuerui
2024-08-22 8:55 WANG Xuerui
2024-04-29 10:36 Joonas Niilola
2024-01-21 15:15 Florian Schmaus
2024-01-21 14:52 Florian Schmaus
2024-01-21 9:44 Florian Schmaus
2023-07-08 3:39 Sam James
2023-07-07 4:40 Sam James
2023-07-07 3:36 Sam James
2023-05-01 12:52 Sam James
2023-02-25 12:48 Joonas Niilola
2022-11-15 18:22 Michał Górny
2022-11-03 6:15 Sam James
2022-11-03 6:15 Sam James
2022-11-02 23:14 Sam James
2022-07-03 23:54 Sam James
2022-06-07 8:24 Jakov Smolić
2022-06-07 6:34 Joonas Niilola
2022-06-03 8:12 Sam James
2022-06-03 6:58 Sam James
2022-03-25 9:46 Jakov Smolić
2022-03-25 4:23 Sam James
2022-02-02 20:52 Arthur Zamarin
2022-02-02 8:02 Agostino Sarubbo
2021-09-03 1:53 Sam James
2021-07-20 0:51 Georgy Yakovlev
2021-06-01 6:32 Agostino Sarubbo
2020-09-25 8:45 Agostino Sarubbo
2020-09-24 8:29 Georgy Yakovlev
2020-09-24 1:53 Georgy Yakovlev
2020-09-22 20:25 Georgy Yakovlev
2020-09-22 20:25 Georgy Yakovlev
2020-08-02 17:37 Patrick McLean
2020-05-15 17:36 Patrick McLean
2019-12-29 9:56 David Seifert
2019-10-20 6:29 Yixun Lan
2019-07-28 19:39 Matthias Maier
2019-07-28 19:39 Matthias Maier
2019-03-02 9:57 Sergei Trofimovich
2019-01-12 23:29 Sergei Trofimovich
2019-01-12 23:29 Sergei Trofimovich
2018-05-07 6:38 Mike Frysinger
2018-04-30 15:58 Mike Gilbert
2018-02-22 9:05 Agostino Sarubbo
2018-02-12 3:05 Matthias Maier
2018-02-12 3:05 Matthias Maier
2018-01-22 1:42 Zac Medico
2017-12-16 0:24 Matthias Maier
2017-11-12 21:08 Justin Lecher
2017-09-21 21:06 Mike Gilbert
2017-05-26 22:54 David Seifert
2017-03-30 6:32 Yixun Lan
2017-03-10 7:49 Yixun Lan
2017-03-10 7:49 Yixun Lan
2017-02-22 9:08 Yixun Lan
2017-02-15 21:45 Yixun Lan
2017-01-19 1:47 Yixun Lan
2016-12-20 19:21 Tobias Klausmann
2016-10-18 20:49 Yixun Lan
2016-10-18 20:49 Yixun Lan
2016-09-20 6:35 Yixun Lan
2016-09-20 6:35 Yixun Lan
2016-07-04 19:05 Stephen Klimaszewski
2016-05-27 9:33 Lars Wendler
2016-03-21 6:15 Yixun Lan
2016-03-15 15:13 Alexis Ballier
2016-03-15 15:13 Alexis Ballier
2015-08-19 6:53 Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1606275941.444567e130d35a09a866626727df2921860111ef.chutzpah@gentoo \
--to=chutzpah@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox