Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413737 - app-emulation/lxc requires /usr/src/linux presence
Summary: app-emulation/lxc requires /usr/src/linux presence
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-27 14:53 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-05-01 18:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2012-04-27 14:53:06 UTC
Of course it shouldn't.
Comment 1 Kevin Pyle 2012-05-01 03:36:44 UTC
A possible fix for this is available at <https://github.com/kevin-dot-pyle/lxc/commit/e38d7aab367b8b389dcba05d93f44ab345a533c9>.  The change drops the logic which dies on missing /usr/src/linux, drops the code to build setns.h, and changes the one use of setns.h to instead include asm/unistd.h to get __NR_setns.  It works-for-me on amd64 with linux-headers-3.2.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-05-01 18:09:36 UTC
Thanks Kevin, that works like a charm, in tree now on 0.8.0_rc1-r4 (yes it was always rc1, rc2 is tagged but upstream didn't release it. I guess I might just have to release it myself.

Or more likely I should join forces with you and we can get our own LXC fork at this point.