Closed Bug 1161186 Opened 9 years ago Closed 8 years ago

Cannot build with PR_LOGGING unset

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox40 --- affected

People

(Reporter: toonetown, Unassigned)

Details

(Keywords: autoland)

Attachments

(2 obsolete files)

The change in Bug 1160064 sets the value of gMediaDecoderLog on line 130 - however, the extern gMediaDecoderLog is only set when PR_LOGGING is defined.
Attached patch bug-1161186.diff (obsolete) — Splinter Review
Just wrap the usage with #ifdef
Attachment #8601059 - Flags: review?(jwwang)
Isn't PR_LOGGING supposed to be true on all builds at this point? I at least have been operating on that assumption. I think we should just remove the #ifdefs.
Flags: needinfo?(erahm)
I don't know.  All I know is that for some reason it's not true for my builds...but I'm building with --disable-logging.

If --disable-logging shouldn't be doing anything anymore, then I say go ahead, remove the ifdefs, and get rid of --disable-logging as well.  However, if the option exists, it shouldn't break existing (working) builds.
(In reply to Nathan Toone from comment #3)
> I don't know.  All I know is that for some reason it's not true for my
> builds...but I'm building with --disable-logging.
> 
> If --disable-logging shouldn't be doing anything anymore, then I say go
> ahead, remove the ifdefs, and get rid of --disable-logging as well. 
> However, if the option exists, it shouldn't break existing (working) builds.

Yes, the issue is that |--disable-logging| is still an option [1]. At this point we could remove that option; if that's something you feel we should do lets get a bug on file. This would certainly clean up a lot of needless ifdefs!

[1] https://hg.mozilla.org/mozilla-central/annotate/34828fed1639/configure.in#l6949
Flags: needinfo?(erahm)
Personally, I like --disable-logging...particularly on android - so that it doesn't fill up my logcat log.  That, however, should be a separate bug (in my opinion), and as long as it's an option, compilation should at least work (thus the patch attached to this bug should probably be applied)
Comment on attachment 8601059 [details] [diff] [review]
bug-1161186.diff

Review of attachment 8601059 [details] [diff] [review]:
-----------------------------------------------------------------

I filed bug 1161238. As for this particular bug, please fix it by removing the other |#ifdef PR_LOGGING| instance(s) around this log module rather than adding more here. :-)

Thanks for stepping up and getting this sorted out!
Attachment #8601059 - Flags: review?(jwwang) → review-
(In reply to Nathan Toone from comment #5)
> Personally, I like --disable-logging...particularly on android - so that it
> doesn't fill up my logcat log.

Logging still has no effect without the NSPR_LOG_MODULES environmental variable set, right?

> That, however, should be a separate bug (in
> my opinion), and as long as it's an option, compilation should at least work
> (thus the patch attached to this bug should probably be applied)

See comment 5, sorry for mid-airing.
Attached patch bug-1161186.diff (obsolete) — Splinter Review
Remove the other #ifdef instead of adding a new one.
Attachment #8601059 - Attachment is obsolete: true
Attachment #8601112 - Flags: review?(bobbyholley)
Comment on attachment 8601112 [details] [diff] [review]
bug-1161186.diff

Review of attachment 8601112 [details] [diff] [review]:
-----------------------------------------------------------------

Excellent, thank you!
Attachment #8601112 - Flags: review?(bobbyholley) → review+
Keywords: checkin-needed
can we get a try run for changes, thanks!
Flags: needinfo?(nathan)
Keywords: checkin-needed
Component: Audio/Video → Audio/Video: Playback
Gerald - can you see if this patch still matters and land it if needed?
Flags: needinfo?(gsquelart)
Keywords: autoland
PR_LOGGING was completely removed in bug 1163201, as well as --disable-logging in bug 1161238.
Also gMediaDecoderLog is now a statically-initialized LazyLogModule object.

So this bug (and patch) is not relevant anymore.
I'll mark it as fixed, through the magic of the above-mentioned bugs.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(gsquelart)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: