Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591644 - sys-apps/portage-2.3.0 doman regexp bug causes chromium ebuild install phase to fail
Summary: sys-apps/portage-2.3.0 doman regexp bug causes chromium ebuild install phase ...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-19 02:11 UTC by Whilom Chime
Modified: 2016-08-19 02:26 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,4.88 KB, text/plain)
2016-08-19 02:11 UTC, Whilom Chime
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Whilom Chime 2016-08-19 02:11:36 UTC
Created attachment 443732 [details]
emerge --info

Verified for chromium ebuilds chromium-46.0.2490.42  chromium-47.0.2526.16  and chromium-53.0.2785.34 built with python 3.5 (probably exists in python 2.7 also) using doman as installed by portage-2.3.0.

Builds are using unusual PORTAGE_TMPDIR via /etc/portage/package.env:

PORTAGE_TMPDIR="/var/tmp/portage.no.tmpfs"

to work around fixed-size tmpfs /var/tmp/portage.  Apparently doman mangles the resulting build tree pathnames.  

Excerpt from failed build log: (whole thing is megs, available on request.)

+ doins -r out/Release/locales 
+ doins -r out/Release/resources 
+ newman out/Release/chrome.1 chromium.1 
install: cannot create regular file ‘/var/tmp/portage.no.tmpfs/portage/www-client/chromium-46.0.2490.42/image//usr/share/man/no/man1/portage.tmpfs/portage/www-client/chromium-46.0.2490.42/temp/.newins_tmp_tmVA6r/chromium.1’: No such file or directory 
 * ERROR: www-client/chromium-46.0.2490.42::gentoo failed (install phase): 
 *   doman failed 

Changing  the regex in /usr/lib/portage/python*/ebuild-helpers/doman from:
 
"(.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*)" 

to:

"([^/]*)\.([a-z][a-z](_[A-Z][A-Z])?)\.([^/]*)"

Solves the problem.

Discussion and other context available at: https://forums.gentoo.org/viewtopic-p-7820972.html