Bugzilla::Install::Requirements - Functions and variables dealing with Bugzilla's perl-module requirements.
This module is used primarily by
checksetup.pl to determine whether or not all of Bugzilla's prerequisites are installed.
all the perl modules it requires.)
An arrayref of hashrefs that describes the perl modules required by Bugzilla. The hashes have three keys:
package- The name of the Perl package that you'd find on CPAN for this requirement.
module- The name of a module that can be passed to the
CPAN.pmto install this module.
version- The version of this module that we require, or
0if any version is acceptable.
An arrayref of hashrefs that describes the perl modules that add additional features to Bugzilla if installed.
Its hashes have all the fields of "REQUIRED_MODULES",
feature item--an arrayref of strings that describe what features require this module.
A hashref that describes what files should only be compiled if a certain feature is enabled.
The feature is the key,
and the values are arrayrefs of file names (which are passed to
so shell patterns work).
This checks what optional or required perl modules are installed,
trueif you want the function to print out information about what it's doing, and the versions of everything installed.
A hashref containing these values:
pass- Whether or not we have all the mandatory requirements.
missing- An arrayref containing any required modules that are not installed or that are not up-to-date. Each item in the array is a hashref in the format of items from "REQUIRED_MODULES".
optional- The same as
missing, but for optional modules.
have_one_dbd- True if at least one
DBD::module is installed.
any_missing- True if there are any missing modules, even optional modules.
Description: Checks if the graphviz binary specified in the
webdotbase parameter is a valid binary,
or a valid URL.
$true if you want the function to print out information about what it's doing.
1 if the check was successful,
Description: Tells you whether or not you have the appropriate version of the module requested. It also prints out a message to the user explaining the check and the result. Params: C<$module> - A hashref, in the format of an item from L</REQUIRED_MODULES>. C<$output> - Set to true if you want this function to print information to STDOUT about what it's doing. Returns: C<1> if you have the module installed and you have the appropriate version. C<0> otherwise.
Description: Prints out the appropriate command to install the module specified, depending on whether you're on Windows or Linux. Params: C<$module> - A hashref, in the format of an item from L</REQUIRED_MODULES>. Returns: nothing
Returns a hashref where file names are the keys and the value is the feature that must be enabled in order to compile that file.