Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552340 - emerge: failure in chroot without /dev is not very helpful
Summary: emerge: failure in chroot without /dev is not very helpful
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 549914
  Show dependency tree
 
Reported: 2015-06-17 02:57 UTC by Patrick Lauer
Modified: 2015-09-22 01:21 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 Patrick Lauer gentoo-dev 2015-06-17 02:57:37 UTC
localhost / # emerge -auNDv world
[[: /dev/fd/63: No such file or directory
Failed to validate a sane '/dev'.
bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'.
localhost / #
Comment 1 Zac Medico gentoo-dev 2015-06-17 05:02:06 UTC
It looks like we need to make it redirect the bash output to /dev/null here:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/main.py?h=v2.2.20#n1113

If it makes it to the bash test, then /dev/null should operate correctly...
Comment 2 Zac Medico gentoo-dev 2015-06-17 05:25:54 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_552340

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/25aad2979877577d342a96e795a45af7
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2015-09-22 01:21:27 UTC
Released in portage-2.2.21