Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739560 - mail-client/alot-0.9.1 should conditionally build man pages and conditionally depend on dev-python/sphinx
Summary: mail-client/alot-0.9.1 should conditionally build man pages and conditionally...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guillaume Seren
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-08-29 22:26 UTC by tonemgub
Modified: 2020-10-01 10:56 UTC (History)
2 users (show)

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


Attachments
Patch for alot-0.9.1.ebuild (file_739560.txt,896 bytes, patch)
2020-08-29 22:29 UTC, tonemgub
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tonemgub 2020-08-29 22:26:55 UTC
Despite the useflag, the current ebuild requires doc and sphinx. The useflag should be honored to build without docs.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.despite
Comment 1 tonemgub 2020-08-29 22:29:45 UTC
Created attachment 657440 [details, diff]
Patch for alot-0.9.1.ebuild
Comment 2 tonemgub 2020-08-29 22:32:51 UTC
Fails to run without dev-python/mock as well, but that's technically a different bug. Should be added as runtime depend.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-30 08:02:40 UTC
Please attach the failing build log to this bug report, or at the very least the part that shows why the patch is required.
Comment 4 Guillaume Seren 2020-08-30 12:44:31 UTC
Hello,
not sure it is a real issue because I intented it that way,
to me it seems logical to have the man page available by default,
and they are generated with sphinx so sphinx always needed.
(I am open to talk about it)


(In reply to tonemgub from comment #0)
> Despite the useflag, the current ebuild requires doc and sphinx. The useflag
> should be honored to build without docs.

Yes this use flag control the installation of the HTML_DOCS, not the man page,
but they are both generated with sphinx.


(In reply to tonemgub from comment #2)
> Fails to run without dev-python/mock as well, but that's technically a
> different bug. Should be added as runtime depend.

Yes it a BDEPEND, behind the test use flag so if you build without it,
you should not need mock, if it is not working please open an other issue.
Comment 5 tonemgub 2020-09-01 18:21:02 UTC
(In reply to Guillaume Seren from comment #4)
> Hello,
> not sure it is a real issue because I intented it that way,
> to me it seems logical to have the man page available by default,
> and they are generated with sphinx so sphinx always needed.
> (I am open to talk about it)


Thanks for the reply.

To save extra space (I'm building for very minimal embedded system), I generally use a system wide -doc. This prevents installing all unneeded man pages, html docs, etc.

I am used to this behavior since many other packages do it this way under the doc use flag. For example this package which does not install any manpages if -doc is set:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/ldb/ldb-2.0.12-r1.ebuild#n101
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-01 18:57:42 UTC
Man pages should be installed by default, one way or another (even if you have to pre-generate them and provide via SRC_URI).

If it's a heavy dep, provide a USE flag to actually generate, but otherwise grab pre-generated ones.

Use INSTALL_MASK as a user if you don't want them installed.
Comment 7 Guillaume Seren 2020-09-02 14:05:50 UTC
Hello,
so I think we can say it is more a use-case question than a package issue,
please keep me updated on how you end-up fixing that.

Don't hesitate to open issue it is good to see more alot test/usage in gentoo.
Comment 8 Guillaume Seren 2020-10-01 10:56:04 UTC
Let's close this,
feel free to contact me if you want to talk about it.