Gentoo Archives: gentoo-dev

From: Wolfgang Mueller <vehk@××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] MANPATH handling in ebuilds
Date: Wed, 04 Jan 2017 16:46:08
Message-Id: 20170104164556.GD4124@tithonus.olympus
Hi,

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.

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.

See also my mail on gentoo-user about this:
https://archives.gentoo.org/gentoo-user/message/83293ea8876e5a8c80cfde4240d392c2

-- 
Wolfgang Mueller / vehk.de / GPG 0xc543cfce9465f573

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] MANPATH handling in ebuilds "Michał Górny" <mgorny@g.o>