summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-07-31 05:48:46 +0000
committerTim Harder <radhermit@gentoo.org>2013-07-31 05:48:46 +0000
commit075ad35cb0a28881e2c287836ffa4795ad1d8dc7 (patch)
tree692918ca92607ee6e209203b714cb290f16064dc /sys-process/criu
parentAllow using >=dev-lang/perl-5.16 without 'build' in IUSE. (diff)
downloadgentoo-2-075ad35cb0a28881e2c287836ffa4795ad1d8dc7.tar.gz
gentoo-2-075ad35cb0a28881e2c287836ffa4795ad1d8dc7.tar.bz2
gentoo-2-075ad35cb0a28881e2c287836ffa4795ad1d8dc7.zip
Version bump (bug #475558 by Maksim Melnikau).
(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'sys-process/criu')
-rw-r--r--sys-process/criu/ChangeLog8
-rw-r--r--sys-process/criu/criu-0.6.ebuild46
-rw-r--r--sys-process/criu/files/criu-0.6-flags.patch55
3 files changed, 108 insertions, 1 deletions
diff --git a/sys-process/criu/ChangeLog b/sys-process/criu/ChangeLog
index c22ed5e98e8b..2d1d194de853 100644
--- a/sys-process/criu/ChangeLog
+++ b/sys-process/criu/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-process/criu
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/criu/ChangeLog,v 1.2 2013/06/08 21:09:10 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/criu/ChangeLog,v 1.3 2013/07/31 05:48:46 radhermit Exp $
+
+*criu-0.6 (31 Jul 2013)
+
+ 31 Jul 2013; Tim Harder <radhermit@gentoo.org> +criu-0.6.ebuild,
+ +files/criu-0.6-flags.patch:
+ Version bump (bug #475558 by Maksim Melnikau).
08 Jun 2013; Tim Harder <radhermit@gentoo.org> criu-0.5.ebuild:
Drop ~x86 keyword since it isn't supported yet.
diff --git a/sys-process/criu/criu-0.6.ebuild b/sys-process/criu/criu-0.6.ebuild
new file mode 100644
index 000000000000..46e8c635788e
--- /dev/null
+++ b/sys-process/criu/criu-0.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/criu/criu-0.6.ebuild,v 1.1 2013/07/31 05:48:46 radhermit Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs linux-info
+
+DESCRIPTION="utility to checkpoint/restore a process tree"
+HOMEPAGE="http://criu.org/"
+SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-libs/protobuf-c"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ app-text/xmlto"
+
+CONFIG_CHECK="~CHECKPOINT_RESTORE ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER
+ ~UNIX_DIAG ~INET_DIAG ~PACKET_DIAG ~NETLINK_DIAG ~INET_UDP_DIAG"
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+}
+
+src_compile() {
+ unset ARCH
+ emake CC="$(tc-getCC)" V=1 WERROR=0 all docs
+}
+
+src_test() {
+ # root privileges are required to dump all necessary info
+ if [[ ${EUID} -eq 0 ]] ; then
+ emake -j1 CC="$(tc-getCC)" V=1 WERROR=0 test
+ fi
+}
+
+src_install() {
+ emake PREFIX="${EPREFIX}"/usr DESTDIR="${D}" install
+ dodoc CREDITS README
+}
diff --git a/sys-process/criu/files/criu-0.6-flags.patch b/sys-process/criu/files/criu-0.6-flags.patch
new file mode 100644
index 000000000000..418f026e7350
--- /dev/null
+++ b/sys-process/criu/files/criu-0.6-flags.patch
@@ -0,0 +1,55 @@
+--- criu-0.6/Makefile
++++ criu-0.6/Makefile
+@@ -87,9 +87,6 @@
+
+ ifeq ($(DEBUG),1)
+ DEFINES += -DCR_DEBUG
+- CFLAGS += -O0 -ggdb3
+-else
+- CFLAGS += -O2
+ endif
+
+ CFLAGS += $(WARNINGS) $(DEFINES)
+--- criu-0.6/test/zdtm/lib/Makefile
++++ criu-0.6/test/zdtm/lib/Makefile
+@@ -1,6 +1,6 @@
+ include ../Makefile.inc
+
+-CFLAGS = -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
++CFLAGS = -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
+
+ LIBDIR = .
+ LIB = libzdtmtst.a
+--- criu-0.6/test/zdtm/live/static/Makefile
++++ criu-0.6/test/zdtm/live/static/Makefile
+@@ -3,7 +3,7 @@
+ LIBDIR = ../../lib
+ LIB = $(LIBDIR)/libzdtmtst.a
+ override CPPFLAGS += -I$(LIBDIR)
+-CFLAGS = -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
++CFLAGS = -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
+
+ TST_NOFILE = \
+ busyloop00 \
+--- criu-0.6/test/zdtm/live/streaming/Makefile
++++ criu-0.6/test/zdtm/live/streaming/Makefile
+@@ -3,7 +3,7 @@
+ LIBDIR = ../../lib
+ LIB = $(LIBDIR)/libzdtmtst.a
+ override CPPFLAGS += -I$(LIBDIR)
+-CFLAGS = -g -O2 -Wall -Werror -fno-strict-aliasing
++CFLAGS = -Wall -fno-strict-aliasing
+
+ TST_NOFILE = \
+ pipe_loop00 \
+--- criu-0.6/test/zdtm/live/transition/Makefile
++++ criu-0.6/test/zdtm/live/transition/Makefile
+@@ -3,7 +3,7 @@
+ LIBDIR = ../../lib
+ LIB = $(LIBDIR)/libzdtmtst.a
+ override CPPFLAGS += -I$(LIBDIR)
+-CFLAGS = -g -O2 -Wall -Werror
++CFLAGS = -Wall
+
+ TST_NOFILE = \
+ ipc \