Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114778

Summary: eselect env update hangs if binary file in /etc/env.d
Product: Gentoo Linux Reporter: Roy Marples (RETIRED) <uberlord>
Component: [OLD] Core systemAssignee: Gentoo eselect Team <eselect>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: stops env working on core files and opengl outputs errors now

Description Roy Marples (RETIRED) gentoo-dev 2005-12-07 10:14:42 UTC
OK, somehow there was a core dump in /etc/env.d and this was causing eselect 
env update to go into an infinite loop. 
Nastily, this was hidden by the command "eselect opengl set xorg-x11" - bad 
opengl, should always output errors to stderr!
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-12-07 10:15:56 UTC
Created attachment 74239 [details, diff]
stops env working on core files and opengl outputs errors now

Ideally there should be a better way of testing binary files or not, but this
works for me.
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2005-12-18 15:58:07 UTC
Roy: I used a slightly different approach than yours. Using "file -i" and grepping
for text plain should do the work. Further, if a files doesn't contain any vars,
we'll just not process it.

In SVN already, fix will ship with next release (hopefully eselect-1.0).
Comment 3 Ciaran McCreesh 2006-02-09 17:58:45 UTC
In 1.0.