Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627106 - User exported DOCS environment variable pointing to directory owned by user messes up emerge process
Summary: User exported DOCS environment variable pointing to directory owned by user m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 631448
  Show dependency tree
 
Reported: 2017-08-05 15:23 UTC by Gentookh
Modified: 2018-02-01 23:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gentookh 2017-08-05 15:23:03 UTC
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.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2017-08-05 21:21:11 UTC
Which package manager and which its version do you use?

This problem can be reproduced when installing which package?
Comment 2 Gentookh 2017-09-01 20:06:03 UTC
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
Comment 3 Gentookh 2017-09-01 20:08:20 UTC
Expected ordinary <package> documentation.

Propose to prefix all environment variables used by emerge/portage
with "PORTAGE_".
Comment 4 Gentookh 2017-09-01 20:11:34 UTC
>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
Comment 5 Gentookh 2017-09-01 20:14:38 UTC
>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
Comment 6 Zac Medico gentoo-dev 2017-09-02 09:12:39 UTC
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
Comment 8 Zac Medico gentoo-dev 2017-09-19 21:06:01 UTC
Released in portage-2.3.9.