Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52963 - kde ebuild RDEPEND syntax is executing code in the global scope to get its own value
Summary: kde ebuild RDEPEND syntax is executing code in the global scope to get its ow...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-04 05:07 UTC by Guillaume Destuynder (RETIRED)
Modified: 2004-09-03 07:25 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 Guillaume Destuynder (RETIRED) gentoo-dev 2004-06-04 05:07:58 UTC
This pratice is wrong, when executing in the global scope, this will slow down things as the ebuild is sourced by many processes (eg, emerge search xxx) and can break things now or in the future.
It' better to list them all in this case, even if it's long to type (just do the echo thing and copy paste it anyway) (look at the gnome-base/gnome ebuild)

Please do not execute things in the global scope, and fix the problem
thx :)


Reproducible: Always
Steps to Reproduce:

Actual Results:  
uses backsticks to execute code in the global scope

Expected Results:  
never executing anything in the global scope

i suggest you to look at:
http://dev.gentoo.org/~ciaranm/tmp/bash-quiz.txt
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-06-04 11:46:57 UTC
can you please specify which ebuild is causing the problem?
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-06-04 11:49:31 UTC
nevermind, i got what you're saying.

kde ebuild is a little vague in my mind, even if it really is kde.ebuild :)
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-06-04 11:51:12 UTC
also, feel free to make this fix if you want - it will be a few days before I'm able to sit down and work on gentoo stuff.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2004-09-03 07:25:45 UTC
fixed now i believe