Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 542858

Summary: sys-process/criu: needs to support >=protobuf-c-1
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: Tim Harder <radhermit>
Status: RESOLVED FIXED    
Severity: normal CC: dlan, hwoarang, ivanhoe, pageexec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: criu-1.5-r1 full log when build with dev-libs/protobuf-c-1.1.0

Description SpanKY gentoo-dev 2015-03-10 21:42:45 UTC
current ebuild has:
  RDEPEND="<dev-libs/protobuf-c-1"

obviously bad juju when we have protobuf-c-1 in the system
Comment 1 Tim Harder gentoo-dev 2015-03-11 02:06:05 UTC
Ah right, that was the main blocker. I just assumed you would bump it to 1.5 for me... but it looks like that doesn't build against protobuf-c-1.1.0 anyway.
Comment 2 Ivan Iraci 2015-03-11 10:23:23 UTC
sys-process/criu-1.4 builds fine with dev-libs/protobuf-c-1.0.2-r1.

So maybe the ebuild should be changed this way:
RDEPEND="<dev-libs/protobuf-c-1.1"

And dev-libs/protobuf-c-1.1 should be masked.
Comment 3 SpanKY gentoo-dev 2015-03-11 23:17:58 UTC
(In reply to Ivan Iraci from comment #2)

that doesn't fix the problem: criu should work with the latest version, not something slightly newer than what it already does
Comment 4 Yixun Lan archtester gentoo-dev 2015-03-12 16:54:23 UTC
(In reply to SpanKY from comment #3)

@vapier, regarding this, do you have any patch or plan to work on this?

otherwise I'd agree with Ivan from #c2, that we should mask protobuf-c-1.1.0, and at least let criu-1.4 work with protobuf-c-1.0.2-r1

also, upstream has released criu-1.5, and I found it works with protobuf-c-1.0.2-r1, but fail to build with protobuf-c-1.1.0
Comment 5 SpanKY gentoo-dev 2015-03-12 17:38:27 UTC
(In reply to Yixun Lan from comment #4)

i'm not working on it.  Tim has taken a look, but i don't know how far he has gotten.  masking a library because one package is broken is not how things work.  if criu can't support the latest versions of software, then it should be masked and thrown away.
Comment 6 Yixun Lan archtester gentoo-dev 2015-03-12 22:17:36 UTC
(In reply to SpanKY from comment #5)

Ok, I'd agree that masking protobuf-c-1.1.0 wasn't a good idea, since not just  criu depend on it, but there are other packages.

so how about 1) restrict dep like "<dev-libs/protobuf-c-1.1.0" only at criu side.
and then 2) we can check code at upstream, or report to them, to work out a patch (better solution!)

I think 1) is quick & simple solution, and doing 2) may takes a few more time.

@radhermit, although you plan to drop maintainership of this package, could you still help us through it? I'm also CCing markos, see if he willing to take over this package, since criu is a dep of app-emulation/lxc
Comment 7 Yixun Lan archtester gentoo-dev 2015-03-12 22:21:44 UTC
(In reply to Yixun Lan from comment #6)

oops, sorry for the noise..

great @radhermit already bumped to version 1.5 and fix the dep there! thanks
Comment 8 SpanKY gentoo-dev 2015-03-12 22:50:32 UTC
(In reply to Yixun Lan from comment #6)

bumping & allowing a newer version of protobuf-c is certainly fine and doesn't really make the status quo worse, but it doesn't close out this bug :)
Comment 9 Yixun Lan archtester gentoo-dev 2015-03-13 04:44:57 UTC
Created attachment 398772 [details]
criu-1.5-r1 full log when build with dev-libs/protobuf-c-1.1.0
Comment 10 SpanKY gentoo-dev 2015-03-13 16:31:14 UTC
Tim pointed that out to me -- it looks like files that use nested comments get mangled such that they are double nested and then you get a build failure

probably should be easy to make criu work (strip out comments) but i'm not sure if that's expected behavior
Comment 11 Yixun Lan archtester gentoo-dev 2015-03-16 02:52:26 UTC
upstream fix for protobuf-c
https://github.com/protobuf-c/protobuf-c/issues/185#event-254026579

I've tested and criu-1.5 works with protobuf-c-1.1.1
(we can remove the dep restriction: <dev-libs/protobuf-c-1.1.0)
Comment 12 Tim Harder gentoo-dev 2015-03-16 02:52:26 UTC
Closing since upstream fixed protobuf-c.