From: Mauro Carvalho Chehab Date: Mon, 17 Jul 2017 21:46:41 +0000 (-0300) Subject: sphinx-pre-install: fix USE needs for GraphViz and ImageMagick X-Git-Tag: Ubuntu-5.10.0-12.13~9573^2~27^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bba1e4cbdb5aadc937d70f04d1d07752828e4b2d;p=mirror_ubuntu-hirsute-kernel.git sphinx-pre-install: fix USE needs for GraphViz and ImageMagick Gentoo need some USE for GraphViz and ImageMagick to have the features required by kfigure.py. Output that when providing instructions for Gentoo. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet --- diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index fc9891ce5c85..2d18064d57b4 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install @@ -393,7 +393,12 @@ sub give_gentoo_hints() check_missing(\%map); return if (!$need && !$optional); - printf("You should run:\n\n\tsudo emerge --ask $install\n"); + + printf("You should run:\n\n"); + printf("\tsudo su -c 'echo \"media-gfx/imagemagick svg png\" > /etc/portage/package.use/imagemagick'\n"); + printf("\tsudo su -c 'echo \"media-gfx/graphviz cairo pdf\" > /etc/portage/package.use/graphviz'\n"); + printf("\tsudo emerge --ask $install\n"); + } sub check_distros()