Closed Bug 648178 Opened 13 years ago Closed 13 years ago

install-module.pl should check if a compiler is available, and fail with a clear error if one is not

Categories

(Bugzilla :: Installation & Upgrading, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: glob, Assigned: mkanat)

Details

Attachments

(1 file, 1 obsolete file)

install-module.pl should check if a compiler is available, and fail with a clear error if one is not.

while cpan itself will fail if a compiler is missing, the error message is not clear, and is hidden in a torrent of text.
Yes, however, it should only do this when you attempt to install something where the module of its dependencies need a compiler. It's very common to just install CGI.pm with install-module, and that does not need a compiler and shouldn't require one.
Attached patch v1 (obsolete) — Splinter Review
Okay, I changed my mind to improve the simplicity of implementation. install-module.pl now requires a compiler no matter what you try to do; it basically won't do anything at all without a compiler installed, now.
Assignee: installation → mkanat
Status: NEW → ASSIGNED
Attachment #526540 - Flags: review?(glob)
I only want to do this on trunk; I have no idea how requiring a compiler will affect the support burden. If it's a positive effect, we can backport it to 4.0 for 4.0.2.
Target Milestone: Bugzilla 4.0 → Bugzilla 4.2
Comment on attachment 526540 [details] [diff] [review]
v1

>=== removed file 'lib/README'

Why do you remove this file from the repo?
Attached patch v2Splinter Review
Was a simple mistake. (It happens if you do "rm -rf lib/*".)
Attachment #526540 - Attachment is obsolete: true
Attachment #526540 - Flags: review?(glob)
Attachment #526620 - Flags: review?(glob)
Attachment #526620 - Flags: review?(LpSolit)
Comment on attachment 526620 [details] [diff] [review]
v2

looks good, works as advertised.  r=glob
Attachment #526620 - Flags: review?(glob) → review+
Great, thanks! :-)
Flags: approval+
Attachment #526620 - Flags: review?(LpSolit)
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Install/CPAN.pm
modified Bugzilla/Install/Util.pm
modified template/en/default/setup/strings.txt.pl
Committed revision 7784.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: