Closed
Bug 416843
Opened 18 years ago
Closed 18 years ago
gqi.py generates dependency information that MSYS doesn't understand
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neil, Assigned: jag+mozilla)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.37 KB,
patch
|
jag+mozilla
:
review+
pavlov
:
approval1.9+
|
Details | Diff | Splinter Review |
MSYS accepts either Unix paths or absolute DOS paths. However gqi.py generates relative paths containing backslashes. MSYS Perl does not understand that.
| Assignee | ||
Comment 1•18 years ago
|
||
A pretty simple fix Neil tested this morning was to replace |os.path.join(dir, f)| with |dir + "/" + f|
Comment 2•18 years ago
|
||
Seems like it would be just as simple to do replace('\\', '/') on output.
| Reporter | ||
Comment 3•18 years ago
|
||
There's no point because that's the only place a backslash can ever be generated; all the input paths use forward slashes.
| Assignee | ||
Comment 4•18 years ago
|
||
I think it's safe to do this since |f| will never contain an absolute path.
Comment 5•18 years ago
|
||
Comment on attachment 302825 [details] [diff] [review]
Use posix path manipulation since we always want '/'
Don't you need to import posixpath?
| Assignee | ||
Comment 6•18 years ago
|
||
Ah, yep, thanks. It didn't like my not adding posixpath to the import line. Consider it added. I'll attach a new patch if we can all agree on using this approach (vs +"/"+ or doing a global replace of '\' with '/'.
Comment 7•18 years ago
|
||
r=me for the posixpath approach
| Assignee | ||
Comment 8•18 years ago
|
||
Assignee: nobody → jag
Attachment #302825 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #302985 -
Flags: review+
Attachment #302985 -
Flags: approval1.9?
Updated•18 years ago
|
Attachment #302985 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Comment 9•18 years ago
|
||
Checking in gqi.py;
/cvsroot/mozilla/xpcom/base/gqi.py,v <-- gqi.py
new revision: 1.3; previous revision: 1.2
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•