Closed Bug 360710 Opened 19 years ago Closed 19 years ago

checksetup.pl needs to blacklist some non-working external modules

Categories

(Bugzilla :: Installation & Upgrading, defect)

2.23.3
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: LpSolit, Assigned: mkanat)

Details

Attachments

(1 file, 2 obsolete files)

Due to many regressions or backward incompatibilities in external modules used by Bugzilla, a list of working and non-working versions has been set on Wiki: http://wiki.mozilla.org/Bugzilla:FAQ:Software_Matrix checksetup.pl should also contain a blacklist for these non-working versions of the external modules.
Status: NEW → ASSIGNED
Flags: blocking3.0?
Blocker, per our bugzilla-meeting discussion today.
Flags: blocking3.0? → blocking3.0+
Attached patch v1 (obsolete) — Splinter Review
Okay, here we go. This implements the framework for blacklisting modules, and blacklists known-bad versions of DBD::mysql.
Attachment #247556 - Flags: review?(LpSolit)
Also, if anybody else knows other module versions we should blacklist, let me know and we can do it in this bug or in a follow-up bug.
Comment on attachment 247556 [details] [diff] [review] v1 >+ blacklist => [qw(3.0003 3.0004 3.0005 3.0006), '_'], If these are supposed to be regexps, they probably ought to have the dots escaped (twice so it's still escaped after being interpreted?)
Comment on attachment 247556 [details] [diff] [review] v1 >Index: Bugzilla/Install/Requirements.pm >+ $blacklisted = grep($vnum =~ /$_/, @{$params->{blacklist}}); Shouldn't it be /\Q$_\E/ ? If you really want to allow regexp in $params->{blacklist}, then you should escape versions, see justdave's comment.
Attachment #247556 - Flags: review?(LpSolit) → review-
what about blacklisting activestate perl versions?
(In reply to comment #6) > what about blacklisting activestate perl versions? We could do that in a separate bug. It'd just be 5.8.6, since 5.8.8 works fine now that we don't use MailTools anymore.
(In reply to comment #4) >+ blacklist => [qw(3.0003 3.0004 3.0005 3.0006), '_'], Would 3\.000[3-6] work?
(In reply to comment #8) > (In reply to comment #4) > >+ blacklist => [qw(3.0003 3.0004 3.0005 3.0006), '_'], > > Would 3\.000[3-6] work? Oh yes, it would, and it would be much better.
Attached patch v2 (obsolete) — Splinter Review
Okay, fixed that.
Attachment #247556 - Attachment is obsolete: true
Attachment #248522 - Flags: review?(LpSolit)
Attached patch Actual v2Splinter Review
I attached the wrong patch, before.
Attachment #248522 - Attachment is obsolete: true
Attachment #248524 - Flags: review?(LpSolit)
Attachment #248522 - Flags: review?(LpSolit)
Comment on attachment 248524 [details] [diff] [review] Actual v2 Checking for DBD-mysql (v2.9003) found v3.0006 (blacklisted) For MySQL, Bugzilla requires that perl's DBD::mysql 2.9003 be installed. To install this module, run the following command (as root): Nit: maybe could we explain what this blacklisted version means? Else it could look a bit confusing, eventually. Anyway, this looks fine. r=LpSolit
Attachment #248524 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval? → approval+
Checking in Bugzilla/Constants.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Constants.pm,v <-- Constants.pm new revision: 1.65; previous revision: 1.64 done Checking in Bugzilla/DB.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v <-- DB.pm new revision: 1.92; previous revision: 1.91 done Checking in Bugzilla/Install/Requirements.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Requirements.pm,v <-- Requirements.pm new revision: 1.28; previous revision: 1.27 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
I forgot to fix the docs usage of DB_MODULE, which caused the tinderboxes to burn. I fixed it as a "checkin fix": Checking in docs/makedocs.pl; /cvsroot/mozilla/webtools/bugzilla/docs/makedocs.pl,v <-- makedocs.pl new revision: 1.16; previous revision: 1.15 done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: