Closed
Bug 226673
Opened 22 years ago
Closed 22 years ago
"xxx::yyy" used only once error
Categories
(Bugzilla :: Installation & Upgrading, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: gerv, Assigned: justdave)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
1.71 KB,
patch
|
bbaetz
:
review+
|
Details | Diff | Splinter Review |
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
Comment 1•22 years ago
|
||
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
| Assignee | ||
Comment 2•22 years ago
|
||
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
Comment 3•22 years ago
|
||
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.
| Assignee | ||
Comment 4•22 years ago
|
||
This fixes the "used only once" error.
It does not fix the $::SIG{__DIE__} override problem.
| Assignee | ||
Comment 5•22 years ago
|
||
ok, think I got this figured out. -> me
Assignee: bbaetz → justdave
| Assignee | ||
Comment 6•22 years ago
|
||
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
| Assignee | ||
Updated•22 years ago
|
Attachment #136931 -
Flags: review?(bbaetz)
Comment 7•22 years ago
|
||
bug 226892 will allow us to remove the globals.pl requirement from checksetup.pl
Updated•22 years ago
|
Attachment #136931 -
Flags: review?(bbaetz) → review+
| Assignee | ||
Comment 8•22 years ago
|
||
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
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•