Closed
Bug 224588
Opened 21 years ago
Closed 15 years ago
Unify ($^O =~ /MSWin/) checks
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: jouni, Assigned: mkanat)
Details
Attachments
(1 file, 5 obsolete files)
7.83 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
We have some OS checks around the code, and before all the Win32bz bugs are resolved, there is probably going to have to be some more. It would be a good idea to unify "are we running on Win32"-checks into a common sub somewhere, maybe globals.pl.
Reporter | ||
Updated•21 years ago
|
Whiteboard: [needed for Win32bz]
Target Milestone: --- → Bugzilla 2.18
Comment 1•20 years ago
|
||
Enhancements which don't currently have patches on them which are targetted at 2.18 are being retargetted to 2.20 because we're about to freeze for 2.18. Consideration will be taken for moving items back to 2.18 on a case-by-case basis (but is unlikely for enhancements)
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
Reporter | ||
Comment 2•20 years ago
|
||
Reporter | ||
Updated•20 years ago
|
Attachment #153634 -
Flags: review?
Reporter | ||
Comment 3•20 years ago
|
||
The last attachment was a fumble.
Attachment #153634 -
Attachment is obsolete: true
Reporter | ||
Updated•20 years ago
|
Attachment #153634 -
Flags: review?
Reporter | ||
Comment 4•20 years ago
|
||
I'm a bit confused, but this should really be it...
Attachment #153635 -
Attachment is obsolete: true
Reporter | ||
Updated•20 years ago
|
Attachment #153636 -
Flags: review?
Reporter | ||
Updated•20 years ago
|
Attachment #153638 -
Flags: review?
Reporter | ||
Updated•20 years ago
|
Attachment #153636 -
Flags: review?
Comment on attachment 153638 [details] [diff] [review] v2 looks good to me.
Attachment #153638 -
Flags: review? → review+
Comment 8•20 years ago
|
||
Comment on attachment 153638 [details] [diff] [review] v2 as much as I like the concept here, something about this patch is making me nervous... and I'm not sure what. Something's tingling in the back of my head and I can't quite put my finger on it... If bbaetz could find time to take a quick look at it, I'd really appreciate it.
Attachment #153638 -
Flags: review?(bbaetz)
Comment 9•20 years ago
|
||
OK, I think I figured out what was making me go "hmmmm" here.... I'm not sure we should be pulling in Bugzilla::Util from inside the tests. That may be a good place to leave the raw $^O check. I'll approve patch "v1 (really for real...)" right now... if you want v2 in, I'll still wait for bbaetz' opinion.
Flags: approval? → approval+
Updated•20 years ago
|
Attachment #153636 -
Attachment is obsolete: false
Attachment #153636 -
Flags: review+
Reporter | ||
Comment 10•20 years ago
|
||
I had the same doubt, but when I noted 009bugwords is using Bugzilla::Util anyway, decided to try it. Since it seems to work quite fine, I don't see the problem (apart from edge cases like Bugzilla::Util not compiling). I'm fine with waiting for bbaetz though, but we should note that the issue isn't limited to this patch. I'll wait for further comments from either of you before checking anything in.
Status: NEW → ASSIGNED
Updated•20 years ago
|
Attachment #153638 -
Flags: review?(bbaetz) → review?(zach)
Updated•20 years ago
|
Flags: approval+
Comment 11•20 years ago
|
||
Bugzilla 2.20 feature set is now frozen as of 15 Sept 2004. Anything flagged enhancement that hasn't already landed is being pushed out. If this bug is otherwise ready to land, we'll handle it on a case-by-case basis, please set the blocking2.20 flag to '?' if you think it qualifies.
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
Assignee | ||
Comment 12•20 years ago
|
||
Bugzilla::Util can't be brought in before the BEGIN checks happen. Bugzilla::Util uses Date::Format, which we check for the existence of. I'm not entirely sure the technical details of BEGIN, but if Bugzilla::Util is actually used before the BEGIN block, then attachment 153638 [details] [diff] [review] will prevent a valid Date::Format check.
Assignee | ||
Comment 13•20 years ago
|
||
Why don't you just make it a constant, in Bugzilla::Constants? It can be WIN_32 or IS_WINDOWS or something like that.
Assignee | ||
Updated•20 years ago
|
Attachment #153638 -
Flags: review?(zach) → review-
Updated•18 years ago
|
QA Contact: mattyt-bugzilla → default-qa
Assignee | ||
Comment 14•15 years ago
|
||
Okay, here we go. This reminds me that we also need to clean up the tests (to work with "prove" instead of "runtests.pl") and probably also the top of Bugzilla::CGI could use some cleanup. (But that's for another bug).
Assignee: jouni → mkanat
Attachment #153636 -
Attachment is obsolete: true
Attachment #153638 -
Attachment is obsolete: true
Attachment #395415 -
Flags: review?(LpSolit)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [needed for Win32bz]
Target Milestone: --- → Bugzilla 3.6
Comment 15•15 years ago
|
||
Comment on attachment 395415 [details] [diff] [review] v3 >Index: testserver.pl >-if ($^O !~ /MSWin32/i) { >+if (ON_WINDOWS) { You reversed the logic. It's !~ , not =~ . >-elsif ($^O !~ /MSWin32/i) { >+elsif (ON_WINDOWS) { Same here. >- if ($^O !~ /MSWin32/i) { >+ if (ON_WINDOWS) { And here.
Updated•15 years ago
|
Attachment #395415 -
Flags: review?(LpSolit) → review-
Assignee | ||
Comment 16•15 years ago
|
||
Attachment #395415 -
Attachment is obsolete: true
Attachment #395947 -
Flags: review?(LpSolit)
Updated•15 years ago
|
Attachment #395947 -
Flags: review?(LpSolit) → review+
Comment 17•15 years ago
|
||
Comment on attachment 395947 [details] [diff] [review] v4 Looks good. r=LpSolit
Updated•15 years ago
|
Flags: approval+
Assignee | ||
Comment 18•15 years ago
|
||
Checking in showdependencygraph.cgi; /cvsroot/mozilla/webtools/bugzilla/showdependencygraph.cgi,v <-- showdependencygraph.cgi new revision: 1.69; previous revision: 1.68 done Checking in testserver.pl; /cvsroot/mozilla/webtools/bugzilla/testserver.pl,v <-- testserver.pl new revision: 1.22; previous revision: 1.21 done Checking in Bugzilla/CGI.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/CGI.pm,v <-- CGI.pm new revision: 1.48; previous revision: 1.47 done Checking in Bugzilla/Constants.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Constants.pm,v <-- Constants.pm new revision: 1.115; previous revision: 1.114 done Checking in Bugzilla/Config/Common.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Config/Common.pm,v <-- Common.pm new revision: 1.27; previous revision: 1.26 done Checking in t/001compile.t; /cvsroot/mozilla/webtools/bugzilla/t/001compile.t,v <-- 001compile.t new revision: 1.18; previous revision: 1.17 done Checking in t/008filter.t; /cvsroot/mozilla/webtools/bugzilla/t/008filter.t,v <-- 008filter.t new revision: 1.31; previous revision: 1.30 done Checking in t/012throwables.t; /cvsroot/mozilla/webtools/bugzilla/t/012throwables.t,v <-- 012throwables.t new revision: 1.6; previous revision: 1.5 done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•