Closed
Bug 479978
Opened 16 years ago
Closed 16 years ago
remove references to MOZ_PROFILE from the build system
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: ted, Assigned: sgautherie)
References
()
Details
Attachments
(6 files, 3 obsolete files)
2.94 KB,
patch
|
mcs
:
review+
|
Details | Diff | Splinter Review |
1.86 KB,
patch
|
kairo
:
review+
|
Details | Diff | Splinter Review |
6.75 KB,
patch
|
ted
:
review+
beltzner
:
approval1.9.1-
|
Details | Diff | Splinter Review |
1.85 KB,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
1.03 KB,
patch
|
kairo
:
review+
|
Details | Diff | Splinter Review |
953 bytes,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
I removed MOZ_PROFILE support a while ago, since it essentially duplicated the functionality of MOZ_DEBUG_SYMBOLS. Looks like I missed a few spots though:
http://hg.mozilla.org/mozilla-central/annotate/920e3f7dfd49//configure.in#l8023 (I wouldn't actually click this link, it takes ages to load.)
http://hg.mozilla.org/mozilla-central/annotate/69c86f3acc5a/Makefile.in#l137
http://hg.mozilla.org/mozilla-central/annotate/69c86f3acc5a/config/autoconf.mk.in#l592
http://hg.mozilla.org/mozilla-central/annotate/69c86f3acc5a/config/config.mk#l246
We should clean up the rest of those. CCing a few of my favorite code janitors.
Assignee | ||
Comment 1•16 years ago
|
||
(In reply to comment #0)
> Looks like I missed a few spots though:
m-c:
http://mxr.mozilla.org/mozilla-central/search?string=MOZ_PROFILE%5B%5EL_%5D®exp=on&case=on
Found 17 matching lines in 11 files
c-c (+ m-1.9.1):
http://mxr.mozilla.org/comm-central/search?string=MOZ_PROFILE%5B%5EL_%5D®exp=on&case=on&find=%2Fmozilla%2F
Found 17 matching lines in 11 files
http://mxr.mozilla.org/comm-central/search?string=MOZ_PROFILE%5B%5EL_%5D®exp=on&case=on
Found 25 matching lines in 17 files
Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #0)
> http://hg.mozilla.org/mozilla-central/annotate/69c86f3acc5a/config/config.mk#l246
Should this 'if' block be removed or the comment updated (to what ?) only ?
Assignee | ||
Comment 4•16 years ago
|
||
(Untested and I don't know if you want this (yet),
but, if you do, here's the patch.)
Attachment #365364 -
Flags: review?(mcs)
Assignee | ||
Comment 5•16 years ago
|
||
(In reply to comment #2)
> Should this 'if' block be removed or the comment updated (to what ?) only ?
Iirc, Ted told me that removing just the comment line would do (for now).
Assignee | ||
Comment 6•16 years ago
|
||
Av1-CC, with comment 5 suggestion(s).
Attachment #365359 -
Attachment is obsolete: true
Attachment #365414 -
Flags: review?(kairo)
Attachment #365359 -
Flags: review?(kairo)
Comment 7•16 years ago
|
||
The directory/c-sdk changes look OK, but I am hesitant to remove the MOZ_PROFILE support in case someone is using it. I added Rich Megginson and Anton Bobrov to the bug CC so they can comment.
Comment 8•16 years ago
|
||
i think it should be safe to remove. i'm not aware of anybody using it and
also cant imagine why anybody would need MS C 7.0 compatible debug format.
Comment 9•16 years ago
|
||
Looks fine.
Comment 10•16 years ago
|
||
Comment on attachment 365414 [details] [diff] [review]
(Av1a-CC) the 3 files
>diff --git a/config/config.mk b/config/config.mk
>-# MOZ_PROFILE equivs for win32
> ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
> ifdef MOZ_DEBUG
> ifneq (,$(MOZ_BROWSE_INFO)$(MOZ_BSCFILE))
> OS_CFLAGS += -FR
> OS_CXXFLAGS += -FR
> endif
> else # ! MOZ_DEBUG
I'm somewhat unsure about this hunk, it looks wrong to me to remove a comment and leave the block it annotates completely undescribed after that. if this block is just an equivalent of stuff that MOZ_PROFILE does elsewhere, doesn't it mean that this whole block can be removed? (not that i understand what it does) If not, shouldn't the comment be corrected so that it still explains what the block is doing?
r- just for that unclarity, the rest looks fine.
Please also try to do the mozilla part though, it surely helps to clean up that old cruft.
Attachment #365414 -
Flags: review?(kairo) → review-
Reporter | ||
Comment 11•16 years ago
|
||
(In reply to comment #10)
> I'm somewhat unsure about this hunk, it looks wrong to me to remove a comment
> and leave the block it annotates completely undescribed after that. if this
> block is just an equivalent of stuff that MOZ_PROFILE does elsewhere, doesn't
> it mean that this whole block can be removed? (not that i understand what it
> does) If not, shouldn't the comment be corrected so that it still explains what
> the block is doing?
Yeah, I was unsure about this as well. From a brief inspection, the block is clearly not doing the same thing as MOZ_PROFILE, it relates to creating a "browse info file" from VC++, which is the source code indexing that the IDE uses. However, I didn't dig into it enough to figure out what a good comment would be.
Assignee | ||
Comment 12•16 years ago
|
||
(In reply to comment #10)
> shouldn't the comment be corrected so that it still explains what
> the block is doing?
My (implicit) proposal is to remove the (bogus !?) comment here,
then file a followup bug to restore a meaningful comment.
Assignee | ||
Comment 13•16 years ago
|
||
(In reply to comment #12)
> My (implicit) proposal is to remove the (bogus !?) comment here,
> then file a followup bug to restore a meaningful comment.
Or the other way round: leave the comment and file a bug to update it... if you prefer.
Comment 14•16 years ago
|
||
Comment on attachment 365364 [details] [diff] [review]
(Bv1-CC) c-sdk part
[Checkin: Comment 28]
OK, it looks like the directory/c-sdk patch is good to go then.
Attachment #365364 -
Flags: review?(mcs) → review+
Comment 15•16 years ago
|
||
(In reply to comment #13)
> (In reply to comment #12)
> > My (implicit) proposal is to remove the (bogus !?) comment here,
> > then file a followup bug to restore a meaningful comment.
>
> Or the other way round: leave the comment and file a bug to update it... if you
> prefer.
Either that or change it to point to comment #11 of this bug or the new bug you filed. In any case, let's make sure that this block doesn't get less understandable than it already is. If even Ted doesn't know and he knows significantly more Windows build stuff than me, there's surely some need to have a comment there, ideally an improved one.
You actually could change to comment to "XXX: What does this? bug 4..... filed for better explanation" and make that new bug reference the discussion in here, so someone looking at the code can actually find out _something_ about it.
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Whiteboard: [good first bug] → [c-n: Bv1-CC to cvs/1.9.0] [good first bug]
Target Milestone: --- → mozilla1.9.2a1
Assignee | ||
Comment 16•16 years ago
|
||
Av1a-CC, with comment 15 suggestion(s).
(In reply to comment #15)
> You actually could change to comment to "XXX: What does this? bug 4..... filed
> for better explanation" and make that new bug reference the discussion in here,
I filed bug 482434.
Assignee: nobody → sgautherie.bz
Attachment #365414 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #366533 -
Flags: review?(kairo)
Assignee | ||
Comment 17•16 years ago
|
||
Attachment #366536 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 18•16 years ago
|
||
Attachment #366538 -
Flags: review?(wtc)
Assignee | ||
Updated•16 years ago
|
Whiteboard: [c-n: Bv1-CC to cvs/1.9.0] [good first bug] → [c-n: Bv1-CC to cvs/1.9.0]
Comment 19•16 years ago
|
||
Comment on attachment 366533 [details] [diff] [review]
(Av1b-CC) the 3 files
[Checkin: Comment 21]
looks good to me with that comment change, thanks.
Attachment #366533 -
Flags: review?(kairo) → review+
Updated•16 years ago
|
Attachment #366538 -
Flags: review?(wtc) → review+
Comment 20•16 years ago
|
||
Comment on attachment 366538 [details] [diff] [review]
(Dv1-MC) nsprpub part [Checkin: Comment 27]
r=wtc. Thanks.
Assignee | ||
Comment 21•16 years ago
|
||
Comment on attachment 366533 [details] [diff] [review]
(Av1b-CC) the 3 files
[Checkin: Comment 21]
http://hg.mozilla.org/comm-central/rev/aa90f45fce46
Attachment #366533 -
Attachment description: (Av1b-CC) the 3 files → (Av1b-CC) the 3 files
[Checkin: Comment 21]
Assignee | ||
Updated•16 years ago
|
Whiteboard: [c-n: Bv1-CC to cvs/1.9.0] → [c-n: Bv1-CC and Dv1-MC, to cvs/1.9.0]
Reporter | ||
Comment 22•16 years ago
|
||
Comment on attachment 366536 [details] [diff] [review]
(Cv1-MC) the 9 files
[Checkin: See comment 30]
-ifdef MOZ_PROFILE
- echo splitting symbols out of binaries
Just remove this whole splitsymbols target while you're here, it's no longer used. (Remove it from the deliver: target below as well. Actually, I think you can kill deliver and all its children, I'm fairly certain they're not used anywhere, it used to be called from Tinderbox.)
diff --git a/security/coreconf/WIN32.mk b/security/coreconf/WIN32.mk
--- a/security/coreconf/WIN32.mk
+++ b/security/coreconf/WIN32.mk
This needs to be in a separate bug (or at least patch), since it's NSS and I'm not a peer there.
Attachment #366536 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 25•16 years ago
|
||
(In reply to comment #22)
> Just remove this whole splitsymbols target while you're here, it's no longer
> used. (Remove it from the deliver: target below as well.
I'll do.
> Actually, I think you can kill deliver and all its children
I prefer to leave this to bug 484799 and bug 484818.
> This needs to be in a separate bug (or at least patch)
Done: patch Ev1-MC.
Comment 26•16 years ago
|
||
r=wtc.
The comments should also be removed. I also merged
two ifdefs that became the same after MOZ_PROFILE was
removed.
I checked this in on the NSS trunk (NSS 3.12.3).
Checking in WIN32.mk;
/cvsroot/mozilla/security/coreconf/WIN32.mk,v <-- WIN32.mk
new revision: 1.32; previous revision: 1.31
done
Attachment #368905 -
Attachment is obsolete: true
Attachment #368930 -
Flags: review+
Attachment #368905 -
Flags: review?(wtc)
Comment 27•16 years ago
|
||
Comment on attachment 366538 [details] [diff] [review]
(Dv1-MC) nsprpub part [Checkin: Comment 27]
I checked this in on the NSPR trunk (NSPR 4.8).
Checking in configure.in;
/cvsroot/mozilla/nsprpub/configure.in,v <-- configure.in
new revision: 1.256; previous revision: 1.255
done
Checking in configure;
/cvsroot/mozilla/nsprpub/configure,v <-- configure
new revision: 1.251; previous revision: 1.250
done
Attachment #366538 -
Attachment description: (Dv1-MC) nsprpub part → (Dv1-MC) nsprpub part [Checkin: Comment 27]
Assignee | ||
Updated•16 years ago
|
Whiteboard: [c-n: Bv1-CC and Dv1-MC, to cvs/1.9.0] → [c-n: Bv1-CC to cvs/1.9.0]
Comment 28•16 years ago
|
||
I committed the LDAP C SDK portion (Bv1-CC)to the CVS trunk:
mozilla/directory/c-sdk/config/WIN32.mk
new revision: 5.4; previous revision: 5.3
mozilla/directory/c-sdk/configure
new revision: 5.73; previous revision: 5.72
mozilla/directory/c-sdk/configure.in
new revision: 5.67; previous revision: 5.66
Whiteboard: [c-n: Bv1-CC to cvs/1.9.0]
Assignee | ||
Updated•16 years ago
|
Attachment #365364 -
Attachment description: (Bv1-CC) c-sdk part → (Bv1-CC) c-sdk part
[Checkin: Comment 28]
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Updated•16 years ago
|
Attachment #368911 -
Flags: review?(kairo) → review+
Assignee | ||
Comment 29•16 years ago
|
||
Comment on attachment 368911 [details] [diff] [review]
(Fv1-CC) Remove |splitsymbols| target call
[Checkin: Comment 29]
http://hg.mozilla.org/comm-central/rev/688fec4c59ca
Attachment #368911 -
Attachment description: (Fv1-CC) Remove |splitsymbols| target call → (Fv1-CC) Remove |splitsymbols| target call
[Checkin: Comment 29]
Assignee | ||
Comment 30•16 years ago
|
||
Comment on attachment 366536 [details] [diff] [review]
(Cv1-MC) the 9 files
[Checkin: See comment 30]
http://hg.mozilla.org/mozilla-central/rev/228e3145c1a6
Cv1-MC, with comment 22 suggestion(s).
Attachment #366536 -
Attachment description: (Cv1-MC) the 9 files → (Cv1-MC) the 9 files
[Checkin: See comment 30]
Attachment #366536 -
Flags: approval1.9.1?
Assignee | ||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 31•16 years ago
|
||
Comment on attachment 366536 [details] [diff] [review]
(Cv1-MC) the 9 files
[Checkin: See comment 30]
Hard to tell what parts of these patches we would need to take on the branch, and doesn't really feel like it's needed. Thanks for offering, though!
Attachment #366536 -
Flags: approval1.9.1? → approval1.9.1-
Assignee | ||
Comment 32•16 years ago
|
||
Comment on attachment 366536 [details] [diff] [review]
(Cv1-MC) the 9 files
[Checkin: See comment 30]
(In reply to comment #31)
> Hard to tell what parts of these patches we would need to take on the branch,
This part (only)!
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•