Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114778 - eselect env update hangs if binary file in /etc/env.d
Summary: eselect env update hangs if binary file in /etc/env.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-12-07 10:14 UTC by Roy Marples (RETIRED)
Modified: 2006-02-09 17:58 UTC (History)
0 users

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


Attachments
stops env working on core files and opengl outputs errors now (eselect.patch,1.14 KB, patch)
2005-12-07 10:15 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.