Closed Bug 170073 Opened 23 years ago Closed 23 years ago

Running checksetup without File::Temp installed results in error.

Categories

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

2.17
x86
Linux
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: kiko, Assigned: justdave)

Details

Attachments

(1 file)

In CVS HEAD, running checksetup without File::Temp installed results in error: blackjesus% ./checksetup.pl Can't locate File/Temp.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at Bugzilla/Config.pm line 95. BEGIN failed--compilation aborted at Bugzilla/Config.pm line 95. BEGIN failed--compilation aborted at ./checksetup.pl line 119. It should be checked for, and be shown as a required package.
One of the Tinderboxes is burning because of this.... http://tinderbox.mozilla.org/Bugzilla/
Severity: normal → blocker
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.18
Attached patch patchSplinter Review
This patch moves the loading of Bugzilla::Config to a spot after the version checks are done, and uses "require" + "import" to load it instead of using "use" so it gets done at runtime after the version checks are done instead of at compile time. Also adds a version check for File::Temp (which currently uses "any" -- is there a specific minimum version we need?)
Comment on attachment 101029 [details] [diff] [review] patch r=bbaetz x2 In the long run, we'll want to have the module check stuff in a BEGIN block, so taht we don't have to worry about all this stuff. (In the longer run, Makefile.PL will do teh checks for us....)
Attachment #101029 - Flags: review+
-> patch author
Assignee: zach → justdave
Checking in checksetup.pl; /cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl new revision: 1.194; previous revision: 1.193 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: