Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308553 - app-emulation/lxc USE=-doc missing manpages
Summary: app-emulation/lxc USE=-doc missing manpages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-09 00:04 UTC by Allen Parker
Modified: 2015-06-04 16:26 UTC (History)
4 users (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 Allen Parker 2010-03-09 00:04:12 UTC
Despite there being pre-generated manpages in doc/ of lxc's source, none are installed if USE="-doc"

If USE=doc, all of the packages necessary to recreate the below included files from sgml are pulled into the deptree, when there were already perfectly good manpages sitting there waiting to be used.

A list of all manpages included in lxc-0.6.5/doc/:
./lxc-console.1
./lxc.conf.5
./lxc-create.1
./lxc-freeze.1
./lxc-cgroup.1
./lxc-destroy.1
./lxc-wait.1
./lxc-monitor.1
./lxc-unfreeze.1
./lxc-stop.1
./lxc.7
./lxc-start.1
./lxc-execute.1
./lxc-ps.1
./lxc-ls.1

A diff between shipped and generated by src_compile():
diff -Nur generated/lxc-cgroup.1 shipped/lxc-cgroup.1
--- generated/lxc-cgroup.1      2010-03-08 15:45:27.000000000 -0800
+++ shipped/lxc-cgroup.1        2010-03-08 15:46:22.000000000 -0800
@@ -3,7 +3,7 @@
 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
 .\" Please send any bug reports, improvements, comments, patches, 
 .\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "LXC-CGROUP" "1" "08 March 2010" "" ""
+.TH "LXC-CGROUP" "1" "22 January 2010" "" ""
 
 .SH NAME
 lxc-cgroup \- manage the control group associated with a container

I'm willing to bet that this isn't the proper way to do things, but it's a simplistic fix to the problem as it occurs (tested working)

--- lxc-0.6.5.ebuild    2010-01-30 23:16:54.000000000 +0000
+++ lxc-0.6.5-r1.ebuild 2010-03-08 23:58:30.000000000 +0000
@@ -63,6 +63,8 @@
        dodoc AUTHORS CONTRIBUTING MAINTAINERS \
                NEWS TODO README doc/FAQ.txt || die "dodoc failed"
 
+       doman doc/lxc*.{1,5,7}
+
        rm -r "${D}"/etc/lxc "${D}"/usr/sbin/lxc-{setcap,ls}
 
        keepdir /etc/lxc
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-09 13:31:10 UTC
Good find… when I first packaged LXC it didn't have the man pages shipped with the distribution, thus why it was tied to the doc USE flag.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-09 13:43:57 UTC
Fixed, now 0.6.5 installs man pages unconditionally… I would love to fix this upstream but I'm wondering whether I shouldn't just cleanup their buildsystem to be real autotools, last I knew they preferred their hackish way :/
Comment 3 Allen Parker 2010-03-09 18:09:47 UTC
Thanks for the quick response. I wouldn't try to force them onto autotools unless you knew that they're gonna support it ;)
Comment 4 Jeremy Banks 2015-02-25 05:45:16 UTC
This bug is back with lxc-1.1.0.-r3
Comment 5 Dennis Schridde 2015-06-04 16:26:19 UTC
(In reply to Jeremy Banks from comment #4)
> This bug is back with lxc-1.1.0.-r3

Indeed. app-emulation/lxc-1.1.2 is also affected. Please reopen!