]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 399954: Make Bugzilla able to hold its dependencies in a local directory
authormkanat%bugzilla.org <>
Fri, 19 Oct 2007 11:46:10 +0000 (11:46 +0000)
committermkanat%bugzilla.org <>
Fri, 19 Oct 2007 11:46:10 +0000 (11:46 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

74 files changed:
Bugzilla/Chart.pm
Bugzilla/Constants.pm
Bugzilla/Install/Filesystem.pm
Bugzilla/Series.pm
admin.cgi
attachment.cgi
buglist.cgi
chart.cgi
checksetup.pl
colchange.cgi
collectstats.pl
config.cgi
contrib/bz_webservice_demo.pl
contrib/bzdbcopy.pl
contrib/merge-users.pl
contrib/recode.pl
contrib/sendbugmail.pl
contrib/sendunsentbugmail.pl
contrib/syncLDAP.pl
createaccount.cgi
describecomponents.cgi
describekeywords.cgi
docs/makedocs.pl
docs/xml/installation.xml
duplicates.cgi
editclassifications.cgi
editcomponents.cgi
editfields.cgi
editflagtypes.cgi
editgroups.cgi
editkeywords.cgi
editmilestones.cgi
editparams.cgi
editproducts.cgi
editsettings.cgi
editusers.cgi
editvalues.cgi
editversions.cgi
editwhines.cgi
editworkflow.cgi
email_in.pl
enter_bug.cgi
importxml.pl
index.cgi
lib/README [new file with mode: 0644]
long_list.cgi
page.cgi
post_bug.cgi
process_bug.cgi
query.cgi
quips.cgi
relogin.cgi
report.cgi
reports.cgi
request.cgi
runtests.pl
sanitycheck.cgi
sanitycheck.pl
search_plugin.cgi
show_activity.cgi
show_bug.cgi
showattachment.cgi
showdependencygraph.cgi
showdependencytree.cgi
sidebar.cgi
summarize_time.cgi
testserver.pl
token.cgi
userprefs.cgi
votes.cgi
whine.pl
whineatnews.pl
xml.cgi
xmlrpc.cgi

index 9701f7b32deb6de4f8b0cd070d16010fb4f2462a..a119e4b7cd7041661f41b9f31ef5a8c2f68d3eb6 100644 (file)
@@ -22,7 +22,6 @@
 #                 A. Karl Kornel <karl@kornel.name>
 
 use strict;
-use lib ".";
 
 # This module represents a chart.
 #
index f84ece0063bcafcc7f42f9d89e3d81eb20828ad0..827bb2d4b6728fb2c83b1cd457804ec846d2794e 100644 (file)
@@ -445,6 +445,7 @@ sub bz_locations {
     # That means that if you modify these paths, they must be absolute paths.
     return {
         'libpath'     => $libpath,
+        'ext_libpath' => "$libpath/lib",
         # If you put the libraries in a different location than the CGIs,
         # make sure this still points to the CGIs.
         'cgi_path'    => $libpath,
index 8387d01734ad177a981726be5880112c330e666c..127fe0b58b7f4e75924933d138a58b34787638b9 100644 (file)
@@ -62,6 +62,7 @@ sub FILESYSTEM {
     my $webdotdir     = bz_locations()->{'webdotdir'};
     my $templatedir   = bz_locations()->{'templatedir'};
     my $libdir        = bz_locations()->{'libpath'};
+    my $extlib        = bz_locations()->{'ext_libpath'};
     my $skinsdir      = bz_locations()->{'skinsdir'};
 
     my $ws_group      = Bugzilla->localconfig->{'webservergroup'};
@@ -152,6 +153,8 @@ sub FILESYSTEM {
                                      dirs => $ws_dir_readable },
          "$libdir/Bugzilla"    => { files => $ws_readable,
                                      dirs => $ws_dir_readable },
+         $extlib               => { files => $ws_readable,
+                                     dirs => $ws_dir_readable },
          $templatedir          => { files => $ws_readable,
                                      dirs => $ws_dir_readable },
          images                => { files => $ws_readable,
@@ -251,6 +254,8 @@ EOT
                                           contents => $ht_default_deny },
         "$libdir/Bugzilla/.htaccess" => { perms    => $ws_readable,
                                           contents => $ht_default_deny },
+        "$extlib/.htaccess"          => { perms    => $ws_readable,
+                                          contents => $ht_default_deny },
         "$templatedir/.htaccess"     => { perms    => $ws_readable,
                                           contents => $ht_default_deny },
 
index 877f69866e1ad07b9a93aa03c6508b6d60a1b1de..d6fd7a08a3ff155e761a6d5b4263c7720db0367c 100644 (file)
@@ -21,7 +21,6 @@
 #                 Lance Larsh <lance.larsh@oracle.com>
 
 use strict;
-use lib ".";
 
 # This module implements a series - a set of data to be plotted on a chart.
 #
index 3edff133879fdf0bc24244731eba83a2007462be..83cc55d8b0c15cf60c80bc021644b4663b42d9e4 100644 (file)
--- a/admin.cgi
+++ b/admin.cgi
@@ -21,7 +21,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 82f650f3c60f2da5fe65184052fc6a1a2575fb62..cc6408f2baa594fe9fd9d2032a6111af3b4756e6 100755 (executable)
@@ -35,7 +35,7 @@
 # Make it harder for us to do dangerous things in Perl.
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 71b6fd14f463caa461daa719f40bf1b2cc906f0f..0f98a381118fd8870dce3d6e4435281e26ed32f5 100755 (executable)
@@ -32,7 +32,7 @@
 # Make it harder for us to do dangerous things in Perl.
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index db487457078ea0cb8833ae37cf784b2a10da07db..97bf9e77d279c26c7bd337c2585e29859fd4afaf 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -43,7 +43,7 @@
 # Offer subscription when you get a "series already exists" error?
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 81d4a819f24f86d2004bb3b077d58fe5fc67c9c3..f1cf9e2246ea43b4394286d19cb90ee7863bfaff 100755 (executable)
@@ -51,7 +51,7 @@ use POSIX qw(setlocale LC_CTYPE);
 use Safe;
 
 BEGIN { chdir dirname($0); }
-use lib ".";
+use lib qw(. lib);
 use Bugzilla::Constants;
 use Bugzilla::Install::Requirements;
 use Bugzilla::Install::Util qw(install_string get_version_and_os);
index b2deb3274b66f6b148a09aec10e823ed8e6f72af..c580547ce3df35f7654565a1741ff8b54e9c25e8 100755 (executable)
@@ -24,7 +24,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index a1ab9b2d1976ede3202722870a95155465bb4070..1e5c5fd9d1a74d2546e878230be294fb0b3cae89 100755 (executable)
@@ -34,7 +34,7 @@ use AnyDBM_File;
 use strict;
 use IO::Handle;
 
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 84bcb9038e7c3408b14f0fa89f382a50074a19a6..ad8dbf0fe529399244caf60a4f74ea8996325056 100755 (executable)
@@ -28,7 +28,7 @@
 # Make it harder for us to do dangerous things in Perl.
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 70fb6c29430635d69728c7cc799799e085bf53b7..72dd78a19dab149407b23f0cb92b8a59b842f44f 100755 (executable)
@@ -29,6 +29,7 @@ C<bz_webservice_demo.pl --help> for detailed help
 =cut
 
 use strict;
+use lib qw(lib);
 use Getopt::Long;
 use Pod::Usage;
 use File::Basename qw(dirname);
index 489909882a80b0208ad61e0a9f24ad1373b1d26e..9edf585afe14b6f680b80f8a7a8c1e9a0020683d 100755 (executable)
@@ -19,7 +19,7 @@
 # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 use Bugzilla;
 use Bugzilla::DB;
 use Bugzilla::Util;
index f071f7c2c1e2601c5646e5831e7a6ac86328e6a8..ac689abfdf091bd73cb179e30b85c9385f7fdbfd 100644 (file)
@@ -44,7 +44,7 @@ merge-users.pl - Merge two user accounts.
 
 =cut
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 49e824f6d3b94399c200c03ee27982c7dcd325e2..713465be76c3a778dc4c26dd94b146cae561a6e4 100755 (executable)
@@ -20,8 +20,7 @@
 # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
 
 use strict;
-# Allow the script to be run from contrib or as contrib/recode.pl
-use lib '..';
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index ae282ca4a60e0b15bd7514d2ddbc06f7f0b064f8..4fd1c837400283f0e68f65230d4cd81f81cf3710 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Nick Barnes, Ravenbrook Limited, 2004-04-01.
 #
-# $Id: sendbugmail.pl,v 1.7 2006/07/03 21:42:47 mkanat%bugzilla.org Exp $
+# $Id: sendbugmail.pl,v 1.8 2007/10/19 06:46:17 mkanat%bugzilla.org Exp $
 # 
 # Bugzilla email script for Bugzilla 2.17.4 and later.  Invoke this to send
 # bugmail for a bug which has been changed directly in the database.
@@ -14,7 +14,7 @@
 # 
 # Usage: perl -T contrib/sendbugmail.pl bug_id user_email
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Util;
index 5ed49b22edef24cf789848910a6260fda453310f..ec92a97a06d1e7546f05919e15ce97e9e12f877d 100644 (file)
@@ -23,7 +23,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 72ea917980bc177d86c7dc804972d04924c4185c..07fa6f46b44d49fa39c83f293a556237a35027f1 100755 (executable)
@@ -22,7 +22,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Net::LDAP;
 use Bugzilla;
index 1ec7ec31d167c02975d39c22071bc21c3d131b79..c10c9b378c3fbe1fc205ba11dfc2ce74397f2f0b 100755 (executable)
@@ -26,7 +26,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index b282040c5087a861ef1af8899b4d2de6d396c6bf..806183783667bd8b4665cf835645065a7f346702 100755 (executable)
@@ -23,7 +23,7 @@
 #                 Frédéric Buclin <LpSolit@gmail.com>
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 70c0ba4e05f0850fef8d371bd68e64c2221866c4..5ff5c5089631e98a05423ebed55700f790e1f10a 100755 (executable)
@@ -22,7 +22,7 @@
 # Contributor(s): Gervase Markham <gerv@gerv.net>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
index b636a2f37ab53059e65ba55f616eba721a114c85..1b9a44296b44a781cf3da91bee207fa8c853cdd6 100644 (file)
@@ -34,7 +34,7 @@ BEGIN {
     chdir dirname($0);
 }
 
-use lib qw(.. lib);
+use lib qw(.. ../lib lib);
 
 # We only compile our POD if Pod::Simple is installed. We do the checks
 # this way so that if there's a compile error in Pod::Simple::HTML::Bugzilla,
index 57b004e3cb024cb09497ba71f9054387f86daf64..58b7d33aaff002846a839f677455f79fbf1ef4f7 100644 (file)
@@ -1,5 +1,5 @@
 <!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
-<!-- $Id: installation.xml,v 1.146 2007/10/16 09:56:07 justdave%bugzilla.org Exp $ -->
+<!-- $Id: installation.xml,v 1.147 2007/10/19 06:46:18 mkanat%bugzilla.org Exp $ -->
 <chapter id="installing-bugzilla">
   <title>Installing Bugzilla</title>
 
                 </warning> 
                 
                 <programlisting>
-    PerlSwitches -I/var/www/html/bugzilla -w -T
+    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
     PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
                 </programlisting>
             </step>
index e393d7c257136fefc7c9d1861042ace25c590bbb..32553a39d71be47c23b42621de0a0f7621872b2f 100755 (executable)
@@ -27,7 +27,7 @@ use strict;
 
 use AnyDBM_File;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index cacc47fb6e72283d7317f9e66bd7ea861e44dbbe..03d3af81cb22d9525fc79c503eb86fcc24f3e365 100755 (executable)
@@ -21,7 +21,7 @@
 # Direct any questions on this source code to mozilla.org
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index dd693c05f413ba1e20ec389b0cf7b0a27f176fc6..46b319edd3e8d57f4ac3991b0270d5c5e727edda 100755 (executable)
@@ -24,7 +24,7 @@
 #                 Akamai Technologies <bugzilla-dev@akamai.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index e57e1952c4c51052836c3636bc9347816acf41d7..50564c19094a1d5f43c74d62f1368951dde85619 100644 (file)
@@ -16,7 +16,7 @@
 # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index e32b7f509522ac96ad910fc30a95888b52f32a4f..47eac753ec3bb60b4b34b85357c5826da837e9f9 100755 (executable)
@@ -27,7 +27,7 @@
 
 # Make it harder for us to do dangerous things in Perl.
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 # Use Bugzilla's flag modules for handling flag types.
 use Bugzilla;
index 19db870ec5b1971750559bf6eed8dbc331c96f9a..b7223e08dc7bb3c22268c6db2633a6d376eb7815 100755 (executable)
@@ -25,7 +25,7 @@
 #                 Frédéric Buclin <LpSolit@gmail.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 3aca22e4384ad28e17e8252fe0e64d280931a96b..7ded21471f00eaa3f0525350f8017fb7144a6d84 100755 (executable)
@@ -21,7 +21,7 @@
 # Contributor(s): Terry Weissman <terry@mozilla.org>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 777625326852fb29be2cb0616643a5a24fbf1eab..0be0f6c7f1eff1e376ca92e81eac5c7986c00445 100755 (executable)
@@ -16,7 +16,7 @@
 #
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 819c8c64580ac2bcbd1f345cdd209d490335f1ea..39faa16c6ecbd4d5f62dcff7a8b09258a9d06524 100755 (executable)
@@ -23,7 +23,7 @@
 #                 Frédéric Buclin <LpSolit@gmail.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 5a937db9d33ed579ba3cdcbe8e57a6ce8cdadc0d..7c6c52f7d3cda65673d3177d19985c56c005bd69 100755 (executable)
@@ -32,7 +32,7 @@
 # Holger Schurig <holgerschurig@nikocity.de>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index a4a85710f92ecf6f65cd3625ef5137109c573629..cf87e632637080f76371d10a1cee282f584e6fbe 100755 (executable)
@@ -17,7 +17,7 @@
 #
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index e452eea01d9ab467644846ee92015a11cab5999a..b996c139e8dc44596120727c5b188a4ac015a89a 100755 (executable)
@@ -21,7 +21,7 @@
 #                 Gavin Shelley  <bugzilla@chimpychompy.org>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 520c0797b2a0580139465c8dcf14747314d4eb42..f60ab634e56a8633639a0193c5475e4ebe3473a4 100755 (executable)
@@ -19,7 +19,7 @@
 # with some cleanup.
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Util;
index 223f1f5559ecf6dff3a3f6a7e63d8e38ec06d50e..ac7b2c7a03d22bb2c06fb79ae94c2bb27c8c29ac 100755 (executable)
@@ -29,7 +29,7 @@
 # Holger Schurig <holgerschurig@nikocity.de>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index ba39b543ddac115d23231334fec0e61beec6d50a..7da598dd8b1f03a3ef1a2f0c0ead9557d185dfe3 100755 (executable)
@@ -27,7 +27,7 @@
 
 use strict;
 
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index d599a97fdc6ec96ed2b8a35d6d0bab32d1ad6232..eddf845f22438bf595a1f1d5a508543a27359ad1 100644 (file)
@@ -21,7 +21,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index ea5082844d7a87a3aea9bbad18de66e36dda54a6..7b8232192d2a64cb81ed93422fe2f609fde8e75a 100644 (file)
@@ -29,6 +29,8 @@ BEGIN {
     chdir(File::Basename::dirname($0)); 
 }
 
+use lib qw(. lib);
+
 use Data::Dumper;
 use Email::Address;
 use Email::Reply qw(reply);
index d4ee73bfb032e032c5b66c3a33789bcf5dacb633..dc2680473867cb883e915d187ea0fcb02e82318e 100755 (executable)
@@ -35,7 +35,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 9ef8150f62762e03bdf874c3a4e1142ef524f14e..80506971cf9b631d04a04a50a640b55fcdd07406 100755 (executable)
@@ -54,22 +54,16 @@ use strict;
 #
 #####################################################################
 
-# figure out which path this script lives in. Set the current path to
-# this and add it to @INC so this will work when run as part of mail
-# alias by the mailer daemon
-# since "use lib" is run at compile time, we need to enclose the
-# $::path declaration in a BEGIN block so that it is executed before
-# the rest of the file is compiled.
+use File::Basename qw(dirname);
+# MTAs may call this script from any directory, but it should always
+# run from this one so that it can find its modules.
 BEGIN {
-    $::path = $0;
-    $::path =~ m#(.*)/[^/]+#;
-    $::path = $1;
-    $::path ||= '.';    # $0 is empty at compile time.  This line will
-                        # have no effect on this script at runtime.
+    require File::Basename;
+    my $dir = $0; $dir =~ /(.*)/; $dir = $1; # trick taint
+    chdir(File::Basename::dirname($dir));
 }
 
-chdir $::path;
-use lib ($::path);
+use lib qw(. lib);
 # Data dumber is used for debugging, I got tired of copying it back in 
 # and then removing it. 
 #use Data::Dumper;
index 7d1525b58ff426971c2d39898a4147919ebb71fb..100941765d9c03e82659ab593e3186d8b4d8ac8e 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -29,7 +29,7 @@
 use strict;
 
 # Include the Bugzilla CGI and general utility library.
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
diff --git a/lib/README b/lib/README
new file mode 100644 (file)
index 0000000..5778a9a
--- /dev/null
@@ -0,0 +1,4 @@
+This directory contains the Perl modules that Bugzilla requires to run.
+
+If you would rather have Bugzilla use the Perl modules installed on your
+system, you can delete everything in this directory.
index c02c8deda5d9952598934185165f870d6c88b2df..7e1f69534e3445e4d1baf5ef742be326513b4c58 100755 (executable)
@@ -22,7 +22,7 @@
 #                 Gervase Markham <gerv@gerv.net>
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 use Bugzilla;
 
 my $cgi = Bugzilla->cgi;
index 43a826590d474e1a5737b69417f38218a042f67a..290a4acb6bc515fb8efe0b83920e00c371eab34e 100755 (executable)
--- a/page.cgi
+++ b/page.cgi
@@ -30,7 +30,7 @@
 
 use strict;
 
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
index 8ce7f07234f6cd4f2f8c4bb78fbab58e9824c174..2ef2dcde59054b4f6658bceec7e72fbe52673742 100755 (executable)
@@ -25,7 +25,7 @@
 #                 Marc Schumann <wurblzap@gmail.com>
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Attachment;
index 56931c2938d4b4c7527efc511afca2ec0a418c89..d7fee819922dbbc26ca66b11b75d7a110542dff0 100755 (executable)
@@ -43,7 +43,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index bd69330e9487976e4fa0cb1842e8c544a021a498..aaabc1529493a41bc62326a9c6aad946856e1a63 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -26,7 +26,7 @@
 #                 Max Kanat-Alexander <mkanat@bugzilla.org>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Bug;
index bb0e5afffc29828e866616b59a64c92cb735483c..295b6c83fc07c305870d19563b49816084157385 100755 (executable)
--- a/quips.cgi
+++ b/quips.cgi
@@ -25,7 +25,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 5aa187490f99649f4a06342bd32dcdcc484573c7..e2182699aa72716c3be3d40b17393da8af992e43 100755 (executable)
@@ -23,7 +23,7 @@
 #                 A. Karl Kornel <karl@kornel.name>
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Mailer;
index 10c532163e94ef9423a075ba4c0acc30bb51508e..9ee5df287e97ed6094320ee828461cc671522ef1 100755 (executable)
@@ -22,7 +22,7 @@
 #                 <rdean@cambianetworks.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 7ed396935f1bad5ca83f638aac388e047381c187..40bbc82bb5d502243ce6e8a44fe33236a4ecd024 100755 (executable)
@@ -37,7 +37,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 186b42e1c4fbc0ea32b7cd15652639fe1a9f6802..6c3ff48eeb052606d343f012626e9866cd431ab6 100755 (executable)
@@ -28,7 +28,7 @@
 # Make it harder for us to do dangerous things in Perl.
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Util;
index ad6898b2396ee056151aa9400d018bffd12c6e7c..092d8069b941499801de5d52e52dd109df8c14e2 100755 (executable)
@@ -23,6 +23,7 @@
 # Make it harder for us to do dangerous things in Perl.
 use diagnostics;
 use strict;
+use lib qw(lib);
 
 use Test::Harness qw(&runtests $verbose);
 
index 3d718a0dc84bdef7a9675c4a6ccf763177a04f4c..b1a48b16aa816af5b1514e3a1194b5f741e3f9b5 100755 (executable)
@@ -26,7 +26,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 5c383e67d65da49d154dd4e34db8e578b1143c80..5f158cb3b5a1ac7b2aa5b3332a323148ee3ab77b 100644 (file)
@@ -21,7 +21,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index e3384fccede51fc326de68d68aefc55f90684224..5048f7ce6ac26df94f84cd543404478e3283926a 100644 (file)
@@ -16,7 +16,7 @@
 # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
index e1278723048e4ef80c3f0e92f0eae71514ca054b..d2570f8b105ed44434ea88bc34c77cb99f00fc19 100755 (executable)
@@ -24,7 +24,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
index 6aa31456564dd6fef555e53d165f51e419aa7f81..4e3aac982f47be1d1ba0f3134896a23da5008458 100755 (executable)
@@ -22,7 +22,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index f535d5c9dacee9925c8a392e10a8867382202278..e90a01533ee3818101249524e2bd44c9aecd46dc 100755 (executable)
@@ -23,7 +23,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Util;
index 30d7ebac1c6b81ac43608bcdd0348995979832d5..f7977446ef6214afcea5be674659b6bf10e7bc10 100755 (executable)
@@ -23,7 +23,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use File::Temp;
 
index 070986d5ef21e508bb2af05e1368d11366f1a3b6..80e67716afe551ba55675659bb2eaa7f5be52874 100755 (executable)
@@ -26,7 +26,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
index 5619d6b407508af5c7c16bc8754b31286ec9c7e3..35c4e64ad513bddfd45d322b72a8ecfafa6b0d38 100755 (executable)
@@ -17,7 +17,7 @@
 
 use strict;
 
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
index df1297e5e06bbd3b2fc56de79d1a3922b8a919db..071f89a67ad5de85e01ce91157c624ce0a3372b5 100755 (executable)
@@ -19,7 +19,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Date::Parse;         # strptime
 
index 6169a77e0db2f30213e38a25667848be7361366a..9b649277caa21a5fd196d413206a4429ee8c3fe9 100755 (executable)
@@ -19,7 +19,7 @@
 # issues as possible.
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 BEGIN {
     my $envpath = $ENV{'PATH'};
index dd41e466520e22c6e0a74a87590cac4edb04d3cf..a880d3294a7dfb659fecacc36440a03e1c45b3e8 100755 (executable)
--- a/token.cgi
+++ b/token.cgi
@@ -28,7 +28,7 @@
 # Make it harder for us to do dangerous things in Perl.
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index efe07921bec7f8735458d8295aa8d6b6c9b3b583..e2cc2e0ce9f2dceab80951a49c6b258f72d92b97 100755 (executable)
@@ -24,7 +24,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 9805ae48ebf7bdc4c8aecf206f04dfb45ebf3b23..9fe94484a16ecdad72a1d5d8455a3b9a39841ac7 100755 (executable)
--- a/votes.cgi
+++ b/votes.cgi
@@ -25,7 +25,7 @@
 #                 Frédéric Buclin <LpSolit@gmail.com>
 
 use strict;
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index a809025c09e9e2bc0b8b9445a827e6b928c4de7e..963805be69f9e2a3e1debf0b48c4dafd238d82d7 100755 (executable)
--- a/whine.pl
+++ b/whine.pl
@@ -26,7 +26,7 @@
 
 use strict;
 
-use lib ".";
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
index 12a86cb6b1a411a753aee9adda61922132e295ec..5c1ec655daa60d763d240aa1afa2fe9d72d2b4d5 100755 (executable)
@@ -29,7 +29,7 @@
 # touched for more than the number of days specified in the whinedays param.
 
 use strict;
-use lib '.';
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Mailer;
diff --git a/xml.cgi b/xml.cgi
index 8316971c9ace15c702eab7caa46becba7f763d41..ce6a7c39b10986b6ea8121c3bb5f7aecdc60481e 100755 (executable)
--- a/xml.cgi
+++ b/xml.cgi
@@ -24,7 +24,7 @@
 
 use strict;
 
-use lib qw(.);
+use lib qw(. lib);
 use Bugzilla;
 
 my $cgi = Bugzilla->cgi;
index c17cab86c3e8ce1a49da9cb9ef076ee272157270..227815d267cfa87393d2249425f5e1caee61db16 100755 (executable)
@@ -16,7 +16,7 @@
 # Contributor(s): Marc Schumann <wurblzap@gmail.com>
 
 use strict;
-use lib qw(.);
+use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;