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)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: ted, Assigned: sgautherie)

References

()

Details

Attachments

(6 files, 3 obsolete files)

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.
Flags: in-testsuite-
Whiteboard: [good first bug]
(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 ?
Attached patch (Av1-CC) 2 of the files (obsolete) — Splinter Review
(untested but trivial)
Attachment #365359 - Flags: review?(kairo)
(Untested and I don't know if you want this (yet), but, if you do, here's the patch.)
Attachment #365364 - Flags: review?(mcs)
(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).
Attached patch (Av1a-CC) the 3 files (obsolete) — Splinter Review
Av1-CC, with comment 5 suggestion(s).
Attachment #365359 - Attachment is obsolete: true
Attachment #365414 - Flags: review?(kairo)
Attachment #365359 - Flags: review?(kairo)
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.
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.
Looks fine.
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-
(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.
(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.
(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 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+
(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.
Keywords: checkin-needed
Whiteboard: [good first bug] → [c-n: Bv1-CC to cvs/1.9.0] [good first bug]
Target Milestone: --- → mozilla1.9.2a1
Blocks: 482434
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)
Attachment #366536 - Flags: review?(ted.mielczarek)
Whiteboard: [c-n: Bv1-CC to cvs/1.9.0] [good first bug] → [c-n: Bv1-CC to cvs/1.9.0]
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+
Attachment #366538 - Flags: review?(wtc) → review+
Comment on attachment 366538 [details] [diff] [review] (Dv1-MC) nsprpub part [Checkin: Comment 27] r=wtc. Thanks.
Attachment #366533 - Attachment description: (Av1b-CC) the 3 files → (Av1b-CC) the 3 files [Checkin: Comment 21]
Whiteboard: [c-n: Bv1-CC to cvs/1.9.0] → [c-n: Bv1-CC and Dv1-MC, to cvs/1.9.0]
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+
Attached patch (Ev1-MC) security part (obsolete) — Splinter Review
(split from Dv1-MC)
Attachment #368905 - Flags: review?(wtc)
(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.
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 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]
Whiteboard: [c-n: Bv1-CC and Dv1-MC, to cvs/1.9.0] → [c-n: Bv1-CC to cvs/1.9.0]
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]
Attachment #365364 - Attachment description: (Bv1-CC) c-sdk part → (Bv1-CC) c-sdk part [Checkin: Comment 28]
Keywords: checkin-needed
Attachment #368911 - Flags: review?(kairo) → review+
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]
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?
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
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-
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)!
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: