1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Install::Requirements</title>
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
<link rel="stylesheet" title="style" type="text/css" href="../../style.css" media="all" >
11
<p class="backlinktop"><b><a name="___top" href="../../index.html" accesskey="1" title="All Documents"><<</a></b></p>
12
<h1>Bugzilla::Install::Requirements</h1>
13
<div class='indexgroup'>
14
<ul class='indexList indexList1'>
15
<li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
16
<li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
17
<li class='indexItem indexItem1'><a href='#CONSTANTS'>CONSTANTS</a>
18
<li class='indexItem indexItem1'><a href='#SUBROUTINES'>SUBROUTINES</a>
22
<h1><a class='u' href='#___top' title='click to go to top of document'
26
<p>Bugzilla::Install::Requirements - Functions and variables dealing with Bugzilla's perl-module requirements.</p>
28
<h1><a class='u' href='#___top' title='click to go to top of document'
32
<p>This module is used primarily by <code class="code">checksetup.pl</code> to determine whether or not all of Bugzilla's prerequisites are installed.
34
all the perl modules it requires.)</p>
36
<h1><a class='u' href='#___top' title='click to go to top of document'
41
<dt><a name="REQUIRED_MODULES"
42
><code class="code">REQUIRED_MODULES</code></a></dt>
45
<p>An arrayref of hashrefs that describes the perl modules required by Bugzilla.
46
The hashes have two keys,
47
<code class="code">name</code> and <code class="code">version</code>,
48
which represent the name of the module and the version that we require.</p>
52
<h1><a class='u' href='#___top' title='click to go to top of document'
57
<dt><a name="check_requirements($output)"
58
><code class="code">check_requirements($output)</code></a></dt>
61
<pre class="code"> Description: This checks what optional or required perl modules
62
are installed, like C<checksetup.pl> does.
64
Params: C<$output> - C<true> if you want the function to print
65
out information about what it's doing,
66
and the versions of everything installed.
67
If you don't pass the minimum requirements,
68
the will always print out something,
69
regardless of this parameter.
71
Returns: A hashref containing three values:
72
C<pass> - Whether or not we have all the mandatory
74
C<missing> - A hash showing which mandatory requirements
75
are missing. The key is the module name,
76
and the value is the version we require.
77
C<optional> - Which optional modules are installed and
78
up-to-date enough for Bugzilla.</pre>
80
<dt><a name="check_graphviz($output)"
81
><code class="code">check_graphviz($output)</code></a></dt>
84
<p>Description: Checks if the graphviz binary specified in the <code class="code">webdotbase</code> parameter is a valid binary, or a valid URL.</p>
86
<p>Params: <code class="code">$output</code> - <code class="code">$true</code> if you want the function to print out information about what it's doing.</p>
88
<p>Returns: <code class="code">1</code> if the check was successful, <code class="code">0</code> otherwise.</p>
90
<dt><a name="vers_cmp($a,_$b)"
91
><code class="code">vers_cmp($a, $b)</code></a></dt>
94
<pre class="code"> Description: This is a comparison function, like you would use in
95
C<sort>, except that it compares two version numbers.
96
It's actually identical to versioncmp from
97
L<Sort::Versions>.
99
Params: c<$a> and C<$b> are versions you want to compare.
101
Returns: -1 if $a is less than $b, 0 if they are equal, and
102
1 if $a is greater than $b.</pre>
104
<dt><a name="have_vers($module,_$output)"
105
><code class="code">have_vers($module, $output)</code></a></dt>
108
<pre class="code"> Description: Tells you whether or not you have the appropriate
109
version of the module requested. It also prints
110
out a message to the user explaining the check
113
Params: C<$module> - A hashref, in the format of an item from
114
L</REQUIRED_MODULES>.
115
C<$output> - Set to true if you want this function to
116
print information to STDOUT about what it's
119
Returns: C<1> if you have the module installed and you have the
120
appropriate version. C<0> otherwise.</pre>
122
<dt><a name="install_command($module)"
123
><code class="code">install_command($module)</code></a></dt>
126
<pre class="code"> Description: Prints out the appropriate command to install the
127
module specified, depending on whether you're
130
Params: C<$module> - A hashref, in the format of an item from
131
L</REQUIRED_MODULES>.
133
Returns: nothing</pre>
136
<p class="backlinkbottom"><b><a name="___bottom" href="../../index.html" title="All Documents"><<</a></b></p>