Whenever I emerge a package when in directory, which contains "docs" folder, the resulting package documentation in "/usr/share/doc/<package>/docs" contains nothing but the content of "docs" from current directory.
Which package manager and which its version do you use? This problem can be reproduced when installing which package?
User exported DOCS environment variable pointing to directory owned by user messes up emerge process. Watch the hands: # mkdir /tmp/shit # touch /tmp/shit/file # chown -R user:user /tmp/shit # export DOCS=/tmp/shit # emerge -q1 <package> # find /usr/share/doc/<package> /usr/share/doc/<package> /usr/share/doc/<package>/shit /usr/share/doc/<package>/shit/file
Expected ordinary <package> documentation. Propose to prefix all environment variables used by emerge/portage with "PORTAGE_".
>Which package manager and which its version do you use? sys-apps/portage-2.3.6 >This problem can be reproduced when installing which package? Any
>This problem can be reproduced when installing which package? Or perhaps not any, for me that were: samba-4.5.10-r1 bluez-alsa-1.2.0 libdrm-2.4.83 check-0.10.0-r1 pbr-3.1.1 pyasn1-0.2.3 ncmpcpp-0.7.7 taglib-1.11.1-r1 ortp-0.23.0-r1 taglib-1.11.1
We can add DOCS to the env_blacklist in here, since it's used by default_src_install: https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/package/ebuild/_config/special_env_vars.py
Fixed in master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=98a5a0a6031f5930ed54ba8305fc4faf694400b6
Released in portage-2.3.9.