Closed Bug 226673 Opened 22 years ago Closed 22 years ago

"xxx::yyy" used only once error

Categories

(Bugzilla :: Installation & Upgrading, defect)

2.17.5
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: gerv, Assigned: justdave)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

I just updated and ran checksetup.pl and got: Name "PatchReader::Version" used only once: possible typo at ./checksetup.pl line 192. This is 100% repeatable. Gerv
This is not Patchreader specific, but is shown for all missing modules. This is a regression caused by bug 208604. It's got something to do with adding that BEGIN block into checksetup. Ccing some posse involved. Dave, Bradley: Ideas?
Severity: normal → major
Summary: "PatchReader::Version" used only once error → "xxx::yyy" used only once error
Target Milestone: --- → Bugzilla 2.18
OK, localizing $::SIG{__DIE__} doesn't work either. CGI::Carp's die override stays in place if checksetup dies later, so we still get all the "Software Error" HTML wrapper around the error messages, too.
Assignee: john → bbaetz
Keywords: regression
Hey, perl's smarter than I thought.... That code looks a bit silly (ie instead of the .pm appending, just eval "require $pkg" should do it for us. Module::Build doesn't do a require; it looks through @INC and then gresp the file for a VERSION line, and then evals that. I don't think we want to duplicate that code in checksetup.pl.... |local $^W| should do it arround that block, I guess.
Attached patch Patch (obsolete) — Splinter Review
This fixes the "used only once" error. It does not fix the $::SIG{__DIE__} override problem.
ok, think I got this figured out. -> me
Assignee: bbaetz → justdave
Attached patch Patch v2Splinter Review
OK, this fixes both problems. The $::SIG{__DIE__} problem wound up being unrelated, though that's also a regression.... so I went ahead and fixed it here as long as we were discussing it. What happened with the die thing is checksetup.pl does a "require globals.pl" which does a "use RelationSet" which does a "use CGI::Carp". Couldn't find any reason RelationSet actually needs that, so I just removed that line from RelationSet.
Attachment #136930 - Attachment is obsolete: true
Attachment #136931 - Flags: review?(bbaetz)
bug 226892 will allow us to remove the globals.pl requirement from checksetup.pl
Attachment #136931 - Flags: review?(bbaetz) → review+
Checking in RelationSet.pm; /cvsroot/mozilla/webtools/bugzilla/RelationSet.pm,v <-- RelationSet.pm new revision: 1.9; previous revision: 1.8 done Checking in checksetup.pl; /cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl new revision: 1.254; previous revision: 1.253 done
Status: NEW → RESOLVED
Closed: 22 years ago
Flags: approval+
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: