Closed Bug 281494 Opened 20 years ago Closed 18 years ago

Create Bugzilla::Install::Requirements for requirements-checking subroutines in checksetup.pl

Categories

(Bugzilla :: Installation & Upgrading, enhancement, P1)

2.19.2
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 2 obsolete files)

This is a little piece of bug 277502. Basically, I want to move all the
perl-module checking stuff that happens in checksetup into subroutines in a new
module, called Bugzilla::Requirements.
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.22
Blocks: 302876
The trunk is now frozen to prepare Bugzilla 2.22. Enhancement bugs are retargetted to 2.24.
Target Milestone: Bugzilla 2.22 → Bugzilla 2.24
*** Bug 273309 has been marked as a duplicate of this bug. ***
Priority: P3 → P1
Okay, I'm going to shift the focus of this bug slightly. I'm going to instead move just have_vers and vers_cmp and all those other functions used for requirements-checking into a module.
Status: NEW → ASSIGNED
Summary: Move requirements-checking from checksetup into subroutines/modules → Create Bugzilla::Install::Requirements for requirements-checking subroutines in checksetup.pl
Attached patch v1 (obsolete) — Splinter Review
Okay, here it is. Pretty simple, overall. I made a few changes as I moved things:

* $modules became a constant called REQUIRED_MODULES
* %ppm_modules became WIN32_MODULE_NAMES, and I also removed all of the 
  "redundant" entries from the hash. Instead, I modified the "install_command" 
  subroutine to print out the proper names of ActiveState modules.
* I updated vers_cmp to the latest version of Sort::Versions.

I tested the patch and it works just fine.
Attachment #226303 - Flags: review?(ghendricks)
Attachment #226303 - Flags: review?(wicked+bz)
Comment on attachment 226303 [details] [diff] [review]
v1

Runtests.pl no longer passes because Bugzilla::Install::Requirements is not found.
Attachment #226303 - Flags: review?(wicked+bz)
Attachment #226303 - Flags: review?(ghendricks)
Attachment #226303 - Flags: review-
Attached patch v2 (obsolete) — Splinter Review
The first patch was missing the actual Bugzilla::Install::Requirements. :-) So here's the right patch.
Attachment #226303 - Attachment is obsolete: true
Attachment #226305 - Flags: review?(ghendricks)
Attachment #226305 - Flags: review?(wicked+bz)
Attached patch v2.1Splinter Review
The previous patch had tabs in it. Otherwise this one is identical.
Attachment #226305 - Attachment is obsolete: true
Attachment #226306 - Flags: review?(ghendricks)
Attachment #226305 - Flags: review?(wicked+bz)
Attachment #226305 - Flags: review?(ghendricks)
Attachment #226306 - Flags: review?(wicked+bz)
Comment on attachment 226305 [details] [diff] [review]
v2

This attachment contains TABs in it.
Attachment #226305 - Flags: review-
Is there some way that the optional modules can be moved into this module too, or another one?
(In reply to comment #9)
> Is there some way that the optional modules can be moved into this module too,
> or another one?

  Yeah, but it would require more re-architecture than I want to do in this bug.
Attachment #226306 - Flags: review?(ghendricks) → review?(colin.ogilvie)
Comment on attachment 226306 [details] [diff] [review]
v2.1

This seems to work for me, tested it and simulated the Win32 changes.
Attachment #226306 - Flags: review?(colin.ogilvie) → review+
Comment on attachment 226306 [details] [diff] [review]
v2.1

Seems fine on Linux too. Not sure about using global $silent variable, might be better to pass it to the sub. Can be done on other bug. :)
Attachment #226306 - Flags: review?(wicked+bz) → review+
Flags: approval?
Flags: approval? → approval+
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.505; previous revision: 1.504
done
RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Requirements.pm,v
done
Checking in Bugzilla/Install/Requirements.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Requirements.pm,v  <--  Requirements.pm
initial revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Blocks: 344612
Blocks: 344661
Blocks: 344915
No longer blocks: 344915
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: