Closed Bug 399954 Opened 14 years ago Closed 14 years ago

Make Bugzilla able to hold its dependencies in a local directory

Categories

(Bugzilla :: Installation & Upgrading, enhancement)

3.1.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

With the cpan-install.pl script from bug 262269, it's easy to set up a local lib/ dir that contains nearly all of Bugzilla's dependencies, which makes setting up Bugzilla a lot easier.

Attached is a tar.gz that contains all of Bugzilla's non-XS dependencies.

For what it's worth, here is a list of the dynamic libraries (and thus the XS modules) in Bugzilla's dependency chain:

./i386-linux-thread-multi/auto/Cwd/Cwd.so
./i386-linux-thread-multi/auto/MIME/Base64/Base64.so
./i386-linux-thread-multi/auto/Compress/Raw/Zlib/Zlib.so
./i386-linux-thread-multi/auto/HTML/Parser/Parser.so
./i386-linux-thread-multi/auto/XML/Parser/Expat/Expat.so
./i386-linux-thread-multi/auto/DBI/DBI.so
./i386-linux-thread-multi/auto/Template/Stash/XS/XS.so
./i386-linux-thread-multi/auto/Net/SSLeay/SSLeay.so
./i386-linux-thread-multi/auto/Digest/SHA1/SHA1.so
./i386-linux-thread-multi/auto/GSSAPI/GSSAPI.so
./i386-linux-thread-multi/auto/GD/GD.so
./i386-linux-thread-multi/auto/DBD/Pg/Pg.so
./i386-linux-thread-multi/auto/DBD/mysql/mysql.so

A lot of those are optional add-ons for Net::LDAP. (Such as the SSL stuff, which allows it to do LDAPS.)
The deps tar is too big to attach, so I've put it up on the web here:

  http://landfill.bugzilla.org/bugzilla-deps-noxs.tar.gz
Attached patch Patch to create a lib/ dir (obsolete) — Splinter Review
This patch creates a lib/ dir in the Bugzilla root where Perl dependencies can be installed if you're not root. This will allow us to ship deps with Bugzilla.
Assignee: installation → mkanat
Status: NEW → ASSIGNED
Attachment #285050 - Flags: review?(LpSolit)
  Now that bug 262269 has the ability to auto-install all of our dependencies, I'm not even certain we need to ship them all *with* Bugzilla.

  I'm changing the summary to more accurately reflect what the patch does.
Summary: Ship as many of Bugzilla's Perl dependencies with it as possible → Make Bugzilla able to hold its dependencies in a local directory
Blocks: 262269
Comment on attachment 285050 [details] [diff] [review]
Patch to create a lib/ dir

r=LpSolit assuming you did some tests with this patch applied and some Perl modules in bugzilla/lib/ instead of in /usr/lib/perl5/.
Attachment #285050 - Flags: review?(LpSolit) → review+
This breaks a few scripts in contrib because you replaced .. with . so the scripts won't actually be runnable from there anymore.
(In reply to comment #5)
> This breaks a few scripts in contrib because you replaced .. with . so the
> scripts won't actually be runnable from there anymore.

  Yeah, I thought about that.

  The thing is, is putting "../lib" into our "use lib" actually safe? Most of these scripts instruct the user to do "contrib/script.pl", and if they're run like that, they'll still work.
Attached patch v2Splinter Review
runtests.pl wasn't working, but everything else was fine. I fixed it.

I changed the way importxml.pl does its BEGIN block to be more like how email_in.pl works.
Attachment #285050 - Attachment is obsolete: true
Attachment #285077 - Flags: review?(LpSolit)
Comment on attachment 285077 [details] [diff] [review]
v2

Seems to work fine. r=LpSolit
Attachment #285077 - Flags: review?(LpSolit) → review+
Flags: approval+
Checking in admin.cgi;
/cvsroot/mozilla/webtools/bugzilla/admin.cgi,v  <--  admin.cgi
new revision: 1.2; previous revision: 1.1
done
Checking in attachment.cgi;
/cvsroot/mozilla/webtools/bugzilla/attachment.cgi,v  <--  attachment.cgi
new revision: 1.134; previous revision: 1.133
done
Checking in buglist.cgi;
/cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v  <--  buglist.cgi
new revision: 1.366; previous revision: 1.365
done
Checking in chart.cgi;
/cvsroot/mozilla/webtools/bugzilla/chart.cgi,v  <--  chart.cgi
new revision: 1.25; previous revision: 1.24
done
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.555; previous revision: 1.554
done
Checking in colchange.cgi;
/cvsroot/mozilla/webtools/bugzilla/colchange.cgi,v  <--  colchange.cgi
new revision: 1.61; previous revision: 1.60
done
Checking in collectstats.pl;
/cvsroot/mozilla/webtools/bugzilla/collectstats.pl,v  <--  collectstats.pl
new revision: 1.63; previous revision: 1.62
done
Checking in config.cgi;
/cvsroot/mozilla/webtools/bugzilla/config.cgi,v  <--  config.cgi
new revision: 1.27; previous revision: 1.26
done
Checking in createaccount.cgi;
/cvsroot/mozilla/webtools/bugzilla/createaccount.cgi,v  <--  createaccount.cgi
new revision: 1.56; previous revision: 1.55
done
Checking in describecomponents.cgi;
/cvsroot/mozilla/webtools/bugzilla/describecomponents.cgi,v  <--  describecomponents.cgi
new revision: 1.38; previous revision: 1.37
done
Checking in describekeywords.cgi;
/cvsroot/mozilla/webtools/bugzilla/describekeywords.cgi,v  <--  describekeywords.cgi
new revision: 1.21; previous revision: 1.20
done
Checking in duplicates.cgi;
/cvsroot/mozilla/webtools/bugzilla/duplicates.cgi,v  <--  duplicates.cgi
new revision: 1.61; previous revision: 1.60
done
Checking in editclassifications.cgi;
/cvsroot/mozilla/webtools/bugzilla/editclassifications.cgi,v  <--  editclassifications.cgi
new revision: 1.28; previous revision: 1.27
done
Checking in editcomponents.cgi;
/cvsroot/mozilla/webtools/bugzilla/editcomponents.cgi,v  <--  editcomponents.cgi
new revision: 1.84; previous revision: 1.83
done
Checking in editfields.cgi;
/cvsroot/mozilla/webtools/bugzilla/editfields.cgi,v  <--  editfields.cgi
new revision: 1.8; previous revision: 1.7
done
Checking in editflagtypes.cgi;
/cvsroot/mozilla/webtools/bugzilla/editflagtypes.cgi,v  <--  editflagtypes.cgi
new revision: 1.52; previous revision: 1.51
done
Checking in editgroups.cgi;
/cvsroot/mozilla/webtools/bugzilla/editgroups.cgi,v  <--  editgroups.cgi
new revision: 1.87; previous revision: 1.86
done
Checking in editkeywords.cgi;
/cvsroot/mozilla/webtools/bugzilla/editkeywords.cgi,v  <--  editkeywords.cgi
new revision: 1.44; previous revision: 1.43
done
Checking in editmilestones.cgi;
/cvsroot/mozilla/webtools/bugzilla/editmilestones.cgi,v  <--  editmilestones.cgi
new revision: 1.60; previous revision: 1.59
done
Checking in editparams.cgi;
/cvsroot/mozilla/webtools/bugzilla/editparams.cgi,v  <--  editparams.cgi
new revision: 1.47; previous revision: 1.46
done
Checking in editproducts.cgi;
/cvsroot/mozilla/webtools/bugzilla/editproducts.cgi,v  <--  editproducts.cgi
new revision: 1.137; previous revision: 1.136
done
Checking in editsettings.cgi;
/cvsroot/mozilla/webtools/bugzilla/editsettings.cgi,v  <--  editsettings.cgi
new revision: 1.10; previous revision: 1.9
done
Checking in editusers.cgi;
/cvsroot/mozilla/webtools/bugzilla/editusers.cgi,v  <--  editusers.cgi
new revision: 1.144; previous revision: 1.143
done
Checking in editvalues.cgi;
/cvsroot/mozilla/webtools/bugzilla/editvalues.cgi,v  <--  editvalues.cgi
new revision: 1.25; previous revision: 1.24
done
Checking in editversions.cgi;
/cvsroot/mozilla/webtools/bugzilla/editversions.cgi,v  <--  editversions.cgi
new revision: 1.56; previous revision: 1.55
done
Checking in editwhines.cgi;
/cvsroot/mozilla/webtools/bugzilla/editwhines.cgi,v  <--  editwhines.cgi
new revision: 1.21; previous revision: 1.20
done
Checking in editworkflow.cgi;
/cvsroot/mozilla/webtools/bugzilla/editworkflow.cgi,v  <--  editworkflow.cgi
new revision: 1.5; previous revision: 1.4
done
Checking in email_in.pl;
/cvsroot/mozilla/webtools/bugzilla/email_in.pl,v  <--  email_in.pl
new revision: 1.9; previous revision: 1.8
done
Checking in enter_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/enter_bug.cgi,v  <--  enter_bug.cgi
new revision: 1.158; previous revision: 1.157
done
Checking in importxml.pl;
/cvsroot/mozilla/webtools/bugzilla/importxml.pl,v  <--  importxml.pl
new revision: 1.77; previous revision: 1.76
done
Checking in index.cgi;
/cvsroot/mozilla/webtools/bugzilla/index.cgi,v  <--  index.cgi
new revision: 1.24; previous revision: 1.23
done
Checking in long_list.cgi;
/cvsroot/mozilla/webtools/bugzilla/long_list.cgi,v  <--  long_list.cgi
new revision: 1.48; previous revision: 1.47
done
Checking in page.cgi;
/cvsroot/mozilla/webtools/bugzilla/page.cgi,v  <--  page.cgi
new revision: 1.20; previous revision: 1.19
done
Checking in post_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/post_bug.cgi,v  <--  post_bug.cgi
new revision: 1.191; previous revision: 1.190
done
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.391; previous revision: 1.390
done
Checking in query.cgi;
/cvsroot/mozilla/webtools/bugzilla/query.cgi,v  <--  query.cgi
new revision: 1.177; previous revision: 1.176
done
Checking in quips.cgi;
/cvsroot/mozilla/webtools/bugzilla/quips.cgi,v  <--  quips.cgi
new revision: 1.38; previous revision: 1.37
done
Checking in relogin.cgi;
/cvsroot/mozilla/webtools/bugzilla/relogin.cgi,v  <--  relogin.cgi
new revision: 1.40; previous revision: 1.39
done
Checking in report.cgi;
/cvsroot/mozilla/webtools/bugzilla/report.cgi,v  <--  report.cgi
new revision: 1.40; previous revision: 1.39
done
Checking in reports.cgi;
/cvsroot/mozilla/webtools/bugzilla/reports.cgi,v  <--  reports.cgi
new revision: 1.93; previous revision: 1.92
done
Checking in request.cgi;
/cvsroot/mozilla/webtools/bugzilla/request.cgi,v  <--  request.cgi
new revision: 1.44; previous revision: 1.43
done
Checking in runtests.pl;
/cvsroot/mozilla/webtools/bugzilla/runtests.pl,v  <--  runtests.pl
new revision: 1.5; previous revision: 1.4
done
Checking in sanitycheck.cgi;
/cvsroot/mozilla/webtools/bugzilla/sanitycheck.cgi,v  <--  sanitycheck.cgi
new revision: 1.137; previous revision: 1.136
done
Checking in sanitycheck.pl;
/cvsroot/mozilla/webtools/bugzilla/sanitycheck.pl,v  <--  sanitycheck.pl
new revision: 1.2; previous revision: 1.1
done
Checking in search_plugin.cgi;
/cvsroot/mozilla/webtools/bugzilla/search_plugin.cgi,v  <--  search_plugin.cgi
new revision: 1.3; previous revision: 1.2
done
Checking in show_activity.cgi;
/cvsroot/mozilla/webtools/bugzilla/show_activity.cgi,v  <--  show_activity.cgi
new revision: 1.24; previous revision: 1.23
done
Checking in show_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/show_bug.cgi,v  <--  show_bug.cgi
new revision: 1.52; previous revision: 1.51
done
Checking in showattachment.cgi;
/cvsroot/mozilla/webtools/bugzilla/showattachment.cgi,v  <--  showattachment.cgi
new revision: 1.16; previous revision: 1.15
done
Checking in showdependencygraph.cgi;
/cvsroot/mozilla/webtools/bugzilla/showdependencygraph.cgi,v  <--  showdependencygraph.cgi
new revision: 1.65; previous revision: 1.64
done
Checking in showdependencytree.cgi;
/cvsroot/mozilla/webtools/bugzilla/showdependencytree.cgi,v  <--  showdependencytree.cgi
new revision: 1.52; previous revision: 1.51
done
Checking in sidebar.cgi;
/cvsroot/mozilla/webtools/bugzilla/sidebar.cgi,v  <--  sidebar.cgi
new revision: 1.19; previous revision: 1.18
done
Checking in summarize_time.cgi;
/cvsroot/mozilla/webtools/bugzilla/summarize_time.cgi,v  <--  summarize_time.cgi
new revision: 1.23; previous revision: 1.22
done
Checking in testserver.pl;
/cvsroot/mozilla/webtools/bugzilla/testserver.pl,v  <--  testserver.pl
new revision: 1.18; previous revision: 1.17
done
Checking in token.cgi;
/cvsroot/mozilla/webtools/bugzilla/token.cgi,v  <--  token.cgi
new revision: 1.52; previous revision: 1.51
done
Checking in userprefs.cgi;
/cvsroot/mozilla/webtools/bugzilla/userprefs.cgi,v  <--  userprefs.cgi
new revision: 1.117; previous revision: 1.116
done
Checking in votes.cgi;
/cvsroot/mozilla/webtools/bugzilla/votes.cgi,v  <--  votes.cgi
new revision: 1.52; previous revision: 1.51
done
Checking in whine.pl;
/cvsroot/mozilla/webtools/bugzilla/whine.pl,v  <--  whine.pl
new revision: 1.35; previous revision: 1.34
done
Checking in whineatnews.pl;
/cvsroot/mozilla/webtools/bugzilla/whineatnews.pl,v  <--  whineatnews.pl
new revision: 1.30; previous revision: 1.29
done
Checking in xml.cgi;
/cvsroot/mozilla/webtools/bugzilla/xml.cgi,v  <--  xml.cgi
new revision: 1.14; previous revision: 1.13
done
Checking in xmlrpc.cgi;
/cvsroot/mozilla/webtools/bugzilla/xmlrpc.cgi,v  <--  xmlrpc.cgi
new revision: 1.3; previous revision: 1.2
done
Checking in Bugzilla/Chart.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Chart.pm,v  <--  Chart.pm
new revision: 1.16; previous revision: 1.15
done
Checking in Bugzilla/Constants.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Constants.pm,v  <--  Constants.pm
new revision: 1.83; previous revision: 1.82
done
Checking in Bugzilla/Series.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Series.pm,v  <--  Series.pm
new revision: 1.15; previous revision: 1.14
done
Checking in Bugzilla/Install/Filesystem.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm,v  <--  Filesystem.pm
new revision: 1.23; previous revision: 1.22
done
Checking in contrib/bz_webservice_demo.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/bz_webservice_demo.pl,v  <--  bz_webservice_demo.pl
new revision: 1.11; previous revision: 1.10
done
Checking in contrib/bzdbcopy.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/bzdbcopy.pl,v  <--  bzdbcopy.pl
new revision: 1.5; previous revision: 1.4
done
Checking in contrib/merge-users.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/merge-users.pl,v  <--  merge-users.pl
new revision: 1.6; previous revision: 1.5
done
Checking in contrib/recode.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/recode.pl,v  <--  recode.pl
new revision: 1.5; previous revision: 1.4
done
Checking in contrib/sendbugmail.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/sendbugmail.pl,v  <--  sendbugmail.pl
new revision: 1.8; previous revision: 1.7
done
Checking in contrib/sendunsentbugmail.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/sendunsentbugmail.pl,v  <--  sendunsentbugmail.pl
new revision: 1.10; previous revision: 1.9
done
Checking in contrib/syncLDAP.pl;
/cvsroot/mozilla/webtools/bugzilla/contrib/syncLDAP.pl,v  <--  syncLDAP.pl
new revision: 1.10; previous revision: 1.9
done
Checking in docs/makedocs.pl;
/cvsroot/mozilla/webtools/bugzilla/docs/makedocs.pl,v  <--  makedocs.pl
new revision: 1.18; previous revision: 1.17
done
Checking in docs/xml/installation.xml;
/cvsroot/mozilla/webtools/bugzilla/docs/xml/installation.xml,v  <--  installation.xml
new revision: 1.147; previous revision: 1.146
done
RCS file: /cvsroot/mozilla/webtools/bugzilla/lib/README,v
done
Checking in lib/README;
/cvsroot/mozilla/webtools/bugzilla/lib/README,v  <--  README
initial revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Keywords: relnote
Added to the release notes for Bugzilla 3.2 in a patch on bug 432331.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.