On Wed, 4 Jan 2017 16:45:56 +0000
Wolfgang Mueller <v...@vehk.de> wrote:

> While working on an mdocml ebuild, I noticed that a call to `makewhatis'
> for mdocml or the corresponding `mandb' call for sys-apps/man-db does
> not create entries for gcc's or binutils' man pages. This is because
> the MANPATH environment is suppressed in ebuilds. I asked about this
> in #gentoo-dev-help, but did not get an answer as to why MANPATH is
> suppressed.

You shouldn't call those tools inside ebuild. If the build system is
doing that, patch it out. In fact, I'm surprised sandbox doesn't catch
this as an attempt to write outside allowed paths.

> What's the best way to handle with this in ebuilds (and the
> corresponding cron.daily entries)? Sourcing /etc/profile seems like
> a terrible hack to me. For what it's worth, sys-apps/man-db does not
> alert the user that gcc and binutils (and /usr/local/share/man) will be
> missing from apropos entries.

Are you sure this happens in cron.daily entries as well? I'd say cron
should be respecting profile environment one way or another.

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

Attachment: pgpfDE3s5eLRO.pgp
Description: OpenPGP digital signature

Reply via email to