Closed
Bug 574183
Opened 14 years ago
Closed 13 years ago
nsinstall should be ntfs aware
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sdwilsh, Assigned: khuey)
References
Details
Attachments
(2 files, 2 obsolete files)
12.04 KB,
patch
|
Mitch
:
review+
beltzner
:
approval2.0-
|
Details | Diff | Splinter Review |
1.86 KB,
patch
|
Mitch
:
review+
benjamin
:
approval2.0-
|
Details | Diff | Splinter Review |
I'd love to stop having to build int he test dir anytime I make a change to tests.
Assignee | ||
Comment 1•14 years ago
|
||
Updated•14 years ago
|
Attachment #454419 -
Attachment description: POC → POC in nsinstall.py
Assignee | ||
Comment 2•14 years ago
|
||
This uses hard links instead of symlinks. I haven't tested this too much (the hardlinks work and changes are reflected though).
Attachment #456983 -
Flags: review?(mitcho)
Assignee | ||
Comment 3•14 years ago
|
||
Comment on attachment 456983 [details] [diff] [review] Patch? Mitch, would you be able to review this. If not, please bounce it to ted. You should get a shortname btw.
Attachment #456983 -
Flags: review?(mitcho) → review?(mitchell.field)
Comment 4•14 years ago
|
||
I was called to review this patch, but I assume it was a mistake and you're looking for a different Mitch. I'm not at all qualified to review this patch. :/
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4) > I was called to review this patch, but I assume it was a mistake and you're > looking for a different Mitch. I'm not at all qualified to review this patch. > :/ You would be correct. :-)
Comment 6•14 years ago
|
||
Comment on attachment 456983 [details] [diff] [review] Patch? >+ if (dstFileAttributes != 0xFFFFFFFF) { >+ DeleteFile(dstFileName); >+ } >+ >+ if (srcFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { >+ fprintf(stderr, "nsinstall: %ls is a directory\n", >+ srcFileName); >+ return FALSE; >+ } else { >+ DWORD r; >+ wchar_t longSrc[1004] = LONGPATH_PREFIX; >+ wchar_t longDst[1004] = LONGPATH_PREFIX; >+ r = GetFullPathName(srcFileName, 1000, longSrc + STR_LEN(LONGPATH_PREFIX), NULL); >+ if (!r) { >+ fprintf(stderr, "nsinstall: couldn't get full path of %ls: %s\n", >+ srcFileName, sh_GetLastErrorMessage()); >+ return FALSE; >+ } >+ r = GetFullPathName(dstFileName, 1000, longDst + ARRAY_LEN(LONGPATH_PREFIX) - 1, NULL); >+ if (!r) { >+ fprintf(stderr, "nsinstall: couldn't get full path of %ls: %s\n", >+ dstFileName, sh_GetLastErrorMessage()); >+ return FALSE; >+ } You might want to avoid deleting the source file until you've passed your other checks...
Assignee | ||
Comment 7•14 years ago
|
||
Yeah that's a good point.
Assignee | ||
Comment 8•14 years ago
|
||
Attachment #454419 -
Attachment is obsolete: true
Attachment #456983 -
Attachment is obsolete: true
Attachment #457071 -
Flags: review?(mitchell.field)
Attachment #456983 -
Flags: review?(mitchell.field)
Updated•14 years ago
|
Attachment #457071 -
Flags: review?(mitchell.field) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #457071 -
Flags: approval2.0?
Comment 9•14 years ago
|
||
Comment on attachment 457071 [details] [diff] [review] Better Patch a=beltzner
Attachment #457071 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 10•14 years ago
|
||
Lets just hack around the NSS .chk issue by suppressing errors for .chk files. This is a substantial enough win that I think it's worth it.
Attachment #465124 -
Flags: review?(mitchell.field)
Comment 11•14 years ago
|
||
Comment on attachment 465124 [details] [diff] [review] Nasty hack to bypass the NSS bug Okay then. r=Mitch
Attachment #465124 -
Flags: review?(mitchell.field)
Attachment #465124 -
Flags: review+
Attachment #465124 -
Flags: approval2.0?
Comment 12•14 years ago
|
||
Comment on attachment 465124 [details] [diff] [review] Nasty hack to bypass the NSS bug At this point we are locking down the tree more, and don't want to take this until after branching.
Attachment #465124 -
Flags: approval2.0? → approval2.0-
Comment 13•13 years ago
|
||
Comment on attachment 457071 [details] [diff] [review] Better Patch >+ BOOL willDeleteFile = (dstFileAttributes != 0xFFFFFFFF) ? TRUE : FALSE; ... >+ if (willDeleteFile) { [dstFileAttributs doesn't change so the temporary looks superfluous]
Comment 14•13 years ago
|
||
Comment on attachment 457071 [details] [diff] [review] Better Patch Removing approval as this has gone unlanded for so long, not sure it's worth the risk anymore.
Attachment #457071 -
Flags: approval2.0+ → approval2.0-
Comment 15•13 years ago
|
||
http://hg.mozilla.org/projects/build-system/rev/0c5da403b68e http://hg.mozilla.org/projects/build-system/rev/2ef6f317bbba
Whiteboard: fixed-in-bs
Assignee | ||
Comment 16•13 years ago
|
||
MSYS has some sort of bug with hard links that manifests itself as Bug 642931. Backed out in http://hg.mozilla.org/projects/build-system/rev/f171aeef4da1
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Whiteboard: fixed-in-bs
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•