From 9665c0e6a0ee98cdd113e11b86d3efab474464c0 Mon Sep 17 00:00:00 2001 From: "jake%bugzilla.org" <> Date: Thu, 27 Mar 2003 08:06:37 +0000 Subject: Bug 196433 - Bugzilla now uses /usr/bin/perl as the shebang line r=justdave a=justdave --- docs/makedocs.pl | 2 +- docs/sgml/faq.sgml | 42 ++++++++++++++++++++++++++++++------------ docs/sgml/installation.sgml | 37 +------------------------------------ docs/xml/faq.xml | 42 ++++++++++++++++++++++++++++++------------ docs/xml/installation.xml | 37 +------------------------------------ 5 files changed, 63 insertions(+), 97 deletions(-) (limited to 'docs') diff --git a/docs/makedocs.pl b/docs/makedocs.pl index 7a245a470..d9d1aa7b6 100644 --- a/docs/makedocs.pl +++ b/docs/makedocs.pl @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!/usr/bin/perl -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/docs/sgml/faq.sgml b/docs/sgml/faq.sgml index df80794cd..d0f78b75a 100644 --- a/docs/sgml/faq.sgml +++ b/docs/sgml/faq.sgml @@ -204,25 +204,43 @@ - Why do the scripts say "/usr/bonsaitools/bin/perl" instead of - "/usr/bin/perl" or something else? + What is /usr/bonsaitools/bin/perl? - Mozilla.org uses /usr/bonsaitools/bin/perl, because originally - Terry wanted a place to put a version of Perl and other tools - that was strictly under his control. - - - We always recommend that, if possible, you keep the path - as /usr/bonsaitools/bin/perl, and simply add symlink. - This will make upgrading - your Bugzilla much easier in the future. - + Bugzilla used to have the path to perl on the shebang line set to + /usr/bonsaitools/bin/perl because when + Terry first started writing the code for mozilla.org he needed a + version of Perl and other tools that were completely under his + control. This location was abandoned for the 2.18 release in favor + of the more sensible /usr/bin/perl. If you + installed an older verion of Bugzilla and created the symlink we + suggested, you can remove it now (provided that you don't have + anything else, such as Bonsai, using it and you don't intend to + reinstall an older version of Bugzilla). + + + + + My perl is not located at /usr/bin/perl, is + there an easy way to change it everywhere it needs to be changed? + + + + + Yes, the following bit of perl magic will change all the shebang + lines. Be sure to change /usr/local/bin/perl + to your path to the perl binary. + + +perl -pi -e 's@#\!/usr/bin/perl@#\!/usr/local/bin/perl@' *cgi *pl + + + diff --git a/docs/sgml/installation.sgml b/docs/sgml/installation.sgml index d1fa2401b..9f94feb7a 100644 --- a/docs/sgml/installation.sgml +++ b/docs/sgml/installation.sgml @@ -522,41 +522,6 @@ until you run the post-install checksetup.pl script, which locks down your installation. - - Lastly, you'll need to set up a symbolic link to - /usr/bonsaitools/bin/perl - for the correct location of your Perl executable (probably - /usr/bin/perl). - Otherwise you must hack all the .cgi files to change where they look - for Perl. This can be done using the following Perl one-liner, but - I suggest using the symlink approach to avoid upgrade hassles. - - - - Bonsaitools is the name Terry Weissman, the - original author of Bugzilla, created - for his suite of webtools at the time he created Bugzilla and several - other tools in use at mozilla.org. He created a directory, - /usr/bonsaitools to house his specific versions - of perl and other utilities. This usage is still current at - bugzilla.mozilla.org, - but in general most other places do not use it. You can either edit - the paths at the start of each perl file to the correct location of - perl on your system, or simply bow to history and create a - /usr/bonsaitools and /usr/bonsaitools/bin - directory, placing a symlink to perl on your system - inside /usr/bonsaitools/bin - - - - - -perl -pi -e 's@#\!/usr/bonsaitools/bin/perl@#\!/usr/bin/perl@' *cgi *pl Bug.pm syncshadowdb - - - Change /usr/bin/perl to match the location - of Perl on your machine. -
@@ -1185,7 +1150,7 @@ system("C:\\perl\\bin\\perl", "$webdotbase","-Tpng","-o","$pngfilename","$filena url="http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource">ScriptInterpreterSource directive in your Apache config, if you don't do this, you'll have to modify the first line of every script to contain your path to - perl instead of /usr/bonsaitools/bin/perl. + perl instead of /usr/bin/perl. diff --git a/docs/xml/faq.xml b/docs/xml/faq.xml index df80794cd..d0f78b75a 100644 --- a/docs/xml/faq.xml +++ b/docs/xml/faq.xml @@ -204,25 +204,43 @@ - Why do the scripts say "/usr/bonsaitools/bin/perl" instead of - "/usr/bin/perl" or something else? + What is /usr/bonsaitools/bin/perl? - Mozilla.org uses /usr/bonsaitools/bin/perl, because originally - Terry wanted a place to put a version of Perl and other tools - that was strictly under his control. - - - We always recommend that, if possible, you keep the path - as /usr/bonsaitools/bin/perl, and simply add symlink. - This will make upgrading - your Bugzilla much easier in the future. - + Bugzilla used to have the path to perl on the shebang line set to + /usr/bonsaitools/bin/perl because when + Terry first started writing the code for mozilla.org he needed a + version of Perl and other tools that were completely under his + control. This location was abandoned for the 2.18 release in favor + of the more sensible /usr/bin/perl. If you + installed an older verion of Bugzilla and created the symlink we + suggested, you can remove it now (provided that you don't have + anything else, such as Bonsai, using it and you don't intend to + reinstall an older version of Bugzilla). + + + + + My perl is not located at /usr/bin/perl, is + there an easy way to change it everywhere it needs to be changed? + + + + + Yes, the following bit of perl magic will change all the shebang + lines. Be sure to change /usr/local/bin/perl + to your path to the perl binary. + + +perl -pi -e 's@#\!/usr/bin/perl@#\!/usr/local/bin/perl@' *cgi *pl + + + diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index d1fa2401b..9f94feb7a 100644 --- a/docs/xml/installation.xml +++ b/docs/xml/installation.xml @@ -522,41 +522,6 @@ until you run the post-install checksetup.pl script, which locks down your installation. - - Lastly, you'll need to set up a symbolic link to - /usr/bonsaitools/bin/perl - for the correct location of your Perl executable (probably - /usr/bin/perl). - Otherwise you must hack all the .cgi files to change where they look - for Perl. This can be done using the following Perl one-liner, but - I suggest using the symlink approach to avoid upgrade hassles. - - - - Bonsaitools is the name Terry Weissman, the - original author of Bugzilla, created - for his suite of webtools at the time he created Bugzilla and several - other tools in use at mozilla.org. He created a directory, - /usr/bonsaitools to house his specific versions - of perl and other utilities. This usage is still current at - bugzilla.mozilla.org, - but in general most other places do not use it. You can either edit - the paths at the start of each perl file to the correct location of - perl on your system, or simply bow to history and create a - /usr/bonsaitools and /usr/bonsaitools/bin - directory, placing a symlink to perl on your system - inside /usr/bonsaitools/bin - - - - - -perl -pi -e 's@#\!/usr/bonsaitools/bin/perl@#\!/usr/bin/perl@' *cgi *pl Bug.pm syncshadowdb - - - Change /usr/bin/perl to match the location - of Perl on your machine. -
@@ -1185,7 +1150,7 @@ system("C:\\perl\\bin\\perl", "$webdotbase","-Tpng","-o","$pngfilename","$filena url="http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource">ScriptInterpreterSource directive in your Apache config, if you don't do this, you'll have to modify the first line of every script to contain your path to - perl instead of /usr/bonsaitools/bin/perl. + perl instead of /usr/bin/perl. -- cgit v1.2.3-24-g4f1b