Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687484 - Glances need python package for web server mode
Summary: Glances need python package for web server mode
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-05 22:26 UTC by Roumano
Modified: 2019-06-06 04:54 UTC (History)
0 users

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 Roumano 2019-06-05 22:26:38 UTC
Glances need python package for web server mode
Otherwise, we have this error at runtime:
  ~ $ glances -w
  Bottle module not found. Glances cannot start in web server mode.

On the file sys-process/glances/glances-2.11.1.ebuild , we need to add this to fix it : 
  IUSE="doc webserver"
  DEPEND="
      webserver? (
          dev-python/bottle[${PYTHON_USEDEP}]
      )

Upstream issue about this :
  https://github.com/nicolargo/glances/issues/1225
  https://github.com/nicolargo/glances/compare/develop...roumano:patch-1
Comment 1 Georgy Yakovlev archtester gentoo-dev 2019-06-06 04:44:30 UTC
Hi,

it's by design.
pure RDEPEND useflags are not allowed.


ebuild alerady notifies users that they need to install additional packages for webserver mode.


optfeature "Web server mode" dev-python/bottle dev-python/requests


so if you need webserver mode - just install bottle and requests. and make sure they have matching python_targets enabled, and it will work.


also you may want to install elogv and configure portage to save postinst messages to be able to read them later and take actions if necessary

https://wiki.gentoo.org/wiki/Elogv
Comment 2 Georgy Yakovlev archtester gentoo-dev 2019-06-06 04:54:03 UTC
btw, bottle is listed in upstream's optional-requirements.txt

I think they made it clear it's optional.