PERLLIB, @INC: Add . in some places we missed
PATCH 1/1 PERLLIB, @INC: Add . in some places we missed
* cri-getconfig (invoked by many cr* scripts, standalone-reset, etc.)
* mgi-common (invoked by many mg*)
* Two literal perl -e includes in Tcl code.
I think this leaves no scripts which do not set PERLLIB or @INC, either by themselves or by something they source with `.'.
Reported-by George Dunlap <[email protected]>
Signed-off-by Ian Jackson <[email protected]>
--- cri-getconfig | 2 ++ mgi-common | 2 ++ tcl/JobDB-Executive.tcl | 1 + tcl/osstestlib.tcl | 1 + 4 files changed, 6 insertions(+)
cri-getconfig +2 -0
@@ -17,6 +17,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +export PERLLIB=".${PERLLIB+:}${PERLLIB}" + getconfig () { perl -e ' use Osstest;
mgi-common +2 -0
@@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +export PERLLIB=".${PERLLIB+:}${PERLLIB}" + fail () { echo >&2 "$0: $1"; exit 1; } mg_update_org_pwd=$PWD
tcl/JobDB-Executive.tcl +1 -0
@@ -147,6 +147,7 @@ proc db-ensure-open {} { catch { db-ensure-closed } ;# clean up any detritus set pl { + unshift @INC, qw(.); use Osstest; use Osstest::Executive; readglobalconfig();
tcl/osstestlib.tcl +1 -0
@@ -22,6 +22,7 @@ package require Tclx proc readconfig {} { global c set pl { + unshift @INC, qw(.); use Osstest; readglobalconfig(); foreach my $k (sort keys %c) {
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel