Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688042 - emerge + autofs = silent build corruption
Summary: emerge + autofs = silent build corruption
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-14 08:54 UTC by Andreas Steinmetz
Modified: 2019-11-08 09:56 UTC (History)
0 users

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 Andreas Steinmetz 2019-06-14 08:54:57 UTC
Since a while emerge gets more and more problems with autofs. This is a regression as over the years there was never a problem with emerge in combination with autofs.

emerge does access autofs mounts when it starts up, but only then. While emerge is running, if autofs does unmount a mount point in between, emerge does not really try to access the mountpoint in a way that causes autofs to mount the mountpoint again.

This behaviour causes:

1. ebuilds will suddenly fail as emerge wants to copy files from the mount point and simply insists that the files don't exist.

2. ebuilds are silently corrupted as emerge does never try to access e.g. /etc/portage/patches when the autofs mount point is not mounted, emerge just pretends that there isn't any patch.

To reproduce try to replace /etc/autofs/patches with a soft link pointing to a autofs mount point and see what happens during an ebuild when the mount point is not manually mounted in advance.

Please do test emerge with autofs and fix the erratic behaviour. And while at it please find out why emerge takes more than 20 minutes to start up when there are more than a few entries in /etc/portage/package.use, and, yes, more than a few entries are perfectly legal.

If this behaviour is desired, please add proper statements to the emerge man page, e.g. that

1. emerge will not support autofs any longer

2. emerge will consume unreasonable amounts of cpu time if /etc/portage/package.use is actually used.

Sorry, I'm really frustrated with emerge being the central tool of Gentoo and getting more and more broken with every new release.
Comment 1 Zac Medico gentoo-dev 2019-06-18 19:05:30 UTC
(In reply to Andreas Steinmetz from comment #0)
> 1. emerge will not support autofs any longer

There's never been any explicit autofs support, but per bug 679158 comment #18 you should try with FEATURES="-mount-sandbox -pid-sandbox" and let us know if that helps.

> 2. emerge will consume unreasonable amounts of cpu time if
> /etc/portage/package.use is actually used.

That sounds like a performance issue in the config.setcpv method, which had some recent changes related to bug 373209 and bug 663278.
Comment 2 Jan Hudoba 2019-11-08 09:56:05 UTC
i have same issues. 
this bug report and solution was very helpful and working.
tnx