FEATUES=noman nodoc noinfo and ebuild command

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FEATUES=noman nodoc noinfo and ebuild command

Joakim Tjernlund
Hi

I just did ebuild binutils-2.32-r1.ebuild install qmerge
on my target and noticed that I still got man pages etc:
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/ld.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/c++filt.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/windmc.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/windres.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/elfedit.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/strip.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/strings.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/size.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/readelf.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/ranlib.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/objdump.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/objcopy.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/nm.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/dlltool.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/ar.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/addr2line.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/gprof.1
/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/as.1
....

portageq envvar FEATURES has:
assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr

I would expect noman etc would omit man pages, info etc here?

sys-apps/portage-2.3.76


 Jocke
Reply | Threaded
Open this post in threaded view
|

Re: FEATUES=noman nodoc noinfo and ebuild command

Zac Medico-2
On 10/15/19 3:49 AM, Joakim Tjernlund wrote:

> Hi
>
> I just did ebuild binutils-2.32-r1.ebuild install qmerge
> on my target and noticed that I still got man pages etc:
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/ld.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/c++filt.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/windmc.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/windres.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/elfedit.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/strip.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/strings.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/size.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/readelf.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/ranlib.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/objdump.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/objcopy.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/nm.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/dlltool.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/ar.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/addr2line.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/gprof.1
> /usr/share/binutils-data/powerpc-unknown-linux-gnu/2.32/man/man1/as.1
> ....
>
> portageq envvar FEATURES has:
> assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr
>
> I would expect noman etc would omit man pages, info etc here?
>
> sys-apps/portage-2.3.76

The FEATURES=noman code only handles /usr/share/man:

> for f in man info doc; do
> if has no${f} ${FEATURES}; then
> INSTALL_MASK+=" /usr/share/${f}"
> fi
> done

I guess maybe sys-devel/binutils installs the man pages in a different
location because it supports installation of multiple slots. It looks
like we can use the MANPATH variable to improve FEATURES=noman support,
so I've filed this bug:

https://bugs.gentoo.org/697786
--
Thanks,
Zac