| Summary: | NameError: name 'src' is not defined | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Vinson Lee <vlee> |
| Component: | Other | Assignee: | mesa-dev |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | blocker | ||
| Priority: | medium | CC: | brianp, huax.lu, idr |
| Version: | git | Keywords: | regression |
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Vinson Lee
2014-04-02 18:53:34 UTC
Ugh... I CC'ed Vinson on that patch in hopes that he would test it before it landed. Are you able to reproduce this without scons? Can you give me instructions? $ /usr/bin/python -c src/mapi/glapi/gen/gl_procs.py -f src/mapi/glapi/gen/gl_and_es_API.xml Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'src' is not defined Looks like this fixes it for me:
diff --git a/src/mapi/glapi/gen/SConscript b/src/mapi/glapi/gen/SConscript
index 4d827b0..e4abe90 100644
--- a/src/mapi/glapi/gen/SConscript
+++ b/src/mapi/glapi/gen/SConscript
@@ -38,7 +38,7 @@ env.CodeGenerate(
target = '../../../mapi/glapi/glprocs.h',
script = 'gl_procs.py',
source = sources,
- command = python_cmd + ' -c $SCRIPT -f $SOURCE > $TARGET'
+ command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
)
None of the other env.CodeGenerate() calls in that file use the -c option.
PS: I didn't test the Linux scons build yesterday.
Oh dear. The -c is in the wrong place. It should go on the other side of $SCRIPT. I took the liberty of pushing Ian's fix. (In reply to comment #5) > I took the liberty of pushing Ian's fix. Thanks, and sorry about the delay. I thought I pushed it yesterday after I got Brian's Tested-by. :( |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.