Closed
Bug 481476
Opened 17 years ago
Closed 17 years ago
OS/2 xpidl creates headers in the srcdir, if no outputfile is specified. Let's do it like the other platforms
Categories
(Core :: XPCOM, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: wuno, Assigned: wuno)
References
Details
(Keywords: verified1.9.1, Whiteboard: [verified1.9.1b4])
Attachments
(1 file)
|
927 bytes,
patch
|
mozilla
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.9.2a1pre) Gecko/20090228 Minefield/3.2a1pre
Build Identifier:
This is an OS/2 follow up to bug8734 (!), somehow we slipped thru. When I tried to get the test framework to run under OS/2 in bug426639 I stumbled over some code in the /xpcom/tests/Makefile. The test for xpidl produced the correct header but contrary to other platforms the header was compiled in the srcdir rather than the objdir, then the test failed, because it looked for the header in objdir. Digging deep I came across bug8734 entitled "xpidl produces output file in same dir as input file", where on XP_UNIX and XP_WIN the code for the generation of headers by xpidl was changed to create the header in the current dir (means with regard to the failing test in the objdir).
Later on there was entered a comment in bug114257 "seems a bit strange, what about OS/2" to xpcom/typelib/xpidl/xpidl_idl.c. And yes, that's indeed the question. Usually, xpidl is invoked to created an explicit file name, which is the probably the reason, why OS/2 creates the headers in the correct location, but in the case of the test of bug426639 no output name or directory is specified and then OS/2 handles it differently than XP_WIN or XP_UNIX.
Reproducible: Always
| Assignee | ||
Comment 1•17 years ago
|
||
not sure if any other platform remains, if XP_UNIX || XP_WIN || XP_OS2 are defined
Comment 2•17 years ago
|
||
XP_BEOS still remains, even though it is still unsupported on trunk AFAIK.
Really weird that this didn't come up in between. I still haven't understood why TestScriptable.h should be the only file that ends up in srcdir because of this patch. Even if not called with a path, it should still be created in the current directory, right? And in a build with MOZ_OBJDIR that is somewhere in the objdir. (If one builds with make -w then one can see from where it is created.)
Comment 3•17 years ago
|
||
That said, it makes perfect sense to me to remove the "asymmetry" in the code as suggested in your patch. Just give me a day or two, I'll try to again do a build and to see on my own what happens.
| Assignee | ||
Comment 4•17 years ago
|
||
(In reply to comment #2)
> XP_BEOS still remains, even though it is still unsupported on trunk AFAIK.
Ok, then my changes seem to be correct ;-)
>
> Really weird that this didn't come up in between. I still haven't understood
> why TestScriptable.h should be the only file that ends up in srcdir because of
No, other way round it should _not_ end up in srcdir, but it does in the moment (I also thought that wrong way until benjamin denied the review in bug4266639)
> this patch. Even if not called with a path, it should still be created in the
> current directory, right? And in a build with MOZ_OBJDIR that is somewhere in
> the objdir.
And yes that's what shall be achieved by this patch.
Blocks: 426639
Version: unspecified → Trunk
Comment 5•17 years ago
|
||
Comment on attachment 365508 [details] [diff] [review]
fix for OS/2 to create the xpidl output file in the current dir
[Checkin: Comment 6 & 8]
Yes, this looks like the right solution, although I was not able to verify the original problem and solution in my unstable build setup.
Attachment #365508 -
Flags: review?(mozilla) → review+
| Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Comment 6•17 years ago
|
||
Comment on attachment 365508 [details] [diff] [review]
fix for OS/2 to create the xpidl output file in the current dir
[Checkin: Comment 6 & 8]
http://hg.mozilla.org/mozilla-central/rev/a1234cddb683
Attachment #365508 -
Attachment description: fix for OS/2 to create the xpidl output file in the current dir → fix for OS/2 to create the xpidl output file in the current dir
[Checkin: Comment 6]
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
| Assignee | ||
Comment 7•17 years ago
|
||
OS/2 only, though in a cross-platform file doesn't change anything for the other platforms
Keywords: checkin-needed
Whiteboard: mozilla1.9.1
Comment 8•17 years ago
|
||
Comment on attachment 365508 [details] [diff] [review]
fix for OS/2 to create the xpidl output file in the current dir
[Checkin: Comment 6 & 8]
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/4eee48e586b9
Attachment #365508 -
Attachment description: fix for OS/2 to create the xpidl output file in the current dir
[Checkin: Comment 6] → fix for OS/2 to create the xpidl output file in the current dir
[Checkin: Comment 6 & 8]
Updated•17 years ago
|
| Assignee | ||
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
Whiteboard: [fixed1.9.1b4] → [verified1.9.1b4]
You need to log in
before you can comment on or make changes to this bug.
Description
•