Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43948 - $T is used uninitialized
Summary: $T is used uninitialized
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-07 04:05 UTC by Wout Mertens (RETIRED)
Modified: 2005-02-28 00:19 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 Wout Mertens (RETIRED) gentoo-dev 2004-03-07 04:05:05 UTC
Hey,

Look at this snippet from ebuild.sh, around line 1010:

=====================================
# in the future might use e* from /etc/init.d/functions.sh if i feel like it
debug-print() {
        # if $T isn't defined, we're in dep calculation mode and
        # shouldn't do anything
        [ -z "$T" ] && return 0
=====================================

Now, guess what, users define $T themselves :)

This results in errors like:
/usr/sbin/ebuild.sh: line 1033: /home/wmertens/tmp/eclass-debug.log: Permission denied

Please fix this, relying on undefined variables is a bit sloppy :-/

Wout.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-02-28 00:19:04 UTC
Fixed (T is defined by doebuild these days afaik).